修改默认主题

  • E103-W20_Openwrt-23.05/feeds/luci/collections/luci-light/Makefile
  • E103-W20_Openwrt-23.05/feeds/luci/collections/luci-nginx/Makefile
  • E103-W20_Openwrt-23.05/feeds/luci/collections/luci-ssl-nginx/Makefile

替换上述三处的luci-theme-bootstrap为你想要的主题即可。


网口led配置

  • 修改dts:E103-W20_Openwrt-23.05/target/linux/ramips/dts/mt7628an_hilink_hlk-7628n.dts
leds {
        compatible = "gpio-leds";

        wlan {
            label = "green:wlan";
            gpios = <&gpio 44 GPIO_ACTIVE_LOW>;
        };

        wan {
            label = "green:wan";
            gpios = <&gpio 43 GPIO_ACTIVE_LOW>;
        };

        lan1 {
            label = "green:lan1";
            gpios = <&gpio 42 GPIO_ACTIVE_LOW>;
        };

        lan2 {
            label = "green:lan2";
            gpios = <&gpio 41 GPIO_ACTIVE_LOW>;
        };

        lan3 {
            label = "green:lan3";
            gpios = <&gpio 40 GPIO_ACTIVE_LOW>;
        };

        lan4 {
            label = "green:lan4";
            gpios = <&gpio 39 GPIO_ACTIVE_LOW>;
        };
    };

  • 修改led脚本:E103-W20_Openwrt-23.05/target/linux/ramips/mt76x8/base-files/etc/board.d/01_leds

第42行开始:

hilink,hlk-7628n|\
skylab,skw92a)
    ucidef_set_led_netdev "wifi_led" "wifi" "green:wlan" "wlan0"
+    ucidef_set_led_switch "lan1" "lan1" "green:lan1" "switch0" "0x2"
+    ucidef_set_led_switch "lan2" "lan2" "green:lan2" "switch0" "0x4"
+    ucidef_set_led_switch "lan3" "lan3" "green:lan3" "switch0" "0x8"
+    ucidef_set_led_switch "lan4" "lan4" "green:lan4" "switch0" "0x10"
+    ucidef_set_led_switch "wan" "wan" "green:wan" "switch0" "0x01"
    ;;

默认开启wifi

文件:E103-W20_Openwrt-23.05/package/kernel/mac80211/files/lib/wifi/mac80211.sh
206行左右:set wireless.${name}.disabled=0即可


UA2F(统一UA)

链接地址:https://github.com/Zxilly/UA2F

git clone https://github.com/Zxilly/UA2F.git package/UA2F
git clone https://github.com/lucikap/luci-app-ua2f.git package/luci-app-ua2f

编译选项:

  • UA2F: Network -> Routing and Redirection -> ua2f
  • luci-app-ua2f: LuCI -> 3. Applications -> luci-app-ua2f