blob: 1348cb125d78384d74fca9db945294ed1af6b73b [file] [log] [blame]
Andrea Campanellaedfdbca2017-02-01 17:33:47 -08001#!/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#
21set -e
22
23case "$1" in
24start)
25 # typically required
26 ;;
27stop)
28 # typically required
29 ;;
30status)
31 # optional
32 ;;
33flush-all)
34 # optional
35 ;;
36*)
37 echo "'$1' not supported"
38 echo "Usage: before.init {start|stop|flush-all|status}"
39 ;;
40esac