1
0

Handle default value for get_iface_from_mac

Este cometimento está contido em:
Frédéric Pierret (fepitre) 2019-05-18 10:42:13 +02:00
ascendente da162d7615
cometimento 902da9f837
Não foi encontrada uma chave conhecida para esta assinatura, na base de dados
ID da chave GPG: 484010B5CDC576E2

Ver ficheiro

@ -131,7 +131,9 @@ umount_retry() {
get_iface_from_mac() {
local mac="$1"
local iface
iface="$(ip -o link | grep -i "$mac" | awk '{print $2}' | cut -d ':' -f1)"
if [ "x$mac" != "x" ]; then
iface="$(ip -o link | grep -i "$mac" | awk '{print $2}' | cut -d ':' -f1)"
fi
echo "$iface"
}