diff options
author | Bill Nottingham <notting@redhat.com> | 2009-11-17 11:21:20 -0500 |
---|---|---|
committer | Bill Nottingham <notting@redhat.com> | 2009-11-17 11:21:20 -0500 |
commit | 0ef4bb7b25a59f0cd703e24f067dcb741ab5de68 (patch) | |
tree | 34b62791a665b9f04e43facc62fcf007b00c638b /rc.d/init.d/network | |
parent | a30735e414047006beddfed955b53d6e8c23e651 (diff) | |
download | initscripts-0ef4bb7b25a59f0cd703e24f067dcb741ab5de68.tar initscripts-0ef4bb7b25a59f0cd703e24f067dcb741ab5de68.tar.gz initscripts-0ef4bb7b25a59f0cd703e24f067dcb741ab5de68.tar.bz2 initscripts-0ef4bb7b25a59f0cd703e24f067dcb741ab5de68.tar.xz initscripts-0ef4bb7b25a59f0cd703e24f067dcb741ab5de68.zip |
Keep error codes limited to '1'. (#537841)
Diffstat (limited to 'rc.d/init.d/network')
-rwxr-xr-x | rc.d/init.d/network | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/rc.d/init.d/network b/rc.d/init.d/network index 0c067427..0eb00e6b 100755 --- a/rc.d/init.d/network +++ b/rc.d/init.d/network @@ -142,7 +142,7 @@ case "$1" in test $? = 1 && continue fi action $"Bringing up interface $i: " ./ifup $i boot - rc=$((rc+$?)) + [ $? -ne 0 ] && rc=1 done # Bring up xDSL and VPN interfaces @@ -154,7 +154,7 @@ case "$1" in test $? = 1 && continue fi action $"Bringing up interface $i: " ./ifup $i boot - rc=$((rc+$?)) + [ $? -ne 0 ] && rc=1 fi done @@ -243,7 +243,7 @@ case "$1" in if ! check_device_down $DEVICE; then action $"Shutting down interface $i: " ./ifdown $i boot - rc=$((rc+$?)) + [ $? -ne 0 ] && rc=1 fi ) done |