python-dataproperty: bump version to 0.17.0
[buildroot-gz.git] / package / initscripts / init.d / S40network
blob642c5013ac6581ac1cf16ec7c5c00c723ccf6ac9
1 #!/bin/sh
3 # Start the network....
6 # Debian ifupdown needs the /run/network lock directory
7 mkdir -p /run/network
9 case "$1" in
10 start)
11 printf "Starting network: "
12 /sbin/ifup -a
13 [ $? = 0 ] && echo "OK" || echo "FAIL"
15 stop)
16 printf "Stopping network: "
17 /sbin/ifdown -a
18 [ $? = 0 ] && echo "OK" || echo "FAIL"
20 restart|reload)
21 "$0" stop
22 "$0" start
25 echo "Usage: $0 {start|stop|restart}"
26 exit 1
27 esac
29 exit $?