From 9138bcba99ebf0498a43b106100cb0ffd3dc222e Mon Sep 17 00:00:00 2001 From: Kay Sievers Date: Thu, 13 Mar 2008 16:31:14 +0100 Subject: [PATCH] rules_generator: add KERNEL=="*" 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. --- extras/rule_generator/write_net_rules | 1 + 1 file changed, 1 insertion(+) diff --git a/extras/rule_generator/write_net_rules b/extras/rule_generator/write_net_rules index 9b66c938..765e56f6 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" -- 2.39.5