From 2de64d5820733bee842d4fc686f005e06628c33c Mon Sep 17 00:00:00 2001 From: Tom Eastep Date: Fri, 6 Apr 2012 08:01:07 -0700 Subject: [PATCH] Remove find_echo() from lib.core - Also correct a couple of typos in comments Signed-off-by: Tom Eastep --- Shorewall/lib.core | 23 ++--------------------- 1 file changed, 2 insertions(+), 21 deletions(-) diff --git a/Shorewall/lib.core b/Shorewall/lib.core index 3ceab65af..26dc5b112 100644 --- a/Shorewall/lib.core +++ b/Shorewall/lib.core @@ -757,7 +757,7 @@ add_ip_aliases() # $* = List of addresses # decoration on these IP addresses that they see when their # distro's net config tool adds them. In an attempt to reduce # the anxiety level, we have the following code which sets - # the VLSM and BRD from an existing address in the same networks + # the VLSM and BRD from an existing address in the same network # # Get all of the lines that contain inet addresses with broadcast # @@ -1010,7 +1010,7 @@ get_all_bcasts() ?ELSE ################################################################################# -# IPv4-specific Functions +# IPv6-specific Functions ################################################################################# # # Get all interface addresses with VLSMs @@ -1234,25 +1234,6 @@ delete_gateway() # $! = Description of the Gateway $2 = table number $3 = device [ "$dev" = "$3" ] && run_ip route delete default table $2 } -# -# Determine how to do "echo -e" -# - -find_echo() { - local result - - result=$(echo "a\tb") - [ ${#result} -eq 3 ] && { echo echo; return; } - - result=$(echo -e "a\tb") - [ ${#result} -eq 3 ] && { echo "echo -e"; return; } - - result=$(which echo) - [ -n "$result" ] && { echo "$result -e"; return; } - - echo echo -} - # # Clear Proxy NDP #