From c24411569b2fa675d5e845b99cf0e3c4db542045 Mon Sep 17 00:00:00 2001 From: Stefan Schantl Date: Sun, 12 May 2013 17:06:16 +0000 Subject: [PATCH] headers: Add missing function and rename existing ones. Add a missing function for hook_add and rename the existing one to fit the new hook functions layout. --- header-port | 4 ++++ header-zone | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/header-port b/header-port index 44e3cf18..2e166a11 100644 --- a/header-port +++ b/header-port @@ -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 diff --git a/header-zone b/header-zone index 74cec328..fe556717 100644 --- a/header-zone +++ b/header-zone @@ -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() { -- 2.39.2