summaryrefslogtreecommitdiff
path: root/extras/rule_generator
diff options
context:
space:
mode:
authorKay Sievers <kay.sievers@vrfy.org>2008-03-13 16:31:14 +0100
committerKay Sievers <kay.sievers@vrfy.org>2008-03-13 16:31:14 +0100
commit9138bcba99ebf0498a43b106100cb0ffd3dc222e (patch)
tree731a63625716220c169982d79a548326e06bb294 /extras/rule_generator
parent5ee7ecfb0f07e8c98c1c2b3d988191ad458cf097 (diff)
rules_generator: add KERNEL=="<netifname>*" to generated rules
Some boxes, like the PS3, have multiple independent hardware interfaces, all sharing the same MAC address. If they have different interface names base names, we can distinguish them that way.
Diffstat (limited to 'extras/rule_generator')
-rw-r--r--extras/rule_generator/write_net_rules1
1 files changed, 1 insertions, 0 deletions
diff --git a/extras/rule_generator/write_net_rules b/extras/rule_generator/write_net_rules
index 9b66c938f3..765e56f6d3 100644
--- a/extras/rule_generator/write_net_rules
+++ b/extras/rule_generator/write_net_rules
@@ -102,6 +102,7 @@ if [ "$INTERFACE_NAME" ]; then
else
# if a rule using the current name already exists, find a new name
basename=${INTERFACE%%[0-9]*}
+ match="$match, KERNEL==\"$basename*\""
if interface_name_taken; then
INTERFACE="$basename$(find_next_available "$basename[0-9]*")"
echo "INTERFACE_NEW=$INTERFACE"