From 33dd02d4b0317288006f6239d86b2d4e0262bc04 Mon Sep 17 00:00:00 2001 From: remittor Date: Fri, 21 Oct 2022 14:19:57 +0300 Subject: [PATCH] Add support Xiaomi R3G and RB03 --- kng_re_menu.json | 1 + r3d_menu.json | 1 + r3g.config | 43 +++++++++++++++++++++++++++++++++++++++++++ r3g.netports | 19 +++++++++++++++++++ r3g_menu.json | 16 ++++++++++++++++ rb03.config | 39 +++++++++++++++++++++++++++++++++++++++ rb03.netports | 24 ++++++++++++++++++++++++ rb03_menu.json | 16 ++++++++++++++++ 8 files changed, 159 insertions(+) create mode 100644 r3g.config create mode 100644 r3g.netports create mode 100644 r3g_menu.json create mode 100644 rb03.config create mode 100644 rb03.netports create mode 100644 rb03_menu.json diff --git a/kng_re_menu.json b/kng_re_menu.json index 6780dfe..9a98217 100644 --- a/kng_re_menu.json +++ b/kng_re_menu.json @@ -4,6 +4,7 @@ "order": 45, "items": [ [ "nas", "filebrowser" ], + [ "services", "aria2" ], [ "services", "samba4" ], [ "services", "transmission" ], [ "system", "diskman" ], diff --git a/r3d_menu.json b/r3d_menu.json index 6780dfe..9a98217 100644 --- a/r3d_menu.json +++ b/r3d_menu.json @@ -4,6 +4,7 @@ "order": 45, "items": [ [ "nas", "filebrowser" ], + [ "services", "aria2" ], [ "services", "samba4" ], [ "services", "transmission" ], [ "system", "diskman" ], diff --git a/r3g.config b/r3g.config new file mode 100644 index 0000000..56a4bdb --- /dev/null +++ b/r3g.config @@ -0,0 +1,43 @@ +CONFIG_TARGET_ramips=y +CONFIG_TARGET_ramips_mt7621=y +CONFIG_TARGET_ramips_mt7621_DEVICE_xiaomi_mi-router-3g=y + +#include _addons.config +#include _base.config +#include _wifi_en.config +#include _printer.config +#include _samba.config +#include _torrents.config +#include _proxy.config +#include _argon.config + +### Luci dashboard +CONFIG_PACKAGE_luci-mod-dashboard=y +CONFIG_PACKAGE_luci-i18n-dashboard-ru=y + +### HDD tools +CONFIG_PACKAGE_smartmontools=y +CONFIG_PACKAGE_hdparm=y + +### Network Ports viewer +CONFIG_PACKAGE_luci-app-tn-netports=y +CONFIG_PACKAGE_luci-i18n-tn-netports-ru=y + +### Network traffic +CONFIG_PACKAGE_luci-app-sqm=y +CONFIG_PACKAGE_luci-i18n-sqm-ru=y + +### TimeControl +CONFIG_PACKAGE_luci-app-timecontrol=m + +### FileBrowser +CONFIG_PACKAGE_wget-ssl=y +CONFIG_PACKAGE_luci-app-filebrowser=y + +### DNSMasq +CONFIG_PACKAGE_dnsmasq-full=y + + + + + diff --git a/r3g.netports b/r3g.netports new file mode 100644 index 0000000..2b63f7e --- /dev/null +++ b/r3g.netports @@ -0,0 +1,19 @@ +config global 'global' + option default_additional_info '0' + option default_h_mode '1' + option hv_mode_switch_button '1' + +config port + option ifname 'wan' + option name 'WAN' + option type 'copper' + +config port + option ifname 'lan1' + option name 'LAN 1' + option type 'copper' + +config port + option ifname 'lan2' + option name 'LAN 2' + option type 'copper' diff --git a/r3g_menu.json b/r3g_menu.json new file mode 100644 index 0000000..d6bab23 --- /dev/null +++ b/r3g_menu.json @@ -0,0 +1,16 @@ +{ + "nas": { + "title": "NAS", + "order": 45, + "items": [ + [ "nas", "filebrowser" ], + [ "services", "samba4" ], + [ "services", "aria2" ], + [ "services", "transmission" ], + [ "system", "diskman" ], + [ "services", "disks-info" ], + [ "services", "hd_idle" ], + [ "services", "minidlna" ] + ] + } +} diff --git a/rb03.config b/rb03.config new file mode 100644 index 0000000..848cf07 --- /dev/null +++ b/rb03.config @@ -0,0 +1,39 @@ +CONFIG_TARGET_mediatek=y +CONFIG_TARGET_mediatek_mt7622=y +CONFIG_TARGET_mediatek_mt7622_DEVICE_xiaomi_redmi-router-ax6s=y + +#include _addons.config +#include _base.config +#include _wifi_en.config +###include _printer.config +#include _samba.config +#include _torrents.config +#include _proxy.config +#include _argon.config + +### Luci dashboard +CONFIG_PACKAGE_luci-mod-dashboard=y +CONFIG_PACKAGE_luci-i18n-dashboard-ru=y + +### Network Ports viewer +CONFIG_PACKAGE_luci-app-tn-netports=y +CONFIG_PACKAGE_luci-i18n-tn-netports-ru=y + +### Network traffic +CONFIG_PACKAGE_luci-app-sqm=y +CONFIG_PACKAGE_luci-i18n-sqm-ru=y + +### TimeControl +#CONFIG_PACKAGE_luci-app-timecontrol=m + +### FileBrowser +CONFIG_PACKAGE_wget-ssl=y +CONFIG_PACKAGE_luci-app-filebrowser=y + +### DNSMasq +CONFIG_PACKAGE_dnsmasq-full=y + + + + + diff --git a/rb03.netports b/rb03.netports new file mode 100644 index 0000000..b547a11 --- /dev/null +++ b/rb03.netports @@ -0,0 +1,24 @@ +config global 'global' + option default_additional_info '0' + option default_h_mode '1' + option hv_mode_switch_button '1' + +config port + option ifname 'wan' + option name 'WAN' + option type 'copper' + +config port + option ifname 'lan1' + option name 'LAN 1' + option type 'copper' + +config port + option ifname 'lan2' + option name 'LAN 2' + option type 'copper' + +config port + option ifname 'lan3' + option name 'LAN 3' + option type 'copper' diff --git a/rb03_menu.json b/rb03_menu.json new file mode 100644 index 0000000..d6bab23 --- /dev/null +++ b/rb03_menu.json @@ -0,0 +1,16 @@ +{ + "nas": { + "title": "NAS", + "order": 45, + "items": [ + [ "nas", "filebrowser" ], + [ "services", "samba4" ], + [ "services", "aria2" ], + [ "services", "transmission" ], + [ "system", "diskman" ], + [ "services", "disks-info" ], + [ "services", "hd_idle" ], + [ "services", "minidlna" ] + ] + } +}