From c66f2458b30cfe5711d3ca6882f440a8b7d9cba8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Czirj=C3=A1k=20Tam=C3=A1s?= Date: Tue, 8 Jun 2021 13:27:01 +0200 Subject: [PATCH] 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. --- installer.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/installer.sh b/installer.sh index 7c95e8a..3e9a32e 100644 --- a/installer.sh +++ b/installer.sh @@ -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"