Skip to content

Commit

Permalink
only run rpi-rw/ro if read-only fs is enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
glynhudson authored Feb 21, 2019
1 parent 3f34f1f commit 4c82b70
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions service-runner-update.sh
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,9 @@ sudo service emonPiLCD stop
sudo /home/pi/emonpi/lcd/./emonPiLCD_update.py

# make file system read-write
rpi-rw
if [ -f /usr/bin/rpi-rw ]; then
rpi-rw
fi

echo "git pull /home/pi/emonpi"
cd /home/pi/emonpi
Expand Down Expand Up @@ -129,7 +131,11 @@ echo "Starting emonPi LCD service.."
sleep 5
sudo service emonPiLCD restart
echo
rpi-ro

if [ -f /usr/bin/rpi-ro ]; then
rpi-ro
fi

date
echo
printf "\n...................\n"
Expand Down

0 comments on commit 4c82b70

Please sign in to comment.