mirror of
https://gitlab.com/buildroot.org/buildroot.git
synced 2026-10-01 06:21:56 -09:00
package/dhcp: remove sleep from SysV init scripts restart
No sleep is required for the restart and force-reload operations to succeed. Signed-off-by: Benoît Thébaudeau <benoit@wsystem.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
This commit is contained in:
committed by
Thomas Petazzoni
parent
c11a296dfa
commit
77cdeaa929
@@ -43,7 +43,6 @@ case "$1" in
|
|||||||
;;
|
;;
|
||||||
restart | force-reload)
|
restart | force-reload)
|
||||||
$0 stop
|
$0 stop
|
||||||
sleep 2
|
|
||||||
$0 start
|
$0 start
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
|
|||||||
@@ -36,7 +36,6 @@ case "$1" in
|
|||||||
;;
|
;;
|
||||||
restart | force-reload)
|
restart | force-reload)
|
||||||
$0 stop
|
$0 stop
|
||||||
sleep 2
|
|
||||||
$0 start
|
$0 start
|
||||||
if [ "$?" != "0" ]; then
|
if [ "$?" != "0" ]; then
|
||||||
exit 1
|
exit 1
|
||||||
|
|||||||
Reference in New Issue
Block a user