From 15caed95c1669551bdd56ec45f5a78f32081cebe Mon Sep 17 00:00:00 2001 From: Artur Mukhamadiev Date: Sat, 28 Jun 2025 01:04:19 +0300 Subject: [PATCH] [tunnel] added about section :Release Notes: - :Detailed Notes: - :Testing Performed: - :QA Notes: - :Issues Addressed: - --- tun.sh | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/tun.sh b/tun.sh index 9567cf5..6e63028 100755 --- a/tun.sh +++ b/tun.sh @@ -4,7 +4,7 @@ version=0.1 idx=0 killFlag=0 endpoint="192.168.105.100" -user="vptyp" +user="$USER" cacheFile=.tunLast privateKeyLoc="~/.ssh/id_ecdsa" override=0 @@ -46,9 +46,19 @@ function usage { " } +function about { + echo " + ${scriptName} ver.${version} + Setup with next settings: + started up under user: ${user} + endpoint: ${endpoint} + cacheFile: ${cacheFile} + " +} + while [[ "$1" =~ ^- && ! "$1" == "--" ]]; do case $1 in - -V | --version ) - echo "$version" + -a | --about ) + about exit ;; -k | --kill )