openwrtv4/openwrt/target/default/target_skeleton/etc/init.d/S40network
Mike Baker 76d90c2ed2 Initial revision
SVN-Revision: 197
2005-01-16 11:43:02 +00:00

35 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 $?