aboutsummaryrefslogtreecommitdiff
path: root/net
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2008-03-26 22:39:27 +0000
committerRoy Marples <roy@marples.name>2008-03-26 22:39:27 +0000
commitfccff6a4ed64e746aec83778474c48ee0d503242 (patch)
tree9a91e91a6b7236ff00c6069dc0e4dcc28f55e108 /net
parenta1d555bdc4fbbc7de2589ff3a9a16c84468a3638 (diff)
Allow multiple ntp_servers without error, #47
Diffstat (limited to 'net')
-rw-r--r--net/system.sh4
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"