From 863a7a208e30bbb585bf81283fff64fb9bcddcce Mon Sep 17 00:00:00 2001 From: Paul J R Date: Sun, 1 Dec 2013 12:34:56 +1100 Subject: [PATCH] Added stats bits --- .../custom/filesystem/etc/init.d/S99final_sequence | 2 ++ .../custom/filesystem/opt/ntp/ntp.conf | 2 +- 2 files changed, 3 insertions(+), 1 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 40bab82..d9e113e 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 @@ -38,3 +38,5 @@ then (sleep 30; while(true); do date '+%s' >> /var/www/data/ntp.log.$cldate; ntpq -c lpe -n |grep "127.127.20" >> /var/www/data/ntp.log.$cldate; sleep 30; done) & fi + +mkdir /var/www/data/stats diff --git a/src/buildroot-2013.05/custom/filesystem/opt/ntp/ntp.conf b/src/buildroot-2013.05/custom/filesystem/opt/ntp/ntp.conf index 9c8ac15..e625ae7 100644 --- a/src/buildroot-2013.05/custom/filesystem/opt/ntp/ntp.conf +++ b/src/buildroot-2013.05/custom/filesystem/opt/ntp/ntp.conf @@ -1,6 +1,6 @@ driftfile /tmp/ntp/drift -statsdir /tmp/ntp/stats +statsdir /var/www/data/stats statistics loopstats peerstats clockstats filegen loopstats file loopstats type day enable -- 1.7.0.4