From 2c9602034e43ba8b792541552cbfa1dfb2c75e6e Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Mon, 11 Jul 2005 00:32:51 +0000 Subject: Spam less on shutdown --- etc/rc.shutdown | 16 ++++------------ 1 file 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 -- cgit v1.1