]> git.ipfire.org Git - people/stevee/network.git/blobdiff - src/functions/functions.ports
Remove some unused code
[people/stevee/network.git] / src / functions / functions.ports
index 39c7fb66fa82e23c601d58d4e3121814d0c52f77..8af5619ed96c8763ef791ef3bb1c3579cd6e4711 100644 (file)
@@ -156,29 +156,15 @@ port_is_up() {
 }
 
 port_new() {
-       #local port=${1}
-       #shift
-       #
-       #if port_exists ${port}; then
-       #       error "Port '${port}' does already exist."
-       #       return ${EXIT_ERROR}
-       #fi
-
-       local hook=${1}
+       local hook="${1}"
        shift
 
-       if ! hook_exists port ${hook}; then
+       if ! hook_exists port "${hook}"; then
                error "Port hook '${hook}' does not exist."
                return ${EXIT_ERROR}
        fi
 
-       #port_edit ${port} ${hook} $@
-       #
-       #if [ $? -ne ${EXIT_OK} ]; then
-       #       port_destroy ${port}
-       #fi
-
-       hook_exec port ${hook} new $@
+       hook_exec port "${hook}" new $@
 }
 
 port_destroy() {