mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-28 11:43:25 +02:00
udev: Rename interfaces when MACs are uppercase
The script relied on the configuration being in lowercase. If people manually editied their configuration file they might not have paid attention to this and therefore this script now also accepts uppercase MAC addresses. Fixes: #12047 Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
This commit is contained in:
@@ -63,7 +63,7 @@ for zone in ${ZONES}; do
|
||||
[ -n "${!address}" -a -n "${!device}" ] || continue
|
||||
|
||||
# Compare MAC addresses
|
||||
[ "${ADDRESS}" = "${!address}" ] || continue
|
||||
[ "${ADDRESS}" = "${!address,,}" ] || continue
|
||||
|
||||
# If a matching interface has been found we will
|
||||
# print the name to which udev will rename it.
|
||||
|
||||
Reference in New Issue
Block a user