kumquat-buildroot/package/initscripts/init.d/S40network
Jérôme Pouiller 81ece45c3a Revert "package/initscripts: S40network: wait for network interfaces to appear"
This reverts commit 49964858f4. It is
going to be replaced with an ifup hook in next patch.

Signed-off-by: Jérôme Pouiller <jezz@sysmic.org>
Acked-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
2015-11-02 16:51:41 +01:00

29 lines
359 B
Bash
Executable File

#!/bin/sh
#
# Start the network....
#
# Debian ifupdown needs the /run/network lock directory
mkdir -p /run/network
case "$1" in
start)
echo "Starting network..."
/sbin/ifup -a
;;
stop)
printf "Stopping network..."
/sbin/ifdown -a
;;
restart|reload)
"$0" stop
"$0" start
;;
*)
echo "Usage: $0 {start|stop|restart}"
exit 1
esac
exit $?