summaryrefslogtreecommitdiff
path: root/extras/rule_generator
diff options
context:
space:
mode:
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"