Allow multiple ntp_servers without error, #47
This commit is contained in:
parent
a1d555bdc4
commit
fccff6a4ed
@ -58,8 +58,8 @@ _system_ntp()
|
||||
local servers= buffer= x=
|
||||
|
||||
eval servers=\$ntp_servers_${IFVAR}
|
||||
[ -z ${servers} ] && servers=${ntp_servers}
|
||||
[ -z ${servers} ] && return 0
|
||||
[ -z "${servers}" ] && servers=${ntp_servers}
|
||||
[ -z "${servers}" ] && return 0
|
||||
|
||||
buffer="# Generated by net-scripts for interface ${IFACE}\n"
|
||||
buffer="${buffer}restrict default noquery notrust nomodify\n"
|
||||
|
Loading…
Reference in New Issue
Block a user