]> git.ipfire.org Git - people/stevee/network.git/blobdiff - src/hooks/zones/pppoe
Remove the function keyword which is a bashism
[people/stevee/network.git] / src / hooks / zones / pppoe
index fa3f4ed6cea12eae693c766ac39721b5221e45b5..b2d0a950a832ef9a3367d495b977f9e0d646a273 100644 (file)
@@ -51,7 +51,7 @@ IPV6="true"
 # Use IPv6 prefix delegation.
 PREFIX_DELEGATION="true"
 
 # Use IPv6 prefix delegation.
 PREFIX_DELEGATION="true"
 
-function hook_check_settings() {
+hook_check_settings() {
        assert isset USERNAME
        assert isset PASSWORD
 
        assert isset USERNAME
        assert isset PASSWORD
 
@@ -61,7 +61,7 @@ function hook_check_settings() {
        assert isset PREFIX_DELEGATION
 }
 
        assert isset PREFIX_DELEGATION
 }
 
-function hook_parse_cmdline() {
+hook_parse_cmdline() {
        while [ $# -gt 0 ]; do
                case "${1}" in
                        --access-concentrator=*)
        while [ $# -gt 0 ]; do
                case "${1}" in
                        --access-concentrator=*)
@@ -101,7 +101,7 @@ function hook_parse_cmdline() {
        done
 }
 
        done
 }
 
-function hook_up() {
+hook_up() {
        local zone=${1}
        assert isset zone
 
        local zone=${1}
        assert isset zone
 
@@ -125,7 +125,7 @@ function hook_up() {
        exit ${EXIT_OK}
 }
 
        exit ${EXIT_OK}
 }
 
-function hook_down() {
+hook_down() {
        local zone=${1}
        assert isset zone
 
        local zone=${1}
        assert isset zone
 
@@ -141,7 +141,7 @@ function hook_down() {
        exit ${EXIT_OK}
 }
 
        exit ${EXIT_OK}
 }
 
-function hook_hotplug() {
+hook_hotplug() {
        local zone="${1}"
 
        case "$(hotplug_action)" in
        local zone="${1}"
 
        case "$(hotplug_action)" in
@@ -168,7 +168,7 @@ function hook_hotplug() {
        exit ${EXIT_NOT_HANDLED}
 }
 
        exit ${EXIT_NOT_HANDLED}
 }
 
-function hook_discover() {
+hook_discover() {
        local device=${1}
 
        # This obviously only works on ethernet (or compatible) devices
        local device=${1}
 
        # This obviously only works on ethernet (or compatible) devices
@@ -199,7 +199,7 @@ function hook_discover() {
        exit ${DISCOVER_OK}
 }
 
        exit ${DISCOVER_OK}
 }
 
-function hook_status() {
+hook_status() {
        local zone=${1}
        assert isset zone
 
        local zone=${1}
        assert isset zone
 
@@ -255,7 +255,7 @@ function hook_status() {
        exit ${EXIT_OK}
 }
 
        exit ${EXIT_OK}
 }
 
-function hook_ppp_write_config() {
+hook_ppp_write_config() {
        local zone=${1}
        assert isset zone
 
        local zone=${1}
        assert isset zone
 
@@ -302,7 +302,7 @@ function hook_ppp_write_config() {
        exit ${EXIT_OK}
 }
 
        exit ${EXIT_OK}
 }
 
-function __hook_get_port() {
+__hook_get_port() {
        local zone="${1}"
 
        local port
        local zone="${1}"
 
        local port
@@ -314,7 +314,7 @@ function __hook_get_port() {
        return ${EXIT_ERROR}
 }
 
        return ${EXIT_ERROR}
 }
 
-function hook_port_attach() {
+hook_port_attach() {
        # Excepting at least two arguments here
        assert [ $# -ge 2 ]
 
        # Excepting at least two arguments here
        assert [ $# -ge 2 ]
 
@@ -338,7 +338,7 @@ function hook_port_attach() {
        exit ${EXIT_OK}
 }
 
        exit ${EXIT_OK}
 }
 
-function hook_port_detach() {
+hook_port_detach() {
        assert [ $# -eq 2 ]
 
        local zone="${1}"
        assert [ $# -eq 2 ]
 
        local zone="${1}"
@@ -357,7 +357,7 @@ function hook_port_detach() {
        exit ${EXIT_OK}
 }
 
        exit ${EXIT_OK}
 }
 
-function hook_ppp_ipv6_up() {
+hook_ppp_ipv6_up() {
        local zone="${1}"
 
        ppp_common_ipv6_up "${zone}"
        local zone="${1}"
 
        ppp_common_ipv6_up "${zone}"
@@ -372,7 +372,7 @@ function hook_ppp_ipv6_up() {
        exit ${EXIT_OK}
 }
 
        exit ${EXIT_OK}
 }
 
-function hook_ppp_ipv6_down() {
+hook_ppp_ipv6_down() {
        local zone="${1}"
 
        ppp_common_ipv6_down "${zone}"
        local zone="${1}"
 
        ppp_common_ipv6_down "${zone}"