summaryrefslogtreecommitdiffstats
path: root/etc/rc.diskless1
diff options
context:
space:
mode:
authorsheldonh <sheldonh@FreeBSD.org>1999-08-25 16:01:45 +0000
committersheldonh <sheldonh@FreeBSD.org>1999-08-25 16:01:45 +0000
commit8cec588c449f00982159304c76482d87d5194f0d (patch)
treec5b950c555128460f4c0f03bc9b54c807a922506 /etc/rc.diskless1
parentde5fc0125907bb6de177202bfa1b843589e80011 (diff)
downloadFreeBSD-src-8cec588c449f00982159304c76482d87d5194f0d.zip
FreeBSD-src-8cec588c449f00982159304c76482d87d5194f0d.tar.gz
Style clean-up:
* All variables are now embraced: ${foo} * All comparisons against some value now take the form: [ "${foo}" ? "value" ] where ? is a comparison operator * All empty string tests now take the form: [ -z "${foo}" ] * All non-empty string tests now take the form: [ -n "${foo}" ] Submitted by: jkh
Diffstat (limited to 'etc/rc.diskless1')
-rw-r--r--etc/rc.diskless15
1 files changed, 2 insertions, 3 deletions
diff --git a/etc/rc.diskless1 b/etc/rc.diskless1
index 5ce555f..0f80c43 100644
--- a/etc/rc.diskless1
+++ b/etc/rc.diskless1
@@ -57,9 +57,9 @@ chkerr $? "mount of /usr"
#
bootp_ifc=`route -n get default | fgrep interface | awk '{ print $2; }'`
-bootp_ipa=`ifconfig $bootp_ifc | fgrep inet | head -1 | awk '{ print $2; }'`
+bootp_ipa=`ifconfig ${bootp_ifc} | fgrep inet | head -1 | awk '{ print $2; }'`
-echo "Interface $bootp_ifc IP-Address $bootp_ipa"
+echo "Interface ${bootp_ifc} IP-Address ${bootp_ipa}"
umount /usr
@@ -97,4 +97,3 @@ sysctl -w kern.bootfile=/conf/ME/kernel
# system /etc/rc.diskless2
diskless_mount="/etc/rc.diskless2"
-
OpenPOWER on IntegriCloud