]> git.ipfire.org Git - 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:54:15 +0000 (14:54 +0000)
committerArne Fitzenreiter <arne_f@ipfire.org>
Tue, 5 Nov 2024 07:46:38 +0000 (08:46 +0100)
commitcacfaa1c890b024302ba9a861bc98b0ac365e405
tree1ff85a25438ff44b1af37a3e9efdda31c739fc36
parent3638d37c0d5e2c1ffa4fd4e884c11b9da3676e31
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>
Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
config/udev/network-hotplug-bridges