]> git.ipfire.org Git - people/stevee/network.git/blobdiff - hooks/ports/dummy
Renew hook function naming scheme.
[people/stevee/network.git] / hooks / ports / dummy
index bfd0e5060ae2028205ab9c8bb9ff1169ba18e0fc..3af50cd070951c36cd032bcdca2cce5b45a9c571 100755 (executable)
 
 HOOK_SETTINGS="HOOK ADDRESS"
 
-function _check() {
+function hook_check() {
        assert ismac ADDRESS
 }
 
-function _create() {
+function hook_create() {
        while [ $# -gt 0 ]; do
                case "${1}" in
                        --address=*)
@@ -55,7 +55,7 @@ function _create() {
        exit ${EXIT_OK}
 }
 
-function _edit() {
+function hook_edit() {
        local port=${1}
        assert isset port
        shift
@@ -79,7 +79,7 @@ function _edit() {
        exit ${EXIT_OK} 
 }
 
-function _up() {
+function hook_up() {
        local port=${1}
        assert isset port
 
@@ -96,7 +96,7 @@ function _up() {
        exit ${EXIT_OK}
 }
 
-function _down() {
+function hook_down() {
        local port=${1}
        assert isset port
 
@@ -113,7 +113,7 @@ function _down() {
        exit ${EXIT_OK}
 }
 
-function _hotplug_rename() {
+function hook_hotplug_rename() {
        local port=${1}
        assert isset port