old-firewall/fw.sh

50 lines
420 B
Bash
Raw Normal View History

#!/bin/bash
2013-03-11 01:24:06 +00:00
set -o errexit
set -o pipefail
set -o nounset
fw_usage() {
:
}
fw_apply() {
:
}
fw_restore() {
:
}
fw_test() {
:
}
fw_flush() {
:
}
if [[ $# -gt 1 ]]; then
fw_usage
exit 1
fi
case $1 in
apply)
fw_apply
;;
restore)
fw_restore
;;
test)
fw_restore
;;
*)
fw_usage
exit 1
;;
esac
exit 0
2013-03-11 01:24:06 +00:00