]> git.ipfire.org Git - people/ms/ipfire-2.x.git/commit
udev: network-hotplug-bridges: Silence a warning when interfaces have gone away
authorMichael Tremer <michael.tremer@ipfire.org>
Thu, 17 Oct 2024 14:39:24 +0000 (15:39 +0100)
committerMichael Tremer <michael.tremer@ipfire.org>
Thu, 17 Oct 2024 14:39:24 +0000 (15:39 +0100)
commit49995af4d87fdad02593f36c1529f267fc1a1f84
tree2646c74df99a4d2282852d759a181083fdb4f44b
parentf5d78f2a16e4875041fb6fd81a34bf75a78e706d
udev: network-hotplug-bridges: Silence a warning when interfaces have gone away

It can happen that udev has an event for an interface in the queue that
has already gone away - or even just being renamed.

Then reading the MAC address fails. Because the shell expands the
"$(<...)" statement before running the whole line, the read check is
useless.

Because the code would get too complicated otherwise, I decided to use
cat. Not cool, but this does the job.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
config/udev/network-hotplug-bridges