From e8c18f2d19f59d313a56c6bb1c1826d70263b4b4 Mon Sep 17 00:00:00 2001 From: Vivien Didelot Date: Tue, 2 Aug 2016 17:38:03 -0400 Subject: [PATCH] initscripts: show status in S40network 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 Signed-off-by: Thomas Petazzoni --- package/initscripts/init.d/S40network | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/package/initscripts/init.d/S40network b/package/initscripts/init.d/S40network index 7b11d8b902..642c5013ac 100755 --- a/package/initscripts/init.d/S40network +++ b/package/initscripts/init.d/S40network @@ -8,12 +8,14 @@ mkdir -p /run/network 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 -- 2.30.2