]> git.ipfire.org Git - people/stevee/network.git/blobdiff - src/hooks/zones/6rd
Remove the function keyword which is a bashism
[people/stevee/network.git] / src / hooks / zones / 6rd
index 2777c9076e1dc73995159ae0e7150d7653a3641b..6ab94ad953de44a0c1512e6f99006cbb26b5d9f5 100644 (file)
@@ -36,7 +36,7 @@ SERVER_ADDRESS=""
 # 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
@@ -70,7 +70,7 @@ function hook_check() {
        fi
 }
 
-function hook_parse_cmdline() {
+hook_parse_cmdline() {
        local value
 
        while [ $# -gt 0 ]; do
@@ -96,12 +96,12 @@ function hook_parse_cmdline() {
        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
@@ -129,7 +129,7 @@ function hook_up() {
        exit ${EXIT_OK}
 }
 
-function hook_down() {
+hook_down() {
        local zone=${1}
        assert isset zone
 
@@ -144,13 +144,13 @@ function hook_down() {
        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})