/[pengfork]/pengfork/doc/config/ip-down
ViewVC logotype

Diff of /pengfork/doc/config/ip-down

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.1 by chupa, Tue Nov 26 01:22:31 2002 UTC revision 1.2 by chupa, Sat Nov 30 10:28:51 2002 UTC
# Line 1  Line 1 
1  #!/bin/sh  #!/bin/sh
2    
3  # This is a sample script for ip-up  # This is a sample script for ip-down
4  # this script is called when pengfork setup the inteface  # this script is called when pengfork delete the interface
5  #  #
6  # defined variables:  # defined variables:
7  # IFNAME : the interface name where tunneling is done  # IFNAME : the interface name where tunneling is done
 # ADDRESS : local ip address  
 # NETMASK : netmask for the address  
 # NETWORK : network for the address  
 # BROADCAST : broadcast address  
 # GATEWAY : the default gateway  
8    
9  IFCONFIG=/sbin/ifconfig  IFCONFIG=/sbin/ifconfig
10  ROUTE=/sbin/route  ROUTE=/sbin/route
# Line 21  else Line 16  else
16  fi  fi
17    
18  if [ -x $ROUTE ]; then  if [ -x $ROUTE ]; then
19          $ROUTE del default gw $GATEWAY          $ROUTE del default dev $IFNAME
20  else  else
21          echo "$0: $ROUTE not found"          echo "$0: $ROUTE not found"
22  fi  fi

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26