]> git.ipfire.org Git - people/stevee/network.git/blobdiff - hooks/ports/vlan
Renew hook function naming scheme.
[people/stevee/network.git] / hooks / ports / vlan
index 66b98eb3c7a156d3b06226494fcc7136b944b8ad..20550077fc3e8ab188709e855c76061da82149ed 100755 (executable)
@@ -25,7 +25,7 @@ HOOK_SETTINGS="HOOK ADDRESS PARENT_DEVICE TAG"
 
 PORT_PARENTS_VAR="PARENT"
 
-function _check() {
+function hook_check() {
        assert isset PARENT_DEVICE
        assert isinteger TAG
 
@@ -47,7 +47,7 @@ function _check() {
        done
 }
 
-function _create() {
+function hook_create() {
        while [ $# -gt 0 ]; do
                case "${1}" in
                        --parent-device=*)
@@ -73,7 +73,7 @@ function _create() {
        exit ${EXIT_OK}
 }
 
-function _edit() {
+function hook_edit() {
        local port=${1}
        assert isset port
        shift
@@ -97,7 +97,7 @@ function _edit() {
        exit ${EXIT_OK} 
 }
 
-function _up() {
+function hook_up() {
        local port=${1}
        assert isset port
 
@@ -114,7 +114,7 @@ function _up() {
        exit ${EXIT_OK}
 }
 
-function _down() {
+function hook_down() {
        local port=${1}
        assert isset port