[package] fix chrony init script and bump package release number (#4718)

git-svn-id: svn://svn.openwrt.org/openwrt/packages@15139 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
florian 2009-04-07 15:09:16 +00:00
parent 246939fe54
commit 1c0f355097
2 changed files with 4 additions and 4 deletions

View File

@ -10,7 +10,7 @@ include $(TOPDIR)/rules.mk
PKG_NAME:=chrony
PKG_VERSION:=1.23
PKG_RELEASE:=1
PKG_RELEASE:=2
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:= ftp://chrony.sunsite.dk/projects/chrony/ \

View File

@ -12,8 +12,8 @@ start() {
local CLIENT_NETWORKS
local NETNAME
config_load ntpd
config_get NTP_SERVERS cfg1 TimeServers
config_get CLIENT_NETWORKS cfg1 ClientAccessFrom
config_get NTP_SERVERS $cfg1 TimeServers
config_get CLIENT_NETWORKS $cfg1 ClientAccessFrom
CHRONY_KEY=$(awk '/^1 / { print $2; }' /etc/chrony/chrony.keys)
include /lib/network
scan_interfaces
@ -45,7 +45,7 @@ start() {
config_get INTERFACE "$NETNAME" ifname
if [ -n "$INTERFACE" ] ; then
eval $(ifconfig $INTERFACE | grep inet | sed -e 's/.*addr:/IP=/' -e 's/ .*Mask:/; NETMASK=/')
eval $(ipcalc $IP $NETMASK)
eval $(ipcalc.sh $IP $NETMASK)
echo allow $NETWORK/$PREFIX
fi
done