/[pearpc]/scripts/ifppc_down
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Contents of /scripts/ifppc_down

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1 - (show annotations)
Wed Sep 5 17:11:21 2007 UTC (12 years, 1 month ago) by dpavlin
File size: 597 byte(s)
import upstream CVS
1 #
2 # BE CAREFUL. THIS SCRIPT IS INVOKED BY A SETUID ROOT BINARY!
3 # IT SHOULD BE OWNED BY ROOT.
4 # ONLY ROOT SHOULD HAVE WRITE-ACCESS TO THIS FILE.
5 #
6
7 . ./scripts/settings
8
9 if [ $BRIDGE == 1 ]; then
10 rm $PPC_INTERFACE.active
11 brctl delif $BRIDGE_INTERFACE $PPC_INTERFACE
12 if [ `ls -l *.active | wc -l` == 0 ]; then
13 # If this is the last ppc interface, down the whole bridge
14 ifconfig $BRIDGE_INTERFACE down
15 brctl delbr $BRIDGE_INTERFACE
16 ifconfig $HOST_INTERFACE $HOST_IP netmask $HOST_NETMASK up
17 route add -net default gw $HOST_DEFAULT_ROUTER
18 fi
19 else
20 /sbin/ifconfig $PPC_INTERFACE down
21 fi

Properties

Name Value
svn:executable *

  ViewVC Help
Powered by ViewVC 1.1.26