From 8d27e6bab77af66bc2458c8e7060e545c6c12f82 Mon Sep 17 00:00:00 2001 From: Paul J R Date: Sun, 8 Sep 2013 01:32:27 +1000 Subject: [PATCH] new startup --- .../custom/filesystem/etc/init.d/S99final_sequence | 12 ++++++++++++ 1 files changed, 12 insertions(+), 0 deletions(-) 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 -- 1.7.0.4