# The public IPv4 address of the tunnel client.
PUBLIC_ADDRESS=""
-function hook_check() {
+hook_check_settings() {
assert isset SIX_RD_PREFIX
assert isset PUBLIC_ADDRESS
assert isset SERVER_ADDRESS
fi
}
-function hook_parse_cmdline() {
+hook_parse_cmdline() {
local value
while [ $# -gt 0 ]; do
done
}
-function hook_up() {
+hook_up() {
local zone="${1}"
assert isset zone
# Read configuration options.
- zone_settings_read "${zone}" ${HOOK_SETTINGS}
+ zone_settings_read "${zone}"
# Configure the tunnel.
if ! device_exists "${zone}"; then
exit ${EXIT_OK}
}
-function hook_down() {
+hook_down() {
local zone=${1}
assert isset zone
exit ${EXIT_OK}
}
-function hook_status() {
+hook_status() {
local zone=${1}
assert isset zone
cli_device_headline ${zone}
- zone_settings_read "${zone}" ${HOOK_SETTINGS}
+ zone_settings_read "${zone}"
local server_line="${SERVER_ADDRESS}"
local server_hostname=$(dns_get_hostname ${SERVER_ADDRESS})