diff --git a/usr/local/share/bastille/create.sh b/usr/local/share/bastille/create.sh index 1be81266..c5022942 100644 --- a/usr/local/share/bastille/create.sh +++ b/usr/local/share/bastille/create.sh @@ -34,6 +34,9 @@ usage() { error_exit "Usage: bastille create [option] name release ip [interface]" } +usage_vnet() { + error_exit "Usage: bastille create -V name release ip interface" +} running_jail() { if [ -n "$(jls name | awk "/^${NAME}$/")" ]; then @@ -444,6 +447,10 @@ if [ -n "${EMPTY_JAIL}" ]; then if [ $# -ne 1 ]; then usage fi +elif [ -n "${VNET_JAIL}" ]; then + if [ $# -ne 4 ]; then + usage_vnet + fi else if [ $# -gt 4 ] || [ $# -lt 3 ]; then usage