From a36cca5fc6896b20270fe8eaef8f0cbb65f0796e Mon Sep 17 00:00:00 2001 From: Eric Renfro Date: Tue, 20 Aug 2013 11:35:10 -0400 Subject: [PATCH] Fixed path issue for trap.functions --- scripts/trap.functions | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/trap.functions b/scripts/trap.functions index 316f728..f76097a 100644 --- a/scripts/trap.functions +++ b/scripts/trap.functions @@ -7,7 +7,7 @@ trim() { } getDefaultIP() { - local routedev=$(ip -o -4 route show default) + local routedev=$(/sbin/ip -o -4 route show default) routedev=${routedev##* dev } routedev=${routedev%% *} @@ -16,7 +16,7 @@ getDefaultIP() { echo "127.0.0.1" return 1 else - local defipaddr=$(ip -o -4 addr show "${routedev}") + local defipaddr=$(/sbin/ip -o -4 addr show "${routedev}") defipaddr=${defipaddr##* inet } defipaddr=${defipaddr%% *} local mask=${defipaddr#*/}