Fixed path issue for trap.functions

This commit is contained in:
Eric Renfro 2013-08-20 11:35:10 -04:00
parent 698f8fd539
commit a36cca5fc6
1 changed files with 2 additions and 2 deletions

View File

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