ramips: minew g1-c: use default static address for lan instead of dhcp
authorAlexander Couzens <lynxis@fe80.eu>
Mon, 30 Aug 2021 23:43:31 +0000 (01:43 +0200)
committerAlexander Couzens <lynxis@fe80.eu>
Tue, 31 Aug 2021 00:42:32 +0000 (02:42 +0200)
As Adrian Schmutzler suggested on github [1] the device should follow the
default behaviour on ethernet using a static address instead using dhcp.

[1] https://github.com/openwrt/openwrt/commit/8d497b65704f62294a4bbc0e1f5aa4eb1dbf9e24

Signed-off-by: Alexander Couzens <lynxis@fe80.eu>
target/linux/ramips/mt76x8/base-files/etc/board.d/02_network

index 7c9da8f3e4e8c8ba8b3b8c1fcf0e710dc90ce527..7cdf27c00462070b11831ec191ccb09be5f87561 100644 (file)
@@ -15,6 +15,7 @@ ramips_setup_interfaces()
        glinet,vixmini|\
        hak5,wifi-pineapple-mk7|\
        mediatek,linkit-smart-7688|\
+       minew,g1-c|\
        onion,omega2p|\
        onion,omega2|\
        ravpower,rp-wd009|\
@@ -33,11 +34,6 @@ ramips_setup_interfaces()
                ucidef_add_switch_attr "switch0" "enable" "false"
                ucidef_set_interface_lan "eth0"
                ;;
-       minew,g1-c)
-               ucidef_add_switch "switch0"
-               ucidef_add_switch_attr "switch0" "enable" "false"
-               ucidef_set_interface_lan "eth0" "dhcp"
-               ;;
        asus,rt-n10p-v3|\
        asus,rt-n11p-b1|\
        asus,rt-n12-vp-b1|\