summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorjkh <jkh@FreeBSD.org>1994-04-26 23:26:18 +0000
committerjkh <jkh@FreeBSD.org>1994-04-26 23:26:18 +0000
commit9ac05a42c33c56a0ba23ef8a67fae31db7b244ac (patch)
tree0e74b97ced48ec1bb50f82a52c7dd379f28fa51d /etc
parentdca76e63431eeafc5620dd33251289147ca2536a (diff)
downloadFreeBSD-src-9ac05a42c33c56a0ba23ef8a67fae31db7b244ac.zip
FreeBSD-src-9ac05a42c33c56a0ba23ef8a67fae31db7b244ac.tar.gz
Configure: If netmask wasn't entered at all, it caused the ifconfig line to
have a bogus trailing `netmask' with no argument. Fixed. Rod: Please take this into 1.1 Release.
Diffstat (limited to 'etc')
-rw-r--r--etc/etc.i386/cpio.magic12
1 files changed, 7 insertions, 5 deletions
diff --git a/etc/etc.i386/cpio.magic b/etc/etc.i386/cpio.magic
index 02a5ae1..3f0e731 100644
--- a/etc/etc.i386/cpio.magic
+++ b/etc/etc.i386/cpio.magic
@@ -1,5 +1,5 @@
#!bin/sh
-# $Id: cpio.magic,v 1.4 1994/03/18 03:09:49 rgrimes Exp $
+# $Id: cpio.magic,v 1.5 1994/04/17 19:57:35 rgrimes Exp $
#
set_tmp_dir()
{
@@ -323,9 +323,11 @@ configure()
case "$resp" in
y*)
echo -n "What is the netmask? [0xffffff00] "
- read ifnetmask
- if [ "$ifnetmask" = "" ]; then
- ifnetmask=0xffffff00
+ read resp
+ if [ "$resp" = "" ]; then
+ ifnetmask="netmask 0xffffff00"
+ else
+ ifnetmask="netmask $resp"
fi
;;
*)
@@ -348,7 +350,7 @@ configure()
;;
esac
- echo "inet $ifname netmask $ifnetmask $ifflags" > /etc/hostname.$intf
+ echo "inet $ifname $ifnetmask $ifflags" > /etc/hostname.$intf
echo ""
echo "WARNING: if you have any more ethernet interfaces, you"
OpenPOWER on IntegriCloud