mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2024-11-15 04:24:03 +02:00
36 lines
340 B
Plaintext
36 lines
340 B
Plaintext
|
#!/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 $?
|
||
|
|