From: Michael Tremer Date: Sat, 17 Jul 2010 08:12:35 +0000 (+0200) Subject: network: Code cleanup. X-Git-Tag: 001~49 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=031708174221d80fd29523e42f759137ec880f48;p=network.git network: Code cleanup. We cannot use sort. There was an unknown function. Don't know if we must keep it. --- diff --git a/functions.hook b/functions.hook index 5b93bfe0..8354da91 100644 --- a/functions.hook +++ b/functions.hook @@ -157,7 +157,7 @@ function hook_zone_get_all() { for hook in $(hook_dir zone)/*; do hook=$(basename ${hook}) hook_zone_exists ${hook} && echo "${hook}" - done | sort + done } function hook_zone_ports_get_all() { @@ -173,9 +173,11 @@ function hook_zone_ports_get_all() { h=$(basename ${h}) ## XXX executeable? echo "${h}" - done | sort + done } function hook_device_exists() { + warning_log "Deprecated function called hook_device_exists" + hook_exists device $@ } diff --git a/functions.zone b/functions.zone index 201444a9..1fb31d2a 100644 --- a/functions.zone +++ b/functions.zone @@ -368,7 +368,7 @@ function zones_get_all() { zone_exists ${zone} || continue echo "${zone}" - done | sort + done } function zones_get_local() { @@ -441,7 +441,7 @@ function zone_ports_list() { [ -e "${port}" ] || continue echo $(basename ${port}) - done | sort + done } function zone_ports_cmd() { @@ -483,7 +483,7 @@ function zone_configs_list() { [ -e "${config}" ] || continue echo $(basename ${config}) - done | sort + done } function zone_configs_cmd() {