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 + + + + + +