]> git.ipfire.org Git - people/stevee/network.git/blobdiff - src/hooks/configs/ipv4-static
Remove the function keyword which is a bashism
[people/stevee/network.git] / src / hooks / configs / ipv4-static
index 6ffb0bcf1ee6ea728269a931fe2d56e15ed504e3..f8a21b83dac299c31673907c28c2f31554608945 100644 (file)
@@ -25,7 +25,7 @@ HOOK_MANPAGE="network-config-ipv4-static"
 
 HOOK_SETTINGS="HOOK ADDRESS PREFIX GATEWAY"
 
-function hook_check() {
+hook_check() {
        assert isset ADDRESS
        assert isinteger PREFIX
 
@@ -35,7 +35,7 @@ function hook_check() {
        fi
 }
 
-function hook_create() {
+hook_create() {
        local zone="${1}"
        assert zone_exists "${zone}"
        shift
@@ -112,7 +112,7 @@ function hook_create() {
        exit ${EXIT_OK}
 }
 
-function hook_up() {
+hook_up() {
        local zone=${1}
        local config=${2}
        shift 2
@@ -138,7 +138,7 @@ function hook_up() {
        exit ${EXIT_OK}
 }
 
-function hook_down() {
+hook_down() {
        local zone=${1}
        local config=${2}
        shift 2
@@ -158,7 +158,7 @@ function hook_down() {
        exit ${EXIT_OK}
 }
 
-function hook_status() {
+hook_status() {
        local zone="${1}"
        assert isset zone