summaryrefslogtreecommitdiffstats
path: root/package/utils/busybox/files/ntpd-hotplug
diff options
context:
space:
mode:
authorSteven Barth <cyrus@openwrt.org>2014-11-28 11:41:25 +0000
committerSteven Barth <cyrus@openwrt.org>2014-11-28 11:41:25 +0000
commit016d6acde5984a68e1904e21fdca32053e4c0dca (patch)
tree76d5361e56c14f8ef4c8af5e34567e6327afb322 /package/utils/busybox/files/ntpd-hotplug
parentd73dc14957000f34310b4980d95f76c60a61bee6 (diff)
downloadmaster-31e0f0ae-016d6acde5984a68e1904e21fdca32053e4c0dca.tar.gz
master-31e0f0ae-016d6acde5984a68e1904e21fdca32053e4c0dca.tar.bz2
master-31e0f0ae-016d6acde5984a68e1904e21fdca32053e4c0dca.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> SVN-Revision: 43421
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