From 23b88c063c4c40f7b5ed6760b7e913abdc4e51b1 Mon Sep 17 00:00:00 2001 From: FURK4NGG <105324908+FURK4NGG@users.noreply.github.com> Date: Sat, 25 Jul 2026 20:08:24 +0300 Subject: [PATCH] Update install.sh --- install.sh | 50 ++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) diff --git a/install.sh b/install.sh index c4edcf2..ef08199 100644 --- a/install.sh +++ b/install.sh @@ -608,6 +608,31 @@ if [[ "$answer" == "y" || "$answer" == "Y" ]]; then fi + if printf '%s\n' "${SELECTED_PKGS[@]}" "${SELECTED_PKGS_AUR[@]}" "${DOWNLOAD_PKGS[@]}" "${DOWNLOAD_PKGS_AUR[@]}" | grep -qx "script-vpn" + then + echo "script-vpn config file selected, running extra configuration..." + sudo systemctl enable --now NetworkManager + sudo mkdir -p ~/.config/scripts/ + sudo cp -f .config/scripts/vpn.sh ~/.config/scripts/vpn.sh + sudo chmod +x ~/.config/scripts/*.sh + + echo "Checking NetworkManager..." + systemctl is-active --quiet NetworkManager.service \ + && echo "NetworkManager is running." \ + || echo "NetworkManager failed to start." + + echo "Checking WireGuard tools..." + command -v nmcli >/dev/null \ + && echo "nmcli is installed." + + command -v wg >/dev/null \ + && echo "wg is installed." + + command -v wg-quick >/dev/null \ + && echo "wg-quick is installed." + fi + + if printf '%s\n' "${SELECTED_PKGS[@]}" "${SELECTED_PKGS_AUR[@]}" "${DOWNLOAD_PKGS[@]}" "${DOWNLOAD_PKGS_AUR[@]}" | grep -qx "script-bt" then echo "script-bt config file selected, running extra configuration..." @@ -997,6 +1022,31 @@ if [[ "$answer" == "y" || "$answer" == "Y" ]]; then fi + if printf '%s\n' "${SELECTED_PKGS[@]}" "${SELECTED_PKGS_AUR[@]}" "${DOWNLOAD_PKGS[@]}" "${DOWNLOAD_PKGS_AUR[@]}" | grep -qx "script-vpn" + then + echo "script-vpn config file selected, running extra configuration..." + sudo systemctl enable --now NetworkManager + sudo mkdir -p ~/.config/scripts/ + sudo cp -f .config/scripts/vpn.sh ~/.config/scripts/vpn.sh + sudo chmod +x ~/.config/scripts/*.sh + + echo "Checking NetworkManager..." + systemctl is-active --quiet NetworkManager.service \ + && echo "NetworkManager is running." \ + || echo "NetworkManager failed to start." + + echo "Checking WireGuard tools..." + command -v nmcli >/dev/null \ + && echo "nmcli is installed." + + command -v wg >/dev/null \ + && echo "wg is installed." + + command -v wg-quick >/dev/null \ + && echo "wg-quick is installed." + fi + + if printf '%s\n' "${SELECTED_PKGS[@]}" "${SELECTED_PKGS_AUR[@]}" "${DOWNLOAD_PKGS[@]}" "${DOWNLOAD_PKGS_AUR[@]}" | grep -qx "script-bt" then echo "script-bt config file selected, running extra configuration..."