Andrea Campanella | edfdbca | 2017-02-01 17:33:47 -0800 | [diff] [blame^] | 1 | #!/bin/sh |
| 2 | # |
| 3 | # before.init: if executable, called by ufw-init. See 'man ufw-framework' for |
| 4 | # details. Note that output from these scripts is not seen via the |
| 5 | # the ufw command, but instead via ufw-init. |
| 6 | # |
| 7 | # Copyright 2013 Canonical Ltd. |
| 8 | # |
| 9 | # This program is free software: you can redistribute it and/or modify |
| 10 | # it under the terms of the GNU General Public License version 3, |
| 11 | # as published by the Free Software Foundation. |
| 12 | # |
| 13 | # This program is distributed in the hope that it will be useful, |
| 14 | # but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 15 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 16 | # GNU General Public License for more details. |
| 17 | # |
| 18 | # You should have received a copy of the GNU General Public License |
| 19 | # along with this program. If not, see <http://www.gnu.org/licenses/>. |
| 20 | # |
| 21 | set -e |
| 22 | |
| 23 | case "$1" in |
| 24 | start) |
| 25 | # typically required |
| 26 | ;; |
| 27 | stop) |
| 28 | # typically required |
| 29 | ;; |
| 30 | status) |
| 31 | # optional |
| 32 | ;; |
| 33 | flush-all) |
| 34 | # optional |
| 35 | ;; |
| 36 | *) |
| 37 | echo "'$1' not supported" |
| 38 | echo "Usage: before.init {start|stop|flush-all|status}" |
| 39 | ;; |
| 40 | esac |