]> git.ipfire.org Git - people/ms/network.git/blobdiff - src/functions/functions.ports
ports: Drop unused and complicated info function
[people/ms/network.git] / src / functions / functions.ports
index af50ee2a3c2616c79196146c2af3dbba32e2a67c..f9b31f3f0b5616d5b23673c9b016d6ff54e7581a 100644 (file)
@@ -246,10 +246,6 @@ port_status() {
        port_cmd status $@
 }
 
-port_info() {
-       port_cmd info $@
-}
-
 port_cmd() {
        local cmd=${1}
        local port=${2}
@@ -299,20 +295,6 @@ port_find_free() {
        return ${EXIT_ERROR}
 }
 
-port_get_info() {
-       local port=${1}
-       local key=${2}
-
-       assert isset port
-       assert port_exists ${port}
-       assert isset key
-
-       (
-               eval $(port_info ${port})
-               echo "${!key}"
-       )
-}
-
 port_get_children() {
        local port=${1}