From 031708174221d80fd29523e42f759137ec880f48 Mon Sep 17 00:00:00 2001 From: Michael Tremer Date: Sat, 17 Jul 2010 10:12:35 +0200 Subject: [PATCH] network: Code cleanup. We cannot use sort. There was an unknown function. Don't know if we must keep it. --- functions.hook | 6 ++++-- functions.zone | 6 +++--- 2 files changed, 7 insertions(+), 5 deletions(-) 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() { -- 2.47.2