mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-06 09:12:45 +01:00
24 lines
433 B
Bash
24 lines
433 B
Bash
#!/bin/bash
|
|
|
|
. /usr/sbin/so-common
|
|
|
|
usage() {
|
|
read -r -d '' message <<- EOM
|
|
usage: so-monitor-add [-h] NIC
|
|
|
|
positional arguments:
|
|
NIC The interface to add to the monitor bond (ex: eth2)
|
|
|
|
optional arguments:
|
|
-h, --help Show this help message and exit
|
|
EOM
|
|
echo "$message"
|
|
exit 1
|
|
}
|
|
|
|
if [[ $# -eq 0 || $# -gt 1 ]] || [[ $1 == '-h' || $1 == '--help' ]]; then
|
|
usage
|
|
fi
|
|
|
|
add_interface_bond0 "$1"
|