rockchip: add NanoPi R4S Enterprise Edition build
[openwrt/staging/jow.git] / target / linux / rockchip / armv8 / base-files / etc / hotplug.d / net / 40-net-smp-affinity
index 84064d4f8bcd2c846f90df9951461e38560db213..1bdf235da1cdb9909f8d47b97c6e43f93a456233 100644 (file)
@@ -9,7 +9,7 @@ get_device_irq() {
 
        # wait up to 10 seconds for the irq/device to appear
        while [ "${seconds}" -le 10 ]; do
-               line=$(grep -m 1 "${device}\$" /proc/interrupts) && break
+               line=$(grep -E -m 1 "${device}\$" /proc/interrupts) && break
                seconds="$(( seconds + 2 ))"
                sleep 2
        done
@@ -30,13 +30,15 @@ set_interface_core() {
 
 case "$(board_name)" in
 friendlyarm,nanopi-r2c|\
+friendlyarm,nanopi-r2c-plus|\
 friendlyarm,nanopi-r2s|\
 xunlong,orangepi-r1-plus|\
 xunlong,orangepi-r1-plus-lts)
        set_interface_core 2 "eth0"
-       set_interface_core 4 "eth1" "xhci-hcd:usb3"
+       set_interface_core 4 "eth1" "xhci-hcd:usb[0-9]+"
        ;;
-friendlyarm,nanopi-r4s)
+friendlyarm,nanopi-r4s|\
+friendlyarm,nanopi-r4s-enterprise)
        set_interface_core 10 "eth0"
        set_interface_core 20 "eth1"
        ;;