[tunnel] added about section
:Release Notes: - :Detailed Notes: - :Testing Performed: - :QA Notes: - :Issues Addressed: -
This commit is contained in:
parent
58c51672ca
commit
15caed95c1
16
tun.sh
16
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 )
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user