aboutsummaryrefslogtreecommitdiffstats
path: root/openwrt/package/ntpclient/files/ntpclient.init
diff options
context:
space:
mode:
Diffstat (limited to 'openwrt/package/ntpclient/files/ntpclient.init')
-rw-r--r--openwrt/package/ntpclient/files/ntpclient.init11
1 files changed, 0 insertions, 11 deletions
diff --git a/openwrt/package/ntpclient/files/ntpclient.init b/openwrt/package/ntpclient/files/ntpclient.init
deleted file mode 100644
index 3a21184202..0000000000
--- a/openwrt/package/ntpclient/files/ntpclient.init
+++ /dev/null
@@ -1,11 +0,0 @@
-#!/bin/sh
-ntp_server=$(nvram get ntp_server)
-case "${ACTION:-ifup}" in
- ifup)
- ps x | grep 'bin/[n]tpclient' >&- || {
- route -n 2>&- | grep '^0.0.0.0' >&- && /usr/sbin/ntpclient -c 1 -s -h ${ntp_server:-pool.ntp.org} &
- }
- ;;
- ifdown)
- route -n 2>&- | grep '^0.0.0.0' >&- || killall ntpclient 2>&- >&- ;;
-esac