fix sleep error in update

This commit is contained in:
Ing 2023-06-16 11:16:14 +08:00
parent 6aca1141ff
commit 0aa0bdcb3b

View File

@ -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[@]}"`"