realtek: Avoid empty lan mac in initial network setup
authorSven Eckelmann <[email protected]>
Sun, 5 Oct 2025 07:00:08 +0000 (09:00 +0200)
committerHauke Mehrtens <[email protected]>
Sun, 12 Oct 2025 13:52:12 +0000 (15:52 +0200)
commit18e1929401bed72a6e4f7b9b4ccee81cc67a47d6
treee82ace0ae80369a590cd8783f4f69a5137b20291
parentf0648fd5760c3f9ec036d1a51a41c8eedd399ec6
realtek: Avoid empty lan mac in initial network setup

If the lan_mac cannot be found, it is still used (as empty string) in
various operations. This is not valid and other 02_network scripts checking
for a non-empty string before using it. This should also be adopted for the
realtek 02_network.

Signed-off-by: Sven Eckelmann <[email protected]>
Link: https://github.com/openwrt/openwrt/pull/20241
Signed-off-by: Hauke Mehrtens <[email protected]>
target/linux/realtek/base-files/etc/board.d/02_network