From: Erfan Abdi Date: Sat, 5 Jun 2021 13:39:23 +0000 (+0430) Subject: anbox: Add stop script X-Git-Url: https://glassweightruler.freedombox.rocks/gitweb/waydroid.git/commitdiff_plain/5a0e2b1e725551d4eec7a562c66793b31cef872c?ds=inline anbox: Add stop script --- diff --git a/scripts/install.sh b/scripts/install.sh index 941a3aa..bc24bb3 100644 --- a/scripts/install.sh +++ b/scripts/install.sh @@ -38,6 +38,9 @@ echo "Geting latest runner script" rm -f run-container.sh wget https://github.com/Anbox-halium/anbox-halium/raw/lineage-17.1/scripts/run-container.sh chmod +x run-container.sh +rm -f stop-container.sh +wget https://github.com/Anbox-halium/anbox-halium/raw/lineage-17.1/scripts/stop-container.sh +chmod +x stop-container.sh if [ -f anbox.prop ]; then mv anbox.prop anbox.prop.bak @@ -100,4 +103,5 @@ initctl --user stop pulseaudio initctl --user start pulseaudio echo "Installing Finished!" -echo "Run anbox container with /home/anbox/run-container.sh on terminal" +echo "Run anbox container with \"sudo /home/anbox/run-container.sh\" on terminal" +echo "Stop anbox container with \"sudo /home/anbox/stop-container.sh\" on terminal" diff --git a/scripts/stop-container.sh b/scripts/stop-container.sh new file mode 100644 index 0000000..d8c74a2 --- /dev/null +++ b/scripts/stop-container.sh @@ -0,0 +1,3 @@ +#!/bin/bash + +lxc-stop -n anbox -k