From df09b3093b5822990530be7497b1162079779377 Mon Sep 17 00:00:00 2001 From: primardj Date: Thu, 1 Feb 2024 00:22:37 +0000 Subject: [PATCH] add parametters to set-tap.sh --- set-tap.sh | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/set-tap.sh b/set-tap.sh index 86d69d2..d885322 100755 --- a/set-tap.sh +++ b/set-tap.sh @@ -21,3 +21,24 @@ OPTION available --replace= In case you want to replace the main connexion of your computer so that only the vm will be able to reach the external network, replace interface by the interface you want to replace, and make sure that the --addr is set to one of the ip on the interace. Please not that it will be possible for your host to lost all connection to the external internet with this parametter. " Version="1.0" + + +# detect the parametters +for i in $@; do + case "$i" in + "-h" | "--help") + echo "$Usage" + exit 0 + ;; + "-v" | "--version") + echo "$(basename $0) $Version" + exit 0 + ;; + esac +done + + + + + +