mirror of
https://github.com/RROrg/rr.git
synced 2025-06-21 05:51:05 +08:00
fix typo
This commit is contained in:
parent
64c5cdb305
commit
21af2c35d5
@ -224,21 +224,21 @@ else
|
|||||||
done
|
done
|
||||||
BOOTWAIT="$(readConfigKey "bootwait" "${USER_CONFIG_FILE}")"
|
BOOTWAIT="$(readConfigKey "bootwait" "${USER_CONFIG_FILE}")"
|
||||||
[ -z "${BOOTWAIT}" ] && BOOTWAIT=10
|
[ -z "${BOOTWAIT}" ] && BOOTWAIT=10
|
||||||
w | awk '{print $1" "$2" "$4" "$5" "$6}' >WO
|
w | awk '{print $1" "$2" "$4" "$5" "$6}' >WB
|
||||||
MSG=""
|
MSG=""
|
||||||
while test ${BOOTWAIT} -ge 0; do
|
while test ${BOOTWAIT} -ge 0; do
|
||||||
MSG="$(printf "$(TEXT "%2ds (accessing arpl will interrupt boot)")" "${BOOTWAIT}")"
|
MSG="$(printf "$(TEXT "%2ds (accessing arpl will interrupt boot)")" "${BOOTWAIT}")"
|
||||||
echo -en "\r${MSG}"
|
echo -en "\r${MSG}"
|
||||||
w | awk '{print $1" "$2" "$4" "$5" "$6}' >WC
|
w | awk '{print $1" "$2" "$4" "$5" "$6}' >WC
|
||||||
if ! diff WO WC >/dev/null 2>&1; then
|
if ! diff WB WC >/dev/null 2>&1; then
|
||||||
echo -en "\r$(TEXT "A new access is connected, the boot process is interrupted.")\n"
|
echo -en "\r$(TEXT "A new access is connected, the boot process is interrupted.")\n"
|
||||||
break
|
rm -f WB WC
|
||||||
|
exit 0
|
||||||
fi
|
fi
|
||||||
sleep 1
|
sleep 1
|
||||||
BOOTWAIT=$((BOOTWAIT - 1))
|
BOOTWAIT=$((BOOTWAIT - 1))
|
||||||
done
|
done
|
||||||
rm -f WO WC
|
rm -f WB WC
|
||||||
[ ${BOOTWAIT} -eq 0 ] && exit 0
|
|
||||||
echo -en "\r$(printf "%${#MSG}s" " ")\n"
|
echo -en "\r$(printf "%${#MSG}s" " ")\n"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user