From 8cec588c449f00982159304c76482d87d5194f0d Mon Sep 17 00:00:00 2001 From: sheldonh Date: Wed, 25 Aug 1999 16:01:45 +0000 Subject: 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 --- etc/rc.initdiskless | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'etc/rc.initdiskless') diff --git a/etc/rc.initdiskless b/etc/rc.initdiskless index 5ce555f..0f80c43 100644 --- a/etc/rc.initdiskless +++ b/etc/rc.initdiskless @@ -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" - -- cgit v1.1