From: Paul J R Date: Sat, 7 Sep 2013 15:32:27 +0000 (+1000) Subject: new startup X-Git-Url: http://git.pjr.cc/?a=commitdiff_plain;h=8d27e6bab77af66bc2458c8e7060e545c6c12f82;p=wyse_ntpd.git new startup --- diff --git a/src/buildroot-2013.05/custom/filesystem/etc/init.d/S99final_sequence b/src/buildroot-2013.05/custom/filesystem/etc/init.d/S99final_sequence index 2786ca7..1aa3448 100755 --- a/src/buildroot-2013.05/custom/filesystem/etc/init.d/S99final_sequence +++ b/src/buildroot-2013.05/custom/filesystem/etc/init.d/S99final_sequence @@ -20,3 +20,15 @@ then setserial /dev/ttyS0 low_latency ntpd -c /fs/config/ntp.conf -x -g -N fi + +if [ -f /var/www/data ] +then + + mknod /var/www/data/reboot p + (cat > /var/www/data/reboot; reboot)& + + cldate=`date '+%d.%m.%Y'` + touch /var/www/data/ntp.log.$cldate + + (while(true); do ntpq -c lpe -n >> /var/www/data/ntp.log.*; sleep 30; done) +fi