]> glassweightruler.freedombox.rocks Git - waydroid.git/blobdiff - scripts/run-container.sh
anbox: Import lxc-net script
[waydroid.git] / scripts / run-container.sh
index 382d3fd1e12f588dc4e040cb16a527146f930220..8786995bc01b80bf425eb595ea00715991cb9b99 100644 (file)
@@ -13,6 +13,7 @@ start anbox-sensors
 
 # start lxc-net, that sets up lxc bridge
 start lxc-net
+brctl addbr anbox0
 
 # stop nfcd to not conflict with anbox
 stop nfcd
@@ -61,6 +62,7 @@ mount -o remount,ro rootfs/vendor
 
 # Anbox binder permissions
 chmod 666 /dev/anbox-*binder
+chmod 777 /dev/ashmem
 
 # Wayland socket permissions
 chmod 777 -R /run/user/32011
@@ -77,4 +79,9 @@ chmod 777 /dev/mtk_cmdq
 chmod 777 /dev/video32
 chmod 777 /dev/video33
 
+# Graphics nodes permissions
+chmod 777 -R /dev/dri/*
+chmod 777 -R /dev/graphics/*
+chmod 777 -R /dev/fb*
+
 lxc-start -n anbox -F -- /init