aboutsummaryrefslogtreecommitdiffstats
path: root/package/utils/busybox/files/ntpd-hotplug
diff options
context:
space:
mode:
authorSteven Barth <steven@midlink.org>2014-11-28 11:41:25 +0000
committerSteven Barth <steven@midlink.org>2014-11-28 11:41:25 +0000
commit753167106850ac0cf651484208a4fc7fbf2e1bd1 (patch)
tree3a21cbae5969831e97bc40e8a2539b32cf8cd33e /package/utils/busybox/files/ntpd-hotplug
parentb20633bf4490000699125b110d987303368f1040 (diff)
downloadmaster-187ad058-753167106850ac0cf651484208a4fc7fbf2e1bd1.tar.gz
master-187ad058-753167106850ac0cf651484208a4fc7fbf2e1bd1.tar.bz2
master-187ad058-753167106850ac0cf651484208a4fc7fbf2e1bd1.zip
ntp: add hotplug class for ntp-events
Based on a patch by Luiz Angelo Daros de Luca Signed-off-by: Steven Barth <steven@midlink.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@43421 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/utils/busybox/files/ntpd-hotplug')
-rwxr-xr-xpackage/utils/busybox/files/ntpd-hotplug3
1 files changed, 3 insertions, 0 deletions
diff --git a/package/utils/busybox/files/ntpd-hotplug b/package/utils/busybox/files/ntpd-hotplug
new file mode 100755
index 0000000000..ddc1490a47
--- /dev/null
+++ b/package/utils/busybox/files/ntpd-hotplug
@@ -0,0 +1,3 @@
+#!/bin/sh
+[ "$1" = stratum ] || exit 0
+ACTION="$1" /sbin/hotplug-call ntp