The output of "/etc/init.d/S40network start/stop" was lacking a
newline due to the usage of printf. Fix it by echoing the status, like
we do in other init scripts.
Signed-off-by: Vivien Didelot <vivien.didelot@savoirfairelinux.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
case "$1" in
start)
- echo "Starting network..."
+ printf "Starting network: "
/sbin/ifup -a
+ [ $? = 0 ] && echo "OK" || echo "FAIL"
;;
stop)
- printf "Stopping network..."
+ printf "Stopping network: "
/sbin/ifdown -a
+ [ $? = 0 ] && echo "OK" || echo "FAIL"
;;
restart|reload)
"$0" stop