mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2024-11-14 22:32:30 +01:00
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.
This commit is contained in:
parent
01fd55bbef
commit
eeee6ddd2b
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=1420
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user