aboutsummaryrefslogtreecommitdiffstats
path: root/rc.d/init.d/netconsole
diff options
context:
space:
mode:
Diffstat (limited to 'rc.d/init.d/netconsole')
-rw-r--r--rc.d/init.d/netconsole2
1 files changed, 1 insertions, 1 deletions
diff --git a/rc.d/init.d/netconsole b/rc.d/init.d/netconsole
index 17296f8e..7f91a6c6 100644
--- a/rc.d/init.d/netconsole
+++ b/rc.d/init.d/netconsole
@@ -47,7 +47,7 @@ print_address_info ()
[ -z "$DEV" ] && DEV=$(echo $route | sed "s|.* dev \([^ ]*\).*|\1|")
echo "DEV=$DEV"
echo "LOCALADDR=$(echo $route | sed "s|.* src \([^ ]*\).*|\1|")"
- if echo $route | grep -q " via " ; then
+ if [[ $route == *" via "* ]] ; then
via=$(echo $route | sed "s|.* via \([^ ]*\).*|\1|")
target=$via
else