]> git.ipfire.org Git - people/arne_f/network.git/commitdiff
network: Code cleanup.
authorMichael Tremer <michael.tremer@ipfire.org>
Sat, 17 Jul 2010 08:12:35 +0000 (10:12 +0200)
committerMichael Tremer <michael.tremer@ipfire.org>
Sat, 17 Jul 2010 08:12:35 +0000 (10:12 +0200)
We cannot use sort.
There was an unknown function. Don't know if we must keep it.

functions.hook
functions.zone

index 5b93bfe0151aed9840ca251f9fc935e5dce7566e..8354da917421cf9fd1362de06f22cdeb7f003b92 100644 (file)
@@ -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 $@
 }
index 201444a97d99c567de22519e57909e34a7ba106d..1fb31d2a9938de3117eb7470d6d4036c5dd04d47 100644 (file)
@@ -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() {