Mercurial > vanilla
diff core/busybox/busybox-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 |
line wrap: on
line diff
--- a/core/busybox/busybox-post.sh Fri Oct 25 20:10:00 2019 +0200 +++ b/core/busybox/busybox-post.sh Mon Oct 28 20:05:00 2019 +0100 @@ -15,6 +15,9 @@ # OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. # -if [ "$1" = "install" ]; then +if [ "$1" = "post-install" ]; then /bin/busybox --install -s + /bin/busybox add-shell /bin/sh +elif [ "$1" = "post-uninstall" ]; then + /bin/busybox remove-shell /bin/sh fi