From 0aa0bdcb3b5a2f7e0a1dc058e6588837e0cc7f9c Mon Sep 17 00:00:00 2001 From: Ing Date: Fri, 16 Jun 2023 11:16:14 +0800 Subject: [PATCH] fix sleep error in update --- files/board/arpl/overlayfs/opt/arpl/boot.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/files/board/arpl/overlayfs/opt/arpl/boot.sh b/files/board/arpl/overlayfs/opt/arpl/boot.sh index b1113df9..4bdecd13 100755 --- a/files/board/arpl/overlayfs/opt/arpl/boot.sh +++ b/files/board/arpl/overlayfs/opt/arpl/boot.sh @@ -156,6 +156,7 @@ if [ "${DIRECT}" = "true" ]; then else (/etc/init.d/S41dhcpcd restart >/dev/null 2>&1 &) || true BOOTIPWAIT="`readConfigKey "bootipwait" "${USER_CONFIG_FILE}"`" + [ -z "${BOOTIPWAIT}" ] && BOOTIPWAIT=10 sleep ${BOOTIPWAIT} ETHX=(`ls /sys/class/net/ | grep eth`) # real network cards list echo "`printf "$(TEXT "Detected %s network cards, Waiting IP.(For reference only)")" "${#ETHX[@]}"`"