Skip to content

Commit

Permalink
datestamp ntp update and silence rw-rw
Browse files Browse the repository at this point in the history
  • Loading branch information
glynhudson authored Apr 20, 2017
1 parent 0081b6d commit a0816e2
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions ntp_update.sh
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
#!/bin/bash

# Force NTP time update

rpi-rw
echo date
rpi-rw > /dev/null
sudo service ntp stop
sudo ntpd -q -g
sudo service ntp start
rpi-ro
rpi-ro > /dev/null
echo

0 comments on commit a0816e2

Please sign in to comment.