diff --git a/usr/local/share/bastille/create.sh b/usr/local/share/bastille/create.sh index 5798e640..2507d528 100644 --- a/usr/local/share/bastille/create.sh +++ b/usr/local/share/bastille/create.sh @@ -607,36 +607,80 @@ LINUX_JAIL="" # Handle and parse options while [ $# -gt 0 ]; do case "${1}" in - -E|--empty|empty) + -E|--empty) EMPTY_JAIL="1" shift ;; - -L|--linux|linux) + -L|--linux) LINUX_JAIL="1" shift ;; - -T|--thick|thick) + -T|--thick) THICK_JAIL="1" shift ;; - -V|--vnet|vnet) + -V|--vnet) VNET_JAIL="1" shift ;; - -B|--bridge|bridge) + -B|--bridge) VNET_JAIL="1" VNET_JAIL_BRIDGE="1" shift ;; - -C|--clone|clone) + -C|--clone) CLONE_JAIL="1" shift ;; + -CV|-VC|--clone-vnet) + CLONE_JAIL="1" + VNET_JAIL="1" + shift + ;; + -CB|-BC|--clone-bridge) + CLONE_JAIL="1" + VNET_JAIL="1" + VNET_JAIL_BRIDGE="1" + shift + ;; + -TV|-VT|--thick-vnet) + THICK_JAIL="1" + VNET_JAIL="1" + shift + ;; + -TB|-BT|--thick-bridge) + THICK_JAIL="1" + VNET_JAIL="1" + VNET_JAIL_BRIDGE="1" + shift + ;; + -EB|-BE|--empty-bridge) + EMPTY_JAIL="1" + VNET_JAIL="1" + VNET_JAIL_BRIDGE="1" + shift + ;; + -EV|-VE|--empty-vnet) + EMPTY_JAIL="1" + VNET_JAIL="1" + shift + ;; + -LV|-VL|--linux-vnet) + LINUX_JAIL="1" + VNET_JAIL="1" + shift + ;; + -LB|-BL|--linux-bridge) + LINUX_JAIL="1" + VNET_JAIL="1" + VNET_JAIL_BRIDGE="1" + shift + ;; -*|--*) error_notify "Unknown Option." usage ;; - *) + *) break ;; esac