summaryrefslogtreecommitdiff
path: root/vpn
diff options
context:
space:
mode:
Diffstat (limited to 'vpn')
-rwxr-xr-xvpn6
1 files changed, 5 insertions, 1 deletions
diff --git a/vpn b/vpn
index 33e2706..e83f4f7 100755
--- a/vpn
+++ b/vpn
@@ -30,6 +30,7 @@
# Configurations
CONF_DIR=YOUR_CONFIG_DIR
+TYPE=THE_DEFAULT_VPN
set_terminal_title()
{
@@ -49,8 +50,11 @@ if [ $ISROOT != 0 ]; then
exit 1
fi
-set_routes
+if [ ! -z $1 ]; then
+ TYPE=$1
+fi
# Change title of current terminal
set_terminal_title $TYPE
+set_routes &