From ce12aa56d4988dbcb31636d6124f3ad0fc27ba8c Mon Sep 17 00:00:00 2001 From: Roy Marples Date: Tue, 7 Aug 2007 21:04:27 +0000 Subject: Return the next available ifindex for BSD too --- net.BSD/ifconfig.sh | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'net.BSD/ifconfig.sh') diff --git a/net.BSD/ifconfig.sh b/net.BSD/ifconfig.sh index 92a77338..9c29ca44 100644 --- a/net.BSD/ifconfig.sh +++ b/net.BSD/ifconfig.sh @@ -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 } -- cgit v1.2.3