mirror of
https://github.com/motioneye-project/motioneyeos.git
synced 2025-07-28 13:46:32 +00:00
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 <vivien.didelot@savoirfairelinux.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
This commit is contained in:
parent
b3d1fb26dc
commit
e8c18f2d19
@ -8,12 +8,14 @@ mkdir -p /run/network
|
|||||||
|
|
||||||
case "$1" in
|
case "$1" in
|
||||||
start)
|
start)
|
||||||
echo "Starting network..."
|
printf "Starting network: "
|
||||||
/sbin/ifup -a
|
/sbin/ifup -a
|
||||||
|
[ $? = 0 ] && echo "OK" || echo "FAIL"
|
||||||
;;
|
;;
|
||||||
stop)
|
stop)
|
||||||
printf "Stopping network..."
|
printf "Stopping network: "
|
||||||
/sbin/ifdown -a
|
/sbin/ifdown -a
|
||||||
|
[ $? = 0 ] && echo "OK" || echo "FAIL"
|
||||||
;;
|
;;
|
||||||
restart|reload)
|
restart|reload)
|
||||||
"$0" stop
|
"$0" stop
|
||||||
|
Loading…
x
Reference in New Issue
Block a user