only run network setup if not already done

This commit is contained in:
Tobias Powalowski 2022-01-23 10:48:31 +01:00
parent 9cb07e5a23
commit 8a7fbfc875

View file

@ -2717,7 +2717,7 @@ auto_testing()
# check for already active profile
check_nework() {
for i in /etc/netctl/*; do
[[ -f "${i}" ]] && netctl -is-active "${i}" && S_NET=1
[[ -f "${i}" ]] && netctl -is-active "$(basename "${i}")" && S_NET=1
done
[[ "${S_NET}" == "1" ]] || donetwork
}