1 #!/bin/sh 2 # 3 # $NetBSD: downinterfaces,v 1.1 2001/09/04 18:09:14 martin Exp $ 4 # 5 6 # KEYWORD: shutdown 7 8 if [ $1 != "stop" ]; then exit 0; fi 9 10 . /etc/rc.conf 11 12 tmp=`ifconfig -lu` 13 iflist="" 14 for int in $tmp; do 15 case $int in 16 pppoe*) iflist="$iflist $int" 17 ;; 18 esac 19 done 20 iflist="$iflist $force_down_interfaces" 21 if [ "$iflist" = "" ] || [ "$iflist" = " " ]; then exit 0; fi 22 23 echo "Shutting down interfaces:$iflist" 24 for int in $iflist; do 25 ifconfig $int down 26 done 27