diff options
author | Roy Marples <roy@marples.name> | 2008-03-26 22:39:27 +0000 |
---|---|---|
committer | Roy Marples <roy@marples.name> | 2008-03-26 22:39:27 +0000 |
commit | fccff6a4ed64e746aec83778474c48ee0d503242 (patch) | |
tree | 9a91e91a6b7236ff00c6069dc0e4dcc28f55e108 | |
parent | a1d555bdc4fbbc7de2589ff3a9a16c84468a3638 (diff) |
Allow multiple ntp_servers without error, #47
-rw-r--r-- | net/system.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/system.sh b/net/system.sh index 2cbab9c7..aa654a10 100644 --- a/net/system.sh +++ b/net/system.sh @@ -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" |