chrony: remove old files

Remove files that were accidentally included in the previous merge
(pull request #1802). The obsolete patches are breaking the build now.

Signed-off-by: Miroslav Lichvar <mlichvar0@gmail.com>
This commit is contained in:
Miroslav Lichvar
2015-10-17 14:10:27 +02:00
parent 8f48703c7b
commit c75e456e25
5 changed files with 0 additions and 117 deletions
-6
View File
@@ -1,6 +0,0 @@
# Generic NTP configuration
# Time servers and network(s) that may access the time service
config ntpd
option TimeServers "0.openwrt.pool.ntp.org 1.openwrt.pool.ntp.org 2.openwrt.pool.ntp.org 3.openwrt.pool.ntp.org"
option ClientAccessFrom "lan"
-6
View File
@@ -1,6 +0,0 @@
COMMAND=/usr/bin/chronyc
[ -x $COMMAND ] || exit 0
[ "$ACTION" = "ifup" -a "$INTERFACE" = "wan" ] && $COMMAND -a online
[ "$ACTION" = "ifdown" -a "$INTERFACE" = "wan" ] && $COMMAND -a offline
-46
View File
@@ -1,46 +0,0 @@
#!/bin/sh /etc/rc.common
# Copyright (C) 2006 OpenWrt.org
START=60
start() {
[ ! -f /var/run/chronyd.pid ] && (
/usr/sbin/chronyd -f /etc/chrony/chrony.conf
local NTP_SERVERS
local NTP_SERVER
local CLIENT_NETWORKS
local NETNAME
config_load ntpd
config_get NTP_SERVERS $CONFIG_SECTION TimeServers
config_get CLIENT_NETWORKS $CONFIG_SECTION ClientAccessFrom
. /lib/functions/network.sh
# Define servers with the iburst option to speed up the initial
# synchronization and allow clients to access the server
(
for NTP_SERVER in $NTP_SERVERS; do
echo add server $NTP_SERVER iburst
done
for NETNAME in $CLIENT_NETWORKS; do
local subnet
if network_get_subnet subnet "$NETNAME"; then
echo allow $subnet
fi
done
) | chronyc -a > /dev/null 2>&1
)
}
stop() {
[ -r /var/run/chronyd.pid ] && PID=$(cat /var/run/chronyd.pid)
[ -n "$PID" ] && kill $PID
}
restart() {
stop
while [ -r /var/run/chronyd.pid ] ; do sleep 1; done
start
}