Skip to content

Commit

Permalink
add "boot ips wait time"
Browse files Browse the repository at this point in the history
  • Loading branch information
wjz304 committed Jun 15, 2023
1 parent f215a28 commit e877657
Show file tree
Hide file tree
Showing 6 changed files with 538 additions and 504 deletions.
4 changes: 3 additions & 1 deletion files/board/arpl/overlayfs/opt/arpl/boot.sh
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,9 @@ if [ "${DIRECT}" = "true" ]; then
reboot
exit 0
else
sleep 1
(/etc/init.d/S41dhcpcd restart >/dev/null 2>&1 &) || true
BOOTIPWAIT="`readConfigKey "bootipwait" "${USER_CONFIG_FILE}"`"
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[@]}"`"
for N in $(seq 0 $(expr ${#ETHX[@]} - 1)); do
Expand Down
1 change: 1 addition & 0 deletions files/board/arpl/overlayfs/opt/arpl/init.sh
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ if [ ! -f "${USER_CONFIG_FILE}" ]; then
writeConfigKey "lkm" "prod" "${USER_CONFIG_FILE}"
writeConfigKey "directboot" "false" "${USER_CONFIG_FILE}"
writeConfigKey "notsetmacs" "false" "${USER_CONFIG_FILE}"
writeConfigKey "bootipwait" "10" "${USER_CONFIG_FILE}"
writeConfigKey "model" "" "${USER_CONFIG_FILE}"
writeConfigKey "build" "" "${USER_CONFIG_FILE}"
writeConfigKey "sn" "" "${USER_CONFIG_FILE}"
Expand Down
Loading

0 comments on commit e877657

Please sign in to comment.