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#*/}