kumquat-buildroot/target/generic/target_busybox_skeleton/etc/init.d/S40network
Bernhard Reutner-Fischer 2f67d9e2fe - preparation for BR2_PACKAGE_BUSYBOX_SKELETON
"Use a minimal target skeleton for use with busybox's mdev et al"
2007-02-15 15:11:34 +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 $?