diff --git a/scripts/togglenetworking.sh b/scripts/togglenetworking.sh index bed99f7..8f08c71 100644 --- a/scripts/togglenetworking.sh +++ b/scripts/togglenetworking.sh @@ -7,8 +7,14 @@ C_YELLOW="\033[38;5;226m" if systemctl is-active --quiet NetworkManager; then sudo systemctl stop NetworkManager + sudo systemctl stop systemd-networkd 2>/dev/null || true + sudo systemctl stop dhcpcd 2>/dev/null || true + sudo systemctl stop wpa_supplicant 2>/dev/null || true echo -e "${C_YELLOW}Networking is now ${F_BOLD}${C_RED}inactive${NO_FORMAT}" else sudo systemctl start NetworkManager + sudo systemctl start systemd-networkd + sudo systemctl start dhcpcd + sudo systemctl start wpa_supplicant echo -e "${C_YELLOW}Networking is now ${F_BOLD}${C_GREEN}active${NO_FORMAT}" fi