1
0
mirror of git://projects.qi-hardware.com/openwrt-xburst.git synced 2024-09-22 04:44:09 +03:00
openwrt-xburst/obsolete-buildroot/sources/target_skeleton/etc/init.d/S40network
mbm 3ac1acb9ea Initial revision
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@30 3c298f89-4303-0410-b956-a3cf2f4a3e73
2004-05-25 04:32:27 +00:00

36 lines
340 B
Bash
Executable File

#!/bin/sh
#
# Start the network....
#
start() {
echo "Starting network..."
/sbin/ifup -a
}
stop() {
echo -n "Stopping network..."
/sbin/ifdown -a
}
restart() {
stop
start
}
case "$1" in
start)
start
;;
stop)
stop
;;
restart|reload)
restart
;;
*)
echo $"Usage: $0 {start|stop|restart}"
exit 1
esac
exit $?