[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.1

1.1     ! martin      1: #!/bin/sh
        !             2: #
        !             3: # $NetBSD$
        !             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

CVSweb <webmaster@jp.NetBSD.org>