Skip to content

Commit

Permalink
fix sleep error in update
Browse files Browse the repository at this point in the history
  • Loading branch information
wjz304 committed Jun 16, 2023
1 parent 6aca114 commit 0aa0bdc
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions files/board/arpl/overlayfs/opt/arpl/boot.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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[@]}"`"
Expand Down

0 comments on commit 0aa0bdc

Please sign in to comment.