summaryrefslogtreecommitdiffhomepage
path: root/contrib/package/freifunk-common/files/usr
diff options
context:
space:
mode:
authorManuel Munz <freifunk@somakoma.de>2012-06-23 09:07:51 +0000
committerManuel Munz <freifunk@somakoma.de>2012-06-23 09:07:51 +0000
commit66eec98a57e6e277c97e0e48b3a56b4813affba4 (patch)
treef94d1111277e5b335351b962d9f54a623e1d7f6f /contrib/package/freifunk-common/files/usr
parenta0d1420aa2bdf877e991db3e348c5097abfc6bcf (diff)
contrib/freifunk-common: Remove ff_rdate script, #439
Diffstat (limited to 'contrib/package/freifunk-common/files/usr')
-rwxr-xr-xcontrib/package/freifunk-common/files/usr/sbin/ff_rdate20
1 files changed, 0 insertions, 20 deletions
diff --git a/contrib/package/freifunk-common/files/usr/sbin/ff_rdate b/contrib/package/freifunk-common/files/usr/sbin/ff_rdate
deleted file mode 100755
index dc2c7b2d2c..0000000000
--- a/contrib/package/freifunk-common/files/usr/sbin/ff_rdate
+++ /dev/null
@@ -1,20 +0,0 @@
-#!/bin/sh
-
-uci_get_one() {
- for var in "$@"; do
- uci -P /var/state get "$var" 2>/dev/null && break
- done
-}
-
-local servers="$(uci_get_one 'network.wan.lease_timesrv') $(uci show timeserver | sed -ne 's/.*hostname=//p')"
-
-if [ -n "$servers" ]; then
- for server in $servers; do
- rdate -s $server >/dev/null 2>/dev/null && \
- logger -t rdate "Synced with $server" && break
-
- logger -t rdate "Failed to sync with $server"
- done
-else
- logger -t rdate "No usable time server found"
-fi