Remove find_echo() from lib.core

- Also correct a couple of typos in comments

Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
Tom Eastep 2012-04-06 08:01:07 -07:00
parent 24e115d0f9
commit 2de64d5820

View File

@ -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
#