add parametters to set-tap.sh
This commit is contained in:
parent
be2654b0c4
commit
df09b3093b
1 changed files with 21 additions and 0 deletions
21
set-tap.sh
21
set-tap.sh
|
@ -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.
|
--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"
|
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
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue