summaryrefslogtreecommitdiff
path: root/net.Linux/ifconfig.sh
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2007-08-07 21:01:16 +0000
committerRoy Marples <roy@marples.name>2007-08-07 21:01:16 +0000
commit2fdff9d8d6ada5cf75c45d56872c6cbdc0d18e59 (patch)
treec7418f370f6c6ff4a56cc756bbe2081c445925ea /net.Linux/ifconfig.sh
parent3295a9c0e0dc04ca291c5d6f930768d7345dbe01 (diff)
downloadopenrc-2fdff9d8d6ada5cf75c45d56872c6cbdc0d18e59.tar.gz
openrc-2fdff9d8d6ada5cf75c45d56872c6cbdc0d18e59.tar.bz2
openrc-2fdff9d8d6ada5cf75c45d56872c6cbdc0d18e59.tar.xz
Always give ppp a defaultmetric
Diffstat (limited to 'net.Linux/ifconfig.sh')
-rw-r--r--net.Linux/ifconfig.sh4
1 files changed, 4 insertions, 0 deletions
diff --git a/net.Linux/ifconfig.sh b/net.Linux/ifconfig.sh
index 7192ca8..afa2ede 100644
--- a/net.Linux/ifconfig.sh
+++ b/net.Linux/ifconfig.sh
@@ -27,6 +27,10 @@ _ifindex() {
"${IFACE}:"*) echo "${i}"; return 0;;
esac
done < /proc/net/dev
+
+ # Return the next available index
+ i=$((${i} + 1))
+ echo "${i}"
return 1
}