From a7f836066cf4d74fbc7982fb29513d2420f34f6a Mon Sep 17 00:00:00 2001 From: primardj Date: Sat, 3 Feb 2024 00:47:28 +0000 Subject: [PATCH] change usage jaaj for it to be more accurate. --- setup_bridge.sh | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/setup_bridge.sh b/setup_bridge.sh index ca78403..537284a 100755 --- a/setup_bridge.sh +++ b/setup_bridge.sh @@ -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= Set the name for the new bridge interface, usually it is br0, br1, etc --rm-br-id= Remove a bridge interface. Be carefull, it do no verification wheither bridge-id is a real interface or a bridge interface. --addr=
Set an external address on the bridge. The external is the one accessible from the host. - --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" +Version="1.0.1" add_bridge() {