aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJordan K. Hubbard <jkh@FreeBSD.org>1994-11-08 13:08:18 +0000
committerJordan K. Hubbard <jkh@FreeBSD.org>1994-11-08 13:08:18 +0000
commite4af1b8d6406be71b453bc61d63e5ae7a2d75bf8 (patch)
tree6efc70bbb5f803901c0eb140ae7c03bece41f72b
parenta0db5c785701a33d3d93e7a11de910fd9995e132 (diff)
downloadsrc-e4af1b8d6406be71b453bc61d63e5ae7a2d75bf8.tar.gz
src-e4af1b8d6406be71b453bc61d63e5ae7a2d75bf8.zip
Add a little user-proofing.
Notes
Notes: svn path=/head/; revision=4279
-rwxr-xr-xrelease/bininst18
1 files changed, 12 insertions, 6 deletions
diff --git a/release/bininst b/release/bininst
index 1291c99d09cd..de46b01a49ee 100755
--- a/release/bininst
+++ b/release/bininst
@@ -324,7 +324,9 @@ setup_network()
default_value="$netmask"
if network_dialog "Please specify the netmask"; then
- netmask=$answer
+ if [ "$answer" != "" ]; then
+ netmask=$answer
+ fi
fi
default_value=""
@@ -341,15 +343,19 @@ setup_network()
echo "$ipaddr $remote_hostip netmask $netmask $ifconfig_flags" > /etc/hostname.$interface
default_value=""
if network_dialog "If you have a default gateway, enter its IP address (otherwise cancel)"; then
- gateway=$answer
- echo "Progress <$ROUTE $ROUTE_FLAGS $gateway>" > /dev/ttyv1
- $ROUTE $ROUTE_FLAGS $gateway 2>&1 > /dev/ttyv1
+ if [ "$answer" != "" ]; then
+ gateway=$answer
+ echo "Progress <$ROUTE $ROUTE_FLAGS $gateway>" > /dev/ttyv1
+ $ROUTE $ROUTE_FLAGS $gateway 2>&1 > /dev/ttyv1
+ fi
fi
default_value=""
if network_dialog "If you have a name server, enter its IP address (otherwise cancel)"; then
- nameserver=$answer
- echo "nameserver $nameserver" > /etc/resolv.conf
+ if [ "$answer" != "" ]; then
+ nameserver=$answer
+ echo "nameserver $nameserver" > /etc/resolv.conf
+ fi
fi
done
}