diff options
author | Roy Marples <roy@marples.name> | 2007-08-07 21:04:27 +0000 |
---|---|---|
committer | Roy Marples <roy@marples.name> | 2007-08-07 21:04:27 +0000 |
commit | ce12aa56d4988dbcb31636d6124f3ad0fc27ba8c (patch) | |
tree | a49bfb7dd5237ee9f04e94af274a2026849656ad | |
parent | 2fdff9d8d6ada5cf75c45d56872c6cbdc0d18e59 (diff) |
Return the next available ifindex for BSD too
-rw-r--r-- | net.BSD/ifconfig.sh | 4 |
1 files changed, 4 insertions, 0 deletions
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 } |