aboutsummaryrefslogtreecommitdiff
path: root/etc/rc.initdiskless
diff options
context:
space:
mode:
authorJens Schweikhardt <schweikh@FreeBSD.org>2002-10-12 10:31:31 +0000
committerJens Schweikhardt <schweikh@FreeBSD.org>2002-10-12 10:31:31 +0000
commit143085107b0897e271fa76d7ac3316fb25aacf07 (patch)
treec750ff3f496fe6079fff457037e64eba1f20e162 /etc/rc.initdiskless
parentde77341b0d11974386a24a3a9bcc2d5457c5f73e (diff)
Notes
Diffstat (limited to 'etc/rc.initdiskless')
-rw-r--r--etc/rc.initdiskless26
1 files changed, 13 insertions, 13 deletions
diff --git a/etc/rc.initdiskless b/etc/rc.initdiskless
index 672236500154..faa2acb6e297 100644
--- a/etc/rc.initdiskless
+++ b/etc/rc.initdiskless
@@ -81,19 +81,19 @@ bootp_ipa=""
bootp_ipbca=""
iflist=`ifconfig -l`
for i in ${iflist} ; do
- set `ifconfig ${i}`
- while [ $# -ge 1 ] ; do
- if [ "${bootp_ifc}" = "" -a "$1" = "inet" ] ; then
- bootp_ifc=${i} ; bootp_ipa=${2} ; shift
- fi
- if [ "${bootp_ipbca}" = "" -a "$1" = "broadcast" ] ; then
- bootp_ipbca=$2; shift
- fi
- shift
- done
- if [ "${bootp_ifc}" != "" ] ; then
- break
- fi
+ set `ifconfig ${i}`
+ while [ $# -ge 1 ] ; do
+ if [ "${bootp_ifc}" = "" -a "$1" = "inet" ]; then
+ bootp_ifc=${i} ; bootp_ipa=${2} ; shift
+ fi
+ if [ "${bootp_ipbca}" = "" -a "$1" = "broadcast" ]; then
+ bootp_ipbca=$2; shift
+ fi
+ shift
+ done
+ if [ "${bootp_ifc}" != "" ]; then
+ break
+ fi
done
echo "Interface ${bootp_ifc} IP-Address ${bootp_ipa} Broadcast ${bootp_ipbca}"