mirror of
https://github.com/hackacad/bastille.git
synced 2025-12-20 01:02:36 +01:00
Merge pull request #1216 from BastilleBSD/tschettervictor-patch-1
This commit is contained in:
@@ -211,6 +211,13 @@ validate_netif() {
|
|||||||
else
|
else
|
||||||
error_exit "Invalid: (${_interface})."
|
error_exit "Invalid: (${_interface})."
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# Don't allow dots in INTERFACE if -V
|
||||||
|
if [ "${VNET}" -eq 1 ] && [ "${BRIDGE}" -eq 0 ]; then
|
||||||
|
if echo "${INTERFACE}" | grep -q "\."; then
|
||||||
|
error_exit "[ERROR]: [-V|--vnet] does not support dots (.) in interface names."
|
||||||
|
fi
|
||||||
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
check_interface_added() {
|
check_interface_added() {
|
||||||
|
|||||||
Reference in New Issue
Block a user