aboutsummaryrefslogtreecommitdiff
path: root/examples/udhcp
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2009-05-10 23:27:43 +0200
committerDenys Vlasenko <vda.linux@googlemail.com>2009-05-10 23:27:43 +0200
commitc8ab67cad852ec2457adf15bf7883c2f5cdb1b00 (patch)
tree18829f74854afb26e11a1364b38d158fe7a0a2f3 /examples/udhcp
parent8082ea1000af5103b86611835cdca23863e201db (diff)
downloadbusybox-c8ab67cad852ec2457adf15bf7883c2f5cdb1b00.tar.gz
tftp: do not risk invoking Sorcerer's Apprentice syndrome
examples/udhcp/simple.script: fix incorrect test for $1 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'examples/udhcp')
-rw-r--r--examples/udhcp/simple.script2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/udhcp/simple.script b/examples/udhcp/simple.script
index abf1b6f26..40ee73822 100644
--- a/examples/udhcp/simple.script
+++ b/examples/udhcp/simple.script
@@ -3,7 +3,7 @@
RESOLV_CONF="/etc/resolv.conf"
-[ -n "$1" ] || echo "Error: should be called from udhcpc" && exit 1
+[ -n "$1" ] || { echo "Error: should be called from udhcpc"; exit 1; }
NETMASK=""
[ -n "$subnet" ] && NETMASK="netmask $subnet"