diff options
author | Roy Marples <roy@marples.name> | 2007-08-07 21:01:16 +0000 |
---|---|---|
committer | Roy Marples <roy@marples.name> | 2007-08-07 21:01:16 +0000 |
commit | 2fdff9d8d6ada5cf75c45d56872c6cbdc0d18e59 (patch) | |
tree | c7418f370f6c6ff4a56cc756bbe2081c445925ea /net.Linux/iproute2.sh | |
parent | 3295a9c0e0dc04ca291c5d6f930768d7345dbe01 (diff) |
Always give ppp a defaultmetric
Diffstat (limited to 'net.Linux/iproute2.sh')
-rw-r--r-- | net.Linux/iproute2.sh | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/net.Linux/iproute2.sh b/net.Linux/iproute2.sh index fa1171d4..1621c7e1 100644 --- a/net.Linux/iproute2.sh +++ b/net.Linux/iproute2.sh @@ -28,6 +28,10 @@ _ifindex() { "${IFACE}:"*) echo "${i}"; return 0;; esac done < /proc/net/dev + + # Return the next available index + i=$((${i} + 1)) + echo "${i}" return 1 } |