Skip to content

Commit

Permalink
Merged
Browse files Browse the repository at this point in the history
  • Loading branch information
Gadgetoid committed Aug 19, 2019
2 parents e023050 + 0e88738 commit c50f941
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/install-service.sh
Expand Up @@ -19,13 +19,13 @@ SERVICE_PATH=/etc/systemd/system/pimoroni-fanshim.service

USAGE="sudo ./install-service.sh --off-threshold <n> --on-threshold <n> --delay <n> --brightness <n> (--preempt) (--noled) (--nobutton)"

if ! [ -f "/usr/bin/python3" ]; then
if ! ( type -P python3 > /dev/null ) ; then
printf "Fan SHIM controller requires Python 3\n"
printf "You should run: 'sudo apt install python3'\n"
exit 1
fi

if ! [ -f "/usr/bin/pip3" ]; then
if ! ( type -P pip3 > /dev/null ) ; then
printf "Fan SHIM controller requires Python 3 pip\n"
printf "You should run: 'sudo apt install python3-pip'\n"
exit 1
Expand Down

0 comments on commit c50f941

Please sign in to comment.