]> glassweightruler.freedombox.rocks Git - waydroid.git/blob - scripts/run-container.sh
Add some services to stop/start/restart
[waydroid.git] / scripts / run-container.sh
1 #!/bin/bash
2 cd /home/anbox
3
4 # just in case, stop Anbox 7
5 stop anbox-container || true
6
7 # restart cgroupfs-mount, else container may fail to start on some devices
8 restart cgroupfs-mount
9
10 # stop sensorfw
11 # NOTE: it is temporary solution, that workes only on halium devices.
12 stop sensorfw
13
14 # start lxc-net, that sets up lxc bridge
15 start lxc-net
16
17 # umount rootfs if it was mounted
18 umount -l rootfs || true
19 ./mount.sh
20
21 # Anbox binder permissions
22 chmod 666 /dev/anbox-*binder
23
24 # Wayland socket permissions
25 chmod 777 /run/user/32011
26 chmod 777 /run/user/32011/wayland-1
27
28 lxc-start -n anbox -F -- /init