2007-02-15 16:11:34 +01:00
|
|
|
#!/bin/sh
|
|
|
|
#
|
|
|
|
# Start the network....
|
|
|
|
#
|
|
|
|
|
|
|
|
case "$1" in
|
|
|
|
start)
|
2008-12-08 15:52:16 +01:00
|
|
|
echo "Starting network..."
|
|
|
|
/sbin/ifup -a
|
2007-02-15 16:11:34 +01:00
|
|
|
;;
|
|
|
|
stop)
|
2008-12-08 15:52:16 +01:00
|
|
|
echo -n "Stopping network..."
|
|
|
|
/sbin/ifdown -a
|
2007-02-15 16:11:34 +01:00
|
|
|
;;
|
|
|
|
restart|reload)
|
2008-12-08 15:52:16 +01:00
|
|
|
"$0" stop
|
|
|
|
"$0" start
|
2007-02-15 16:11:34 +01:00
|
|
|
;;
|
|
|
|
*)
|
|
|
|
echo $"Usage: $0 {start|stop|restart}"
|
|
|
|
exit 1
|
|
|
|
esac
|
|
|
|
|
|
|
|
exit $?
|
|
|
|
|