]> glassweightruler.freedombox.rocks Git - waydroid.git/commitdiff
anbox: Add stop script
authorErfan Abdi <erfangplus@gmail.com>
Sat, 5 Jun 2021 13:39:23 +0000 (18:09 +0430)
committerErfan Abdi <erfangplus@gmail.com>
Sat, 5 Jun 2021 13:39:23 +0000 (18:09 +0430)
scripts/install.sh
scripts/stop-container.sh [new file with mode: 0644]

index 941a3aa8944ecc54ae318a73d0b428bcb7184460..bc24bb3496d78de8d0c5e548f816d60e2271a69b 100644 (file)
@@ -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 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
 
 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!"
 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 (file)
index 0000000..d8c74a2
--- /dev/null
@@ -0,0 +1,3 @@
+#!/bin/bash
+
+lxc-stop -n anbox -k