[BACK]Return to downinterfaces CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / src / etc / rc.d

Annotation of src/etc/rc.d/downinterfaces, Revision 1.3

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

CVSweb <webmaster@jp.NetBSD.org>