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:
parent
5fa7341d9c
commit
c66f2458b3
1 changed files with 2 additions and 1 deletions
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue