81ece45c3a
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>
29 lines
359 B
Bash
Executable File
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 $?
|
|
|