summaryrefslogtreecommitdiffstats
path: root/etc/rc.shutdown
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2005-07-11 00:32:51 +0000
committerScott Ullrich <sullrich@pfsense.org>2005-07-11 00:32:51 +0000
commit2c9602034e43ba8b792541552cbfa1dfb2c75e6e (patch)
tree50998e79d28a0493fc966ddfeab74004017fc175 /etc/rc.shutdown
parent68c521780c481ef4bdecf4a4f32e8a522b75b2d8 (diff)
downloadpfsense-2c9602034e43ba8b792541552cbfa1dfb2c75e6e.zip
pfsense-2c9602034e43ba8b792541552cbfa1dfb2c75e6e.tar.gz
Spam less on shutdown
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