2f67d9e2fe
"Use a minimal target skeleton for use with busybox's mdev et al"
36 lines
340 B
Bash
Executable File
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 $?
|
|
|