Return the next available ifindex for BSD too

This commit is contained in:
Roy Marples 2007-08-07 21:04:27 +00:00
parent 2fdff9d8d6
commit ce12aa56d4

View File

@ -47,6 +47,7 @@ _ifindex() {
echo "${x#/dev/net}"
return 0
fi
i=$((${i} + 1))
done
;;
default)
@ -59,6 +60,9 @@ _ifindex() {
done
;;
esac
# Return the next available index
echo "${i}"
return 1
}