mirror of
https://github.com/AuxXxilium/arc.git
synced 2024-11-24 01:49:54 +07:00
functions: rework logic
Signed-off-by: AuxXxilium <info@auxxxilium.tech>
This commit is contained in:
parent
4d4a5fd980
commit
575cc9e40f
@ -504,6 +504,7 @@ function offlineCheck() {
|
||||
CNT=$((${CNT} + 1))
|
||||
if [ -n "${NEWTAG}" ]; then
|
||||
[ -z "${ARCNIC}" ] && ARCNIC="auto"
|
||||
break
|
||||
elif [ ${CNT} -ge 3 ]; then
|
||||
ETHX="$(ls /sys/class/net/ 2>/dev/null | grep eth)"
|
||||
for ETH in ${ETHX}; do
|
||||
@ -514,8 +515,8 @@ function offlineCheck() {
|
||||
break 2
|
||||
fi
|
||||
done
|
||||
break
|
||||
fi
|
||||
break
|
||||
done
|
||||
if [ -n "${ARCNIC}" ]; then
|
||||
writeConfigKey "arc.offline" "false" "${USER_CONFIG_FILE}"
|
||||
|
Loading…
Reference in New Issue
Block a user