[1737] in NetBSD-Development
formatting problems in install script
daemon@ATHENA.MIT.EDU (matt debergalis)
Fri Jul 31 12:55:09 1998
Date: Fri, 31 Jul 1998 12:54:59 -0400 (EDT)
From: matt debergalis <deberg@MIT.EDU>
To: netbsd-dev@MIT.EDU
/afs/dev/project/sipb/install/floppy/src/connect.sh has some formatting
errors in the case where it doesn't know the netmask/broadcast/gateway
for an IP address. (i gave it 10.10.10.10 behind a NAT to cause this
problem.)
[begin patch]
--- connect.sh.orig Fri Jul 31 12:45:25 1998
+++ connect.sh Fri Jul 31 12:51:27 1998
@@ -41,11 +41,10 @@
params=`/etc/athena/netparams -e "$ifaddr"`
if [ $? -eq 1 ]; then
- echo "Our database doesn't have the network configuration information \
- for that address"
- echo "You will need to enter the information manually."
- echo "Contact your network administrator if you do not know \
- these parameters."
+ echo "Our database doesn't have the network configuration information for that"
+ echo "address. You will need to enter the information manually. Contact your"
+ echo "network administrator if you do not know these parameters."
+ echo ""
# Perform IFS magic to seperate IP address into four pieces.
OLDIFS="$IFS"
@@ -54,7 +53,7 @@
ifA=$1 ifB=$2 ifC=$3 ifD=$4
IFS="$OLDIFS"
- echo -n "What is your netmask? [0xffffff00]"
+ echo -n "What is your netmask? [0xffffff00] "
getresp 0xffffff00; ifnetmask="$resp"
if [ "$ifnetmask" = "0xffff0000" ]; then
proto_bcast="${ifA}.${ifB}.255.255"
[end]
matt
--
matt debergalis <deberg@mit.edu> KB1CTH
finger deberg@ai.mit.edu for PGP key
home 617.492.1448 work 617.873.5173 pager 617.546.0399