Install wiringpi if r/w jumper enabled

This commit is contained in:
Phillip Burgess 2017-09-30 23:33:50 -07:00
parent 006a1c1c41
commit 165684187c

View file

@ -199,6 +199,7 @@ if [ \`gpio -g read $RW_PIN\` -eq 0 ] ; then\n\
\tmount -o remount,rw \/boot\n\
fi\n"
if [ $INSTALL_RW_JUMPER -ne 0 ]; then
apt-get install -y --force-yes wiringpi
# Check if already present in rc.local:
grep "gpio -g read" /etc/rc.local >/dev/null
if [ $? -eq 0 ]; then