memorable net device names for gl-ar750

linux's view of eth1 and eth0 are opposite to that of u-boot
This commit is contained in:
Daniel Barlow 2024-05-08 23:59:35 +01:00 committed by Raito Bezarius
parent cd116ad9e7
commit b6e2585ebb

View file

@ -125,8 +125,14 @@
networkInterfaces = networkInterfaces =
let inherit (config.system.service.network) link; let inherit (config.system.service.network) link;
in { in {
lan = link.build { ifname = "eth0"; }; lan = link.build {
wan = link.build { ifname = "eth1"; }; ifname = "lan";
devpath = "/devices/platform/ahb/19000000.eth";
};
wan = link.build {
ifname = "wan";
devpath = "/devices/platform/ahb/1a000000.eth";
};
wlan = link.build { wlan = link.build {
ifname = "wlan0"; ifname = "wlan0";
dependencies = [ mac80211 ]; dependencies = [ mac80211 ];