vm-start/network_control.sh

34 lines
759 B
Bash
Raw Normal View History

# Script which control the network. Make the bridge, veth, dummy, brx alone without any help.
version="0.0.1"
usage="USAGE
$(basename $0) [PARAMETTER] [COMMAND NAME]
DESCRIPTION
Setup the bridge interfaces for a vm.
Take it's config files from:
- \$XDG_CONFIG_HOME/vm_start/conf
In case \$XDG_CONFIG_HOME doesn't exists
- ~/.config/vm_start/conf
PARAMETTER
-h, --help Print this help message and quit
-v, --version Print the installed version of $(basename $0) and quit
NAME
Is the name of the vm to open
COMMAND
active Active the internet network of the vm
desactive desactive the internet network of the vm
desactive-all desactive all vms previously loaded
"
echo "$usage"