mirror of
https://github.com/hackacad/bastille.git
synced 2025-12-23 18:50:46 +01:00
setup: USe - only for options
This commit is contained in:
@@ -33,13 +33,13 @@
|
|||||||
. /usr/local/share/bastille/common.sh
|
. /usr/local/share/bastille/common.sh
|
||||||
|
|
||||||
usage() {
|
usage() {
|
||||||
error_notify "Usage: bastille setup [option(s)] [-b|bridge]"
|
error_notify "Usage: bastille setup [option(s)] [bridge]"
|
||||||
error_notify " [-f|filesystem]"
|
error_notify " [filesystem]"
|
||||||
error_notify " [-l|loopback]"
|
error_notify " [loopback]"
|
||||||
error_notify " [-p|pf|firewall]"
|
error_notify " [pf|firewall]"
|
||||||
error_notify " [-s|shared]"
|
error_notify " [shared]"
|
||||||
error_notify " [-v|vnet]"
|
error_notify " [vnet]"
|
||||||
error_notify " [-z|zfs|storage]"
|
error_notify " [storage]"
|
||||||
cat << EOF
|
cat << EOF
|
||||||
|
|
||||||
Options:
|
Options:
|
||||||
@@ -388,14 +388,14 @@ while [ "$#" -gt 0 ]; do
|
|||||||
done
|
done
|
||||||
|
|
||||||
# Handle options.
|
# Handle options.
|
||||||
case "$1" in
|
case "${1}" in
|
||||||
-f|filesystem)
|
filesystem)
|
||||||
configure_filesystem
|
configure_filesystem
|
||||||
;;
|
;;
|
||||||
-p|pf|firewall)
|
pf|firewall)
|
||||||
configure_pf
|
configure_pf
|
||||||
;;
|
;;
|
||||||
-n|netgraph)
|
netgraph)
|
||||||
if [ "${AUTO_YES}" -eq 1 ]; then
|
if [ "${AUTO_YES}" -eq 1 ]; then
|
||||||
configure_vnet
|
configure_vnet
|
||||||
configure_netgraph
|
configure_netgraph
|
||||||
@@ -419,7 +419,7 @@ case "$1" in
|
|||||||
esac
|
esac
|
||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
-l|loopback)
|
loopback)
|
||||||
if [ "${AUTO_YES}" -eq 1 ]; then
|
if [ "${AUTO_YES}" -eq 1 ]; then
|
||||||
configure_loopback_interface
|
configure_loopback_interface
|
||||||
else
|
else
|
||||||
@@ -441,7 +441,7 @@ case "$1" in
|
|||||||
esac
|
esac
|
||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
-s|shared)
|
shared)
|
||||||
if [ "${AUTO_YES}" -eq 1 ]; then
|
if [ "${AUTO_YES}" -eq 1 ]; then
|
||||||
configure_shared_interface
|
configure_shared_interface
|
||||||
else
|
else
|
||||||
@@ -463,13 +463,13 @@ case "$1" in
|
|||||||
esac
|
esac
|
||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
-z|zfs|storage)
|
storage)
|
||||||
configure_storage
|
configure_storage
|
||||||
;;
|
;;
|
||||||
-v|vnet)
|
vnet)
|
||||||
configure_vnet
|
configure_vnet
|
||||||
;;
|
;;
|
||||||
-b|bridge)
|
bridge)
|
||||||
if [ "${AUTO_YES}" -eq 1 ]; then
|
if [ "${AUTO_YES}" -eq 1 ]; then
|
||||||
error_exit "[ERROR]: [-b|bridge] does not support [-y|--yes]."
|
error_exit "[ERROR]: [-b|bridge] does not support [-y|--yes]."
|
||||||
else
|
else
|
||||||
|
|||||||
Reference in New Issue
Block a user