add parametters to set-tap.sh

This commit is contained in:
primardj 2024-02-01 00:22:37 +00:00
parent be2654b0c4
commit df09b3093b

View file

@ -21,3 +21,24 @@ OPTION available
--replace=<interface> 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