]> git.ipfire.org Git - network.git/blobdiff - hooks/ports/macvlan
Renew hook function naming scheme.
[network.git] / hooks / ports / macvlan
index 5770e9db4069f28a162b4e85db9c92096cfcb964..0214465ad9fa42a27509b6e35f6fcd04b2432a00 100755 (executable)
 
 HOOK_SETTINGS="HOOK ADDRESS PARENT"
 
-function _check() {
+function hook_check() {
        assert isset PARENT
        assert ismac ADDRESS
 }
 
-function _create() {
+function hook_create() {
        while [ $# -gt 0 ]; do
                case "${1}" in
                        --parent-device=*)
@@ -58,7 +58,7 @@ function _create() {
        exit ${EXIT_OK}
 }
 
-function _edit() {
+function hook_edit() {
        local port=${1}
        assert isset port
        shift
@@ -82,7 +82,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