change usage jaaj for it to be more accurate.

This commit is contained in:
primardj 2024-02-03 00:47:28 +00:00
parent 724e86ba3c
commit a7f836066c

View file

@ -5,11 +5,11 @@
# Set global variables
Usage="
set-tap.sh [PARAMETTER] [OPTION]
$(basename $0) [PARAMETTER] [OPTION]
set up a bridge and a tap interface. Use either doas or sudo to get the root access. Please make sure that you account have access to theses commands.
This script will use either doas or sudo to access the root user and do some temporary modifications. You will be able to see some with 'ip a' command
Please do your best to not make any mistakes in the options, or else you can be obliged to reboot your computer.
set up a bridge interface. Use either doas or sudo to get the root access. Please make sure that you account have access to theses commands.
This script will use either doas or sudo to access the root user and do some temporary modifications. You will be able to see it with 'ip a' command
Please do not name your bridge the saùe as an already existed interface.
PARAMETTER available
-h, --help Print this help message and quit
@ -20,9 +20,8 @@ OPTION available
--add-br-id=<bridge-id> Set the name for the new bridge interface, usually it is br0, br1, etc
--rm-br-id=<bridge-id> Remove a bridge interface. Be carefull, it do no verification wheither bridge-id is a real interface or a bridge interface.
--addr=<address> Set an external address on the bridge. The external is the one accessible from the host.
--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.1"
add_bridge() {