Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/guysoft/OctoPi.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xsrc/modules/octopi/start_chroot_script6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/modules/octopi/start_chroot_script b/src/modules/octopi/start_chroot_script
index 6247a7b..7c3b03f 100755
--- a/src/modules/octopi/start_chroot_script
+++ b/src/modules/octopi/start_chroot_script
@@ -158,6 +158,12 @@ popd
usermod -a -G tty "${BASE_USER}"
usermod -a -G dialout "${BASE_USER}"
+# If building against Ubuntu, make sure vcgencmd is available and pi has the rights to use it
+if [ "${BASE_DISTRO}" == "ubuntu" ]; then
+ apt-get -y --force-yes install libraspberrypi-bin
+ usermod -a -G video "${BASE_USER}"
+fi
+
# store octopi commit used to build this image
echo "$OCTOPI_COMMIT" > /etc/octopi_commit