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:
Michael Tremer
2019-04-11 21:59:41 +01:00
parent dccbdf5b97
commit 32e7b93c28
2 changed files with 2 additions and 1 deletions

View File

@@ -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.