mirror of
https://github.com/RROrg/rr.git
synced 2025-06-21 05:51:05 +08:00
fix sleep error in update
This commit is contained in:
parent
0bdafb22fb
commit
cd3588c294
@ -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[@]}"`"
|
||||
|
Loading…
x
Reference in New Issue
Block a user