change parametters setup_bridge.sh

This commit is contained in:
primardj 2024-02-04 11:53:20 +00:00
parent 81cca85faa
commit 4ef45e2f51

View file

@ -17,11 +17,11 @@ PARAMETTER available
OPTION available OPTION available
--add-br-id=<bridge-id> Set the name for the new bridge interface, usually it is br0, br1, etc --addbridge=<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. --rmbridge=<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. --addr=<address> Set an external address on the bridge. The external is the one accessible from the host.
" "
Version="1.0.1" Version="1.1.1"
add_bridge() { add_bridge() {
@ -89,12 +89,12 @@ fi
# detect the options # detect the options
for i in $@; do for i in $@; do
case "${i%=*}" in case "${i%=*}" in
"--add-br-id") "--addbridge")
bridge="${i#*=}" bridge="${i#*=}"
echo "${bridge}" echo "${bridge}"
add_bridge add_bridge
;; ;;
"--rm-br-id") "--rmbridge")
bridge="${i#*=}" bridge="${i#*=}"
echo "${bridge}" echo "${bridge}"
rm_bridge rm_bridge