HOOK_SETTINGS="HOOK ADDRESS"
-function hook_check_settings() {
+hook_check_settings() {
assert ismac ADDRESS
}
-function hook_new() {
+hook_new() {
while [ $# -gt 0 ]; do
case "${1}" in
--address=*)
exit ${EXIT_OK}
}
-function hook_edit() {
+hook_edit() {
local port=${1}
assert isset port
shift
exit ${EXIT_OK}
}
-function hook_create() {
+hook_create() {
local port="${1}"
assert isset port
exit ${EXIT_OK}
}
-function hook_remove() {
+hook_remove() {
local port="${1}"
assert isset port
dummy_remove "${port}"
}
-function hook_up() {
+hook_up() {
local port="${1}"
assert isset port
exit ${EXIT_OK}
}
-function hook_down() {
+hook_down() {
local port="${1}"
assert isset port
exit ${EXIT_OK}
}
-function hook_hotplug_rename() {
+hook_hotplug_rename() {
local port=${1}
assert isset port