Changeset 2633
- Timestamp:
- 05/23/07 16:34:07 (2 years ago)
- Files:
-
- trunk/freewrt/package/busybox/files/network.init (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/freewrt/package/busybox/files/network.init
r2509 r2633 1 1 #FWINIT 40 2 2 . /etc/rc.conf 3 4 3 case $1 in 5 autostop) ;;6 4 autostart) 7 test x"${network:-NO}" = x"NO" && exit 08 exec $0 start9 ;;5 test x"${network:-NO}" = x"NO" && exit 0 6 exec $0 start 7 ;; 10 8 start) 11 [ -f /etc/network/interfaces ] || exit 19 [ -f /etc/network/interfaces ] || exit 1 12 10 ifup -a 13 ;;14 stop)15 ifdown -a16 ;;11 ;; 12 autostop|stop) 13 ifdown -a 14 ;; 17 15 restart) 18 $0 stop19 $0 start20 ;;16 $0 stop 17 exec $0 start 18 ;; 21 19 *) 22 echo "Usage: $0 {start | stop | restart}"20 echo "Usage: $0 {start | stop | restart}" 23 21 exit 1 24 ;;22 ;; 25 23 esac 26 24 exit $?


