Output status of bringing carp interfaces down

This commit is contained in:
Scott Ullrich 2005-05-06 14:48:21 +00:00
parent cfc55699a6
commit 153c86012f

View File

@ -1,5 +1,10 @@
#!/bin/sh
echo
echo
echo "pfSense is now shutting down ..."
echo
stty status '^T'
# Set shell to ignore SIGINT (2), but not children;
@ -11,9 +16,14 @@ HOME=/; export HOME
PATH=/sbin:/bin:/usr/sbin:/usr/bin
export PATH
echo -n "Bringing interfaces down: ["
for ci in `/sbin/ifconfig | grep "carp[0-999]" | cut -d":" -f1`; do
echo Bringing $ci down ...
echo -n " "
echo -n $ci
/sbin/ifconfig $ci down
/sbin/ifconfig $ci destroy
done
echo " ]"
echo
echo