openwrt: fix ntp init to accept link local addr
Currently it seems to be more work to fix the ip validation in ubox project (validate/validate.c). Therefore we just validate it as string. Fixes #9 Signed-off-by: Tim Niemeyer <tim@tn-x.org> Reviewed-by: Jan Kraus <mayosemmel@gmail.com> Reviewed-by: Tobias Klaus <tk+ff@meskal.net>
This commit is contained in:
parent
e3fe21ec0b
commit
303ddf3ce9
|
@ -0,0 +1,13 @@
|
|||
diff --git package/utils/busybox/files/sysntpd package/utils/busybox/files/sysntpd
|
||||
index f73bb83..61cb54c 100755
|
||||
--- package/utils/busybox/files/sysntpd
|
||||
+++ package/utils/busybox/files/sysntpd
|
||||
@@ -9,7 +9,7 @@ HOTPLUG_SCRIPT=/usr/sbin/ntpd-hotplug
|
||||
|
||||
validate_ntp_section() {
|
||||
uci_validate_section system timeserver "${1}" \
|
||||
- 'server:list(host)' 'enabled:bool:1' 'enable_server:bool:0'
|
||||
+ 'server:list(string)' 'enabled:bool:1' 'enable_server:bool:0'
|
||||
}
|
||||
|
||||
start_service() {
|
Loading…
Reference in New Issue