We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a226d95 commit 5841386Copy full SHA for 5841386
1 file changed
examples/install-service.sh
@@ -172,8 +172,20 @@ else
172
printf "rpi.gpio >= 0.7.0 already installed\n"
173
fi
174
175
+printf "Checking for Fan SHIM\n"
176
+python3 - > /dev/null 2>&1 <<EOF
177
+import fanshim
178
+EOF
179
+
180
+if [ $? -ne 0 ]; then
181
+ printf "Installing Fan SHIM\n"
182
+ pip3 install fanshim
183
+else
184
+ printf "Fan SHIM already installed\n"
185
+fi
186
187
printf "Checking for psutil\n"
-python3 - <<EOF
188
189
import psutil
190
EOF
191
0 commit comments