diff options
author | sheldonh <sheldonh@FreeBSD.org> | 1999-08-25 16:01:45 +0000 |
---|---|---|
committer | sheldonh <sheldonh@FreeBSD.org> | 1999-08-25 16:01:45 +0000 |
commit | 8cec588c449f00982159304c76482d87d5194f0d (patch) | |
tree | c5b950c555128460f4c0f03bc9b54c807a922506 /etc/rc.diskless1 | |
parent | de5fc0125907bb6de177202bfa1b843589e80011 (diff) | |
download | FreeBSD-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.diskless1 | 5 |
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" - |