PORT_PARENTS_VAR="PARENT"
-function hook_check_settings() {
+hook_check_settings() {
assert isset PARENT_DEVICE
assert isinteger TAG
done
}
-function hook_new() {
+hook_new() {
while [ $# -gt 0 ]; do
case "${1}" in
--parent-device=*)
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