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.d/atm3.sh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'etc/rc.d/atm3.sh') diff --git a/etc/rc.d/atm3.sh b/etc/rc.d/atm3.sh index 2f807eb..96d82be 100644 --- a/etc/rc.d/atm3.sh +++ b/etc/rc.d/atm3.sh @@ -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 -- cgit v1.1