Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions scripts/install
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,17 @@ if getent group dialout && ! id -Gn "${app}" | grep -qw "\bdialout\b" >/dev/null
adduser "${app}" dialout
fi

# On Raspberry, vcgencmd is used to get info about the board
# Octoprint use it check for throttling (power lose)
vcgencmd > /dev/null
if [ $? -eq 0 ]; then
ynh_script_progression "vcgencmd found : add user to group"
if getent group video && ! id -Gn "${app}" | grep -qw "\bvideo\b" >/dev/null; then
# Add user to video group so it can access vcgencmd.
adduser "${app}" video
fi
fi

#=================================================
# START SYSTEMD SERVICE
#=================================================
Expand Down
11 changes: 11 additions & 0 deletions scripts/upgrade
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,17 @@ if getent group dialout && ! id -Gn "${app}" | grep -qw "\bdialout\b" >/dev/null
adduser "${app}" dialout
fi

# On Raspberry, vcgencmd is used to get info about the board
# Octoprint use it check for throttling (power lose)
vcgencmd > /dev/null
if [ $? -eq 0 ]; then
ynh_script_progression "vcgencmd found : add user to group"
if getent group video && ! id -Gn "${app}" | grep -qw "\bvideo\b" >/dev/null; then
# Add user to video group so it can access vcgencmd.
adduser "${app}" video
fi
fi

#=================================================
# START SYSTEMD SERVICE
#=================================================
Expand Down