From cd6acd3a1277222a0d55ecc049b3c7a4b8fc3777 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ivan=20Juri=C5=A1i=C4=87?= Date: Wed, 24 Apr 2024 11:37:01 +0200 Subject: [PATCH] Fix for Network Manager --- debian/desktop-environment/clean-install-kde.sh | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/debian/desktop-environment/clean-install-kde.sh b/debian/desktop-environment/clean-install-kde.sh index 439d1ec..19d5a31 100755 --- a/debian/desktop-environment/clean-install-kde.sh +++ b/debian/desktop-environment/clean-install-kde.sh @@ -39,6 +39,18 @@ choice() { done } +fix_net() { + nf="/etc/network/interfaces" + ifs=($(ip addr | grep -E ':\s.*?:' | cut -d ":" -f 2 | tr -d " ")) + for value in "${ifs[@]}" + do + sed -i 's/^[^#]*'.$value.'*/#&/' $nf + done + systemctl restart networking.service + systemctl restart NetworkManager.service + systemctl restart NetworkManager-wait-online.service +} + #### Main check_root @@ -81,3 +93,7 @@ if choice 2>/dev/null; then $APT_INST $PKG_FIREFOX $PKG_NET fi +echo -ne "\nYou want to run fix_net function? " +if choice 2>/dev/null; then + fix_net +fi