fix: Update ifAlias script to deal with GRE interfaces (#5546)

This commit is contained in:
patrick7
2017-01-28 00:16:33 +01:00
committed by Neil Lathwood
parent 5dd030f438
commit 91dd6a2670

View File

@ -38,7 +38,7 @@ if [ "$1" = "-n" ]; then
fi
fi
IFACE=$(grep "^${ID}: " <<<"$cache" | sed 's/[:@]\s/ /g'| cut -d " " -f 2)
IFACE=$(grep "^${ID}: " <<<"$cache" | sed 's/[:@]\s/ /g'| cut -d " " -f 2 | cut -d @ -f 1)
echo ${BASE}.${ID}
if [ "X${IFACE}" = "X" ]; then