Skip to content

Commit

Permalink
restart LCD script on boot, dont factory reset nodered, fully disable…
Browse files Browse the repository at this point in the history
… ssh
  • Loading branch information
glynhudson committed Oct 18, 2018
1 parent 25b3e2b commit 3bdb0ae
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions factoryreset
Expand Up @@ -167,8 +167,9 @@ echo "Set default emonpi default git credentials"
git config --global user.email "pi@emonpi.com"
git config --global user.name "emonPi"

echo "restore nodered flow"
cp /home/pi/oem_node-red/flows_emonpi.json /home/pi/data/node-red/flows_emonpi.json
# Dont touch NodeRED this is an Emoncms factory reset
#echo "restore nodered flow"
#cp /home/pi/oem_node-red/flows_emonpi.json /home/pi/data/node-red/flows_emonpi.json

echo "Clear bash history"
history -c
Expand All @@ -187,6 +188,7 @@ if [ "$VERSION" = "stretch" ]; then
echo "Disabling SSH"
sudo update-rc.d ssh disable
sudo invoke-rc.d ssh stop
sudo rm /boot/ssh
fi

echo
Expand Down
2 changes: 1 addition & 1 deletion stretch/rc.local
Expand Up @@ -27,7 +27,7 @@ then
service redis-server restart
service mosquitto restart
service emonhub restart
#service emonPiLCD restart
service emonPiLCD restart
service apache2 restart
#service supervisor restart
service feedwriter restart
Expand Down

0 comments on commit 3bdb0ae

Please sign in to comment.