* bin/network-down, bin/network-up: trim leading and trailing whitespace

Signed-off-by: Dustin Kirkland <kirkland@canonical.com>
This commit is contained in:
Dustin Kirkland 2009-05-06 20:42:20 -05:00
commit 72d1d2c706
2 changed files with 2 additions and 2 deletions

View file

@ -24,7 +24,7 @@ interface=`/sbin/route -n | tail -n 1 | sed "s/^.* //"`
unit="kB/s"
if [ "$1" = "--detail" ]; then
ifconfig "$interface"
ifconfig "$interface" | sed 's/^\s*//' | sed 's/\s*$//'
exit 0
fi

View file

@ -25,7 +25,7 @@ interface=`/sbin/route -n | tail -n 1 | sed "s/^.* //"`
unit="kB/s"
if [ "$1" = "--detail" ]; then
ifconfig "$interface"
ifconfig "$interface" | sed 's/^\s*//' | sed 's/\s*$//'
exit 0
fi