]>
git.ipfire.org Git - people/stevee/network.git/blob - src/hooks/zones/teredo
2 ###############################################################################
4 # IPFire.org - A linux based firewall #
5 # Copyright (C) 2010 Michael Tremer & Christian Schmidt #
7 # This program is free software: you can redistribute it and/or modify #
8 # it under the terms of the GNU General Public License as published by #
9 # the Free Software Foundation, either version 3 of the License, or #
10 # (at your option) any later version. #
12 # This program is distributed in the hope that it will be useful, #
13 # but WITHOUT ANY WARRANTY; without even the implied warranty of #
14 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the #
15 # GNU General Public License for more details. #
17 # You should have received a copy of the GNU General Public License #
18 # along with this program. If not, see <http://www.gnu.org/licenses/>. #
20 ###############################################################################
22 .
/usr
/lib
/network
/header-zone
24 HOOK_SETTINGS
="HOOK SERVER"
28 function hook_check
() {
32 function hook_parse_cmdline
() {
35 while [ $# -gt 0 ]; do
38 SERVER
=$
(cli_get_val
${1})
41 echo "Unknown option: ${1}" >&2
58 function hook_down
() {
67 function hook_status
() {
71 # Print a nice header.
72 cli_device_headline
${zone}
74 zone_config_read
${zone}
76 cli_headline
2 "Configuration"
77 cli_print_fmt1
2 "Server" "${SERVER}"
79 # Exit if zone is down
80 if ! zone_is_up
${zone}; then
85 cli_headline
2 "Protocol information"
86 cli_print_fmt1
2 "MTU" "$(device_get_mtu ${zone})"