Updated trap.functions
This commit is contained in:
parent
e1b91843df
commit
f8a36fa773
1 changed files with 1 additions and 4 deletions
|
@ -13,7 +13,7 @@ getDefaultIP() {
|
||||||
|
|
||||||
if [[ -z "$routedev" ]]
|
if [[ -z "$routedev" ]]
|
||||||
then
|
then
|
||||||
echo ""
|
echo "127.0.0.1"
|
||||||
return 1
|
return 1
|
||||||
else
|
else
|
||||||
local defipaddr=$(ip -o -4 addr show "${routedev}")
|
local defipaddr=$(ip -o -4 addr show "${routedev}")
|
||||||
|
@ -24,8 +24,5 @@ getDefaultIP() {
|
||||||
|
|
||||||
echo "${ip}"
|
echo "${ip}"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
#echo "$routedev"
|
|
||||||
#echo "${ip}/${mask}"
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue