Skip to content

Commit 995a4ee

Browse files
committed
fix nanopi r6s udev network mapping
1 parent 61b3aa2 commit 995a4ee

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

config/boards/nanopi-r6s.conf

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,9 @@ function post_family_tweaks__nanopir6s_naming_udev_network_interfaces() {
2828

2929
mkdir -p $SDCARD/etc/udev/rules.d/
3030
cat <<- EOF > "${SDCARD}/etc/udev/rules.d/70-persistent-net.rules"
31-
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", KERNELS=="fe1c0000.ethernet", NAME:="wan1"
32-
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="r8169", KERNELS=="0003:31:00.0", NAME:="lan1"
33-
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="r8169", KERNELS=="0004:41:00.0", NAME:="lan2"
31+
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", KERNELS=="fe1c0000.ethernet", NAME:="lan2"
32+
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="r8169", KERNELS=="0003:31:00.0", NAME:="wan"
33+
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="r8169", KERNELS=="0004:41:00.0", NAME:="lan1"
3434
EOF
3535
}
3636

0 commit comments

Comments
 (0)