version 1.303, 2007/04/14 11:54:00 |
version 1.304, 2007/04/25 14:12:05 |
|
|
echo /etc/rc.shutdown complete. |
echo /etc/rc.shutdown complete. |
|
|
# bring carp interfaces down gracefully |
# bring carp interfaces down gracefully |
for hn in /etc/hostname.carp[0-9]*; do |
ifconfig -a|grep '^carp.*:'|cut -f1 -d:|while read if |
# Strip off /etc/hostname. prefix |
do |
if=${hn#/etc/hostname.} |
ifconfig $if down |
test "$if" = "carp[0-9]*" && continue |
|
|
|
ifconfig $if > /dev/null 2>&1 |
|
if [ $? -eq 0 ]; then |
|
ifconfig $if down |
|
fi |
|
done |
done |
|
|
if [ X"${powerdown}" = X"YES" ]; then |
if [ X"${powerdown}" = X"YES" ]; then |