refactor: move add tunnel to function

This commit is contained in:
Slava-Shchipunov
2024-11-03 22:13:16 +07:00
parent ee6bbe3f13
commit fe245c31c3

View File

@@ -25,6 +25,7 @@ else
[ -f /etc/config/dhcp-opkg ] && cp /etc/config/dhcp /etc/config/dhcp-old && mv /etc/config/dhcp-opkg /etc/config/dhcp
fi
add_tunnel() {
echo "What type of VPN or proxy will be used?"
echo "1) VLESS, Shadowsocks (A sing-box will be installed)"
echo "2) Wireguard"
@@ -93,6 +94,9 @@ while true; do
;;
esac
done
}
add_tunnel
echo "Installed podkop..."
opkg install $DOWNLOAD_DIR/podkop*.ipk