Changeset 2633

Show
Ignore:
Timestamp:
05/23/07 16:34:07 (2 years ago)
Author:
tg
Message:

shut down network interfaces on reboot
rationale: pppoe connections can then send a PADT

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/freewrt/package/busybox/files/network.init

    r2509 r2633  
    11#FWINIT 40 
    22. /etc/rc.conf 
    3  
    43case $1 in 
    5 autostop) ;; 
    64autostart) 
    7         test x"${network:-NO}" = x"NO" && exit 0 
    8         exec $0 start 
    9         ;; 
     5       test x"${network:-NO}" = x"NO" && exit 0 
     6       exec $0 start 
     7       ;; 
    108start) 
    11         [ -f /etc/network/interfaces ] || exit 1 
     9       [ -f /etc/network/interfaces ] || exit 1 
    1210        ifup -a 
    13         ;; 
    14 stop) 
    15         ifdown -a 
    16         ;; 
     11       ;; 
     12autostop|stop) 
     13       ifdown -a 
     14       ;; 
    1715restart) 
    18         $0 stop 
    19         $0 start 
    20         ;; 
     16       $0 stop 
     17       exec $0 start 
     18       ;; 
    2119*) 
    22         echo "Usage: $0 {start | stop | restart}" 
     20       echo "Usage: $0 {start | stop | restart}" 
    2321        exit 1 
    24         ;; 
     22       ;; 
    2523esac 
    2624exit $?