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:
authorGuy Sheffer <guysoft@gmail.com>2022-03-02 21:26:54 +0300
committerGitHub <noreply@github.com>2022-03-02 21:26:54 +0300
commit4a92bdf8dcb52611258ded74dd797888bb545ee0 (patch)
tree86e8b1044f3b60f4e590bda405c0703632a084a8
parent9bee5f088ea46d30d7a21859844598bc5ad24de3 (diff)
parent017b75869185fc71030100e2fef0ffd9fbe28633 (diff)
Merge pull request #772 from foosel/fix/vcgencmd_ubuntu_64bit
Install vcgencmd and fix user permission on Ubuntu
-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