diff options
author | jkh <jkh@FreeBSD.org> | 1994-04-26 23:26:18 +0000 |
---|---|---|
committer | jkh <jkh@FreeBSD.org> | 1994-04-26 23:26:18 +0000 |
commit | 9ac05a42c33c56a0ba23ef8a67fae31db7b244ac (patch) | |
tree | 0e74b97ced48ec1bb50f82a52c7dd379f28fa51d | |
parent | dca76e63431eeafc5620dd33251289147ca2536a (diff) | |
download | FreeBSD-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.
-rw-r--r-- | etc/etc.i386/cpio.magic | 12 |
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" |