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>
This commit is contained in:
Denys Vlasenko
2009-05-10 23:27:43 +02:00
parent 8082ea1000
commit c8ab67cad8
2 changed files with 4 additions and 1 deletions

View File

@ -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"