From 06327cbeb735d3e8592df3ce6f8cc8a80b461787 Mon Sep 17 00:00:00 2001 From: Epoch Qwert Date: Fri, 28 Nov 2014 04:40:12 -0600 Subject: maybe fixed bug in ifout on Linux for some routes. --- nocompile/bin/ifout | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nocompile/bin/ifout b/nocompile/bin/ifout index a922108..0884d3c 100755 --- a/nocompile/bin/ifout +++ b/nocompile/bin/ifout @@ -2,5 +2,5 @@ if [ "_$(uname -s)" != "_Linux" ];then /sbin/route -n get "$1" | grep "interface" | cut -d: -f2 | tr -d ' ' else - /sbin/ip r g "$1" | head -n1 | cut '-d ' -f3 + /sbin/ip r g "$1" | tr ' ' '\n' | grep -A1 '^dev$' | tail -n1 fi -- cgit v1.2.3