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.d/atm3 | |
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.d/atm3')
-rw-r--r-- | etc/rc.d/atm3 | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/etc/rc.d/atm3 b/etc/rc.d/atm3 index 2f807eb..96d82be 100644 --- a/etc/rc.d/atm3 +++ b/etc/rc.d/atm3 @@ -3,7 +3,7 @@ # ATM networking startup script # -# $Id$ +# $Id: rc.atm,v 1.2 1998/10/08 08:56:01 phk Exp $ # # Initial interface configuration. @@ -122,7 +122,7 @@ atm_pass2() { atm set arpserver ${net} ${atmarp_args} || continue fi eval scsparp_args=\$atm_scsparp_${net} - if [ "X${scsparp_args}" = X"YES" ]; then + if [ "${scsparp_args}" = "YES" ]; then if [ "${atmarp_args}" != "local" ]; then echo "local arpserver required for SCSP" continue @@ -135,7 +135,7 @@ atm_pass2() { echo "." # Define any PVCs. - if [ "X${atm_pvcs}" != "X" ]; then + if [ -n "${atm_pvcs}" ]; then for i in ${atm_pvcs}; do eval pvc_args=\$atm_pvc_${i} atm add pvc ${pvc_args} @@ -143,7 +143,7 @@ atm_pass2() { fi # Define any permanent ARP entries. - if [ "X${atm_arps}" != "X" ]; then + if [ -n "${atm_arps}" ]; then for i in ${atm_arps}; do eval arp_args=\$atm_arp_${i} atm add arp ${arp_args} @@ -157,7 +157,7 @@ atm_pass2() { # atm_pass3() { # Start SCSP daemon (if needed) - if [ ${atm_scspd} -eq 1 ]; then + if [ "${atm_scspd}" -eq 1 ]; then echo -n " scspd" scspd fi |