Add sleep after Network Manager restart

In some cases the NetworkManager is not yet loaded, so the leftover commands will fail. This resolves the issue.
This commit is contained in:
Czirják Tamás 2021-06-08 13:27:01 +02:00 committed by GitHub
parent 5fa7341d9c
commit c66f2458b3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -114,7 +114,8 @@ fi
info "Restarting NetworkManager"
systemctl restart "${SERVICE_NM}"
info "Waiting 5 seconds for NetworkManager to load..."
sleep 5
# Parse command line parameters
while [[ $# -gt 0 ]]; do
arg="$1"