Mercurial > vanilla
comparison shells/zsh/zsh-post.sh @ 1185:6ac8b545df56
vanilla: use busybox add-shell/remove-shell for post scripts
author | David Demelier <markand@malikania.fr> |
---|---|
date | Mon, 28 Oct 2019 20:05:00 +0100 |
parents | 297b5eef115e |
children | 9867e578b1a9 |
comparison
equal
deleted
inserted
replaced
1184:02911b528211 | 1185:6ac8b545df56 |
---|---|
14 # ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF | 14 # ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF |
15 # OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. | 15 # OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. |
16 # | 16 # |
17 | 17 |
18 if [ "$1" = "post-install" ]; then | 18 if [ "$1" = "post-install" ]; then |
19 if ! grep -q "/bin/zsh" $DESTDIR/etc/shells >/dev/null 2>&1; then | 19 /bin/busybox add-shell /bin/zsh |
20 echo "/bin/zsh" >> $DESTDIR/etc/shells | |
21 fi | |
22 elif [ "$1" = "post-uninstall" ]; then | 20 elif [ "$1" = "post-uninstall" ]; then |
23 sed -i -e '/\/\/bin\/zsh/d' $DESTDIR/etc/shells | 21 /bin/busybox remove-shell /bin/zsh |
24 fi | 22 fi |