summaryrefslogtreecommitdiffstats
path: root/etc/rc.shutdown
diff options
context:
space:
mode:
Diffstat (limited to 'etc/rc.shutdown')
-rwxr-xr-xetc/rc.shutdown16
1 files changed, 4 insertions, 12 deletions
diff --git a/etc/rc.shutdown b/etc/rc.shutdown
index 16cecbb..ead26ef 100755
--- a/etc/rc.shutdown
+++ b/etc/rc.shutdown
@@ -14,18 +14,10 @@ PATH=/sbin:/bin:/usr/sbin:/usr/bin
export PATH
CARPINTS=`/sbin/ifconfig | grep "carp[0-999]" | cut -d":" -f1`
-if [ $CARPINTS -gt 0 ]; then
- echo -n "Bringing CARP interfaces down: ["
- for ci in `/sbin/ifconfig | grep "carp[0-999]" | cut -d":" -f1`; do
- echo -n " "
- echo -n $ci
- /sbin/ifconfig $ci down
- /sbin/ifconfig $ci destroy
- done
- echo " ]"
-fi
-echo
-echo
+for ci in `/sbin/ifconfig | grep "carp[0-999]" | cut -d":" -f1`; do
+ /sbin/ifconfig $ci down
+ /sbin/ifconfig $ci destroy
+done
# Call sshd and alert we're shutting down so it can sync
/etc/sshd stop
OpenPOWER on IntegriCloud