kumquat-buildroot/sources/target_skeleton/etc/init.d/S40network
Eric Andersen 80e368b2b8 Start networking on boot, and setup a default set of network
interfaces (just loopback for now).
2003-06-20 20:18:25 +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 $?