X-Git-Url: http://git.ipfire.org/?p=people%2Fstevee%2Fnetwork.git;a=blobdiff_plain;f=src%2Fhooks%2Fzones%2Fpppoe;h=b2d0a950a832ef9a3367d495b977f9e0d646a273;hp=fa3f4ed6cea12eae693c766ac39721b5221e45b5;hb=1c6a4e3050e4ea8baf1b57a73b411c631457794f;hpb=7ad5252c5573494c246fa6fc059c2a1564faedcf diff --git a/src/hooks/zones/pppoe b/src/hooks/zones/pppoe index fa3f4ed6..b2d0a950 100644 --- a/src/hooks/zones/pppoe +++ b/src/hooks/zones/pppoe @@ -51,7 +51,7 @@ IPV6="true" # Use IPv6 prefix delegation. PREFIX_DELEGATION="true" -function hook_check_settings() { +hook_check_settings() { assert isset USERNAME assert isset PASSWORD @@ -61,7 +61,7 @@ function hook_check_settings() { assert isset PREFIX_DELEGATION } -function hook_parse_cmdline() { +hook_parse_cmdline() { while [ $# -gt 0 ]; do case "${1}" in --access-concentrator=*) @@ -101,7 +101,7 @@ function hook_parse_cmdline() { done } -function hook_up() { +hook_up() { local zone=${1} assert isset zone @@ -125,7 +125,7 @@ function hook_up() { exit ${EXIT_OK} } -function hook_down() { +hook_down() { local zone=${1} assert isset zone @@ -141,7 +141,7 @@ function hook_down() { exit ${EXIT_OK} } -function hook_hotplug() { +hook_hotplug() { local zone="${1}" case "$(hotplug_action)" in @@ -168,7 +168,7 @@ function hook_hotplug() { exit ${EXIT_NOT_HANDLED} } -function hook_discover() { +hook_discover() { local device=${1} # This obviously only works on ethernet (or compatible) devices @@ -199,7 +199,7 @@ function hook_discover() { exit ${DISCOVER_OK} } -function hook_status() { +hook_status() { local zone=${1} assert isset zone @@ -255,7 +255,7 @@ function hook_status() { exit ${EXIT_OK} } -function hook_ppp_write_config() { +hook_ppp_write_config() { local zone=${1} assert isset zone @@ -302,7 +302,7 @@ function hook_ppp_write_config() { exit ${EXIT_OK} } -function __hook_get_port() { +__hook_get_port() { local zone="${1}" local port @@ -314,7 +314,7 @@ function __hook_get_port() { return ${EXIT_ERROR} } -function hook_port_attach() { +hook_port_attach() { # Excepting at least two arguments here assert [ $# -ge 2 ] @@ -338,7 +338,7 @@ function hook_port_attach() { exit ${EXIT_OK} } -function hook_port_detach() { +hook_port_detach() { assert [ $# -eq 2 ] local zone="${1}" @@ -357,7 +357,7 @@ function hook_port_detach() { exit ${EXIT_OK} } -function hook_ppp_ipv6_up() { +hook_ppp_ipv6_up() { local zone="${1}" ppp_common_ipv6_up "${zone}" @@ -372,7 +372,7 @@ function hook_ppp_ipv6_up() { exit ${EXIT_OK} } -function hook_ppp_ipv6_down() { +hook_ppp_ipv6_down() { local zone="${1}" ppp_common_ipv6_down "${zone}"