]> git.ipfire.org Git - people/stevee/network.git/blobdiff - src/hooks/ports/wireless-adhoc
Remove the function keyword which is a bashism
[people/stevee/network.git] / src / hooks / ports / wireless-adhoc
index 7ab639816e2508f4ce7a70cd9c6c2a694876c857..09ab402816b9861baf8217e651a4a28339c9a990 100644 (file)
@@ -30,7 +30,7 @@ MTU=1500
 PHY=
 SSID=
 
-function hook_check_settings() {
+hook_check_settings() {
        assert isset ADDRESS
        assert ismac ADDRESS
        assert isset CHANNEL
@@ -41,7 +41,7 @@ function hook_check_settings() {
        assert isset SSID
 }
 
-function hook_new() {
+hook_new() {
        while [ $# -gt 0 ]; do
                case "${1}" in
                        --address=*)
@@ -81,7 +81,7 @@ function hook_new() {
        exit ${EXIT_OK}
 }
 
-function hook_edit() {
+hook_edit() {
        local port=${1}
        assert isset port
        shift
@@ -114,7 +114,7 @@ function hook_edit() {
        exit ${EXIT_OK}
 }
 
-function hook_create() {
+hook_create() {
        local port="${1}"
        assert isset port
 
@@ -138,7 +138,7 @@ function hook_create() {
        exit ${EXIT_OK}
 }
 
-function hook_remove() {
+hook_remove() {
        local port="${1}"
        assert isset port
 
@@ -149,7 +149,7 @@ function hook_remove() {
        exit ${EXIT_OK}
 }
 
-function hook_up() {
+hook_up() {
        local port=${1}
        assert isset port
 
@@ -171,7 +171,7 @@ function hook_up() {
        exit ${EXIT_OK}
 }
 
-function hook_down() {
+hook_down() {
        local port="${1}"
        assert isset port
 
@@ -186,7 +186,7 @@ function hook_down() {
        exit ${EXIT_OK}
 }
 
-function hook_hotplug() {
+hook_hotplug() {
        local port="${1}"
        assert isset port
 
@@ -219,7 +219,7 @@ function hook_hotplug() {
        exit ${EXIT_OK}
 }
 
-function hook_find_parent() {
+hook_find_parent() {
        local port=${1}
        assert isset port