busybox: do not abort sysntpd init if enable_server is unset, that variable just...
[openwrt.git] / package / utils / busybox / files / sysntpd
index 7ff3277..add7762 100755 (executable)
@@ -8,7 +8,7 @@ PROG=/usr/sbin/ntpd
 
 validate_ntp_section() {
        uci_validate_section system timeserver "${1}" \
-               'server:list(string)' 'enable_server:bool:0'
+               'server:list(host)' 'enable_server:bool:0'
 }
 
 start_service() {
@@ -19,7 +19,7 @@ start_service() {
                return 1
        }
 
-       [ $enable_server -eq 0 -a -z "$server" ] && return
+       [ -z "$server" ] && return
 
        procd_open_instance
        procd_set_param command "$PROG" -n