]> git.ipfire.org Git - people/stevee/network.git/commitdiff
headers: Add missing function and rename existing ones. fixes
authorStefan Schantl <stefan.schantl@ipfire.org>
Sun, 12 May 2013 17:06:16 +0000 (17:06 +0000)
committerStefan Schantl <stefan.schantl@ipfire.org>
Sun, 12 May 2013 17:06:16 +0000 (17:06 +0000)
Add a missing function for hook_add and rename the existing one
to fit the new hook functions layout.

header-port
header-zone

index 44e3cf18aab1995a88c45bd3d48b128bac320c76..2e166a118f60b91cf6cdb48c48063b05a4df0dfe 100644 (file)
@@ -38,6 +38,10 @@ function hook_hotplug_rename() {
        exit ${EXIT_FALSE}
 }
 
+function hook_add() {
+       cmd_not_implemented
+}
+
 function hook_info() {
        local port="${1}"
        assert isset port
index 74cec328cd0002a39800e6ddb42af1267169e284..fe5567176fcdd4dc085448c5c84f153ce31a299c 100644 (file)
@@ -81,7 +81,7 @@ function hook_help() {
 }
 
 # Do nothing
-function _parse_cmdline() {
+function hook_parse_cmdline() {
        return ${EXIT_OK}
 }
 
@@ -112,7 +112,7 @@ function hook_port_add() {
 }
 
 function hook_port_edit() {
-       _port_cmd edit "$@"
+       hook_port_cmd edit "$@"
 }
 
 function hook_port_rem() {