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

1.1       martin      1: #!/bin/sh
                      2: #
1.2     ! martin      3: # $NetBSD: downinterfaces,v 1.1 2001/09/04 18:09:14 martin Exp $
1.1       martin      4: #
                      5:
                      6: # KEYWORD: shutdown
                      7:
1.2     ! martin      8: if [ "x$1" != "xstop" ]; then exit 0; fi
1.1       martin      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>