Showing preview only (1,415K chars total). Download the full file or copy to clipboard to get everything.
Repository: koshev-msk/modemfeed
Branch: master
Commit: c535e0c1c796
Files: 387
Total size: 1.2 MB
Directory structure:
gitextract_vn7k3biq/
├── .gitmodules
├── README.md
├── luci/
│ ├── applications/
│ │ ├── luci-app-3proxy/
│ │ │ ├── Makefile
│ │ │ ├── README.md
│ │ │ ├── htdocs/
│ │ │ │ └── luci-static/
│ │ │ │ └── resources/
│ │ │ │ └── view/
│ │ │ │ └── proxy/
│ │ │ │ └── 3proxy.js
│ │ │ ├── po/
│ │ │ │ └── ru/
│ │ │ │ └── 3proxy.po
│ │ │ └── root/
│ │ │ └── usr/
│ │ │ └── share/
│ │ │ ├── luci/
│ │ │ │ └── menu.d/
│ │ │ │ └── luci-app-3proxy.json
│ │ │ └── rpcd/
│ │ │ └── acl.d/
│ │ │ └── luci-app-3proxy.json
│ │ ├── luci-app-atinout/
│ │ │ ├── LICENSE
│ │ │ ├── Makefile
│ │ │ ├── README.md
│ │ │ ├── htdocs/
│ │ │ │ └── luci-static/
│ │ │ │ └── resources/
│ │ │ │ └── view/
│ │ │ │ └── modem/
│ │ │ │ ├── atcommands.js
│ │ │ │ └── atconfig.js
│ │ │ ├── po/
│ │ │ │ ├── ru/
│ │ │ │ │ └── atinout.po
│ │ │ │ ├── template/
│ │ │ │ │ └── atinout.pot
│ │ │ │ └── zh_Hans/
│ │ │ │ └── atinout.po
│ │ │ └── root/
│ │ │ ├── etc/
│ │ │ │ └── uci-defaults/
│ │ │ │ └── 65-luci-app-atinout
│ │ │ └── usr/
│ │ │ ├── bin/
│ │ │ │ └── luci-app-atinout
│ │ │ └── share/
│ │ │ ├── luci/
│ │ │ │ └── menu.d/
│ │ │ │ └── luci-app-atinout.json
│ │ │ └── rpcd/
│ │ │ └── acl.d/
│ │ │ └── luci-app-atinout.json
│ │ ├── luci-app-cellled/
│ │ │ ├── Makefile
│ │ │ ├── htdocs/
│ │ │ │ └── luci-static/
│ │ │ │ └── resources/
│ │ │ │ └── view/
│ │ │ │ └── cellled.js
│ │ │ ├── po/
│ │ │ │ └── ru/
│ │ │ │ └── cellled.po
│ │ │ └── root/
│ │ │ └── usr/
│ │ │ └── share/
│ │ │ ├── luci/
│ │ │ │ └── menu.d/
│ │ │ │ └── luci-app-cellled.json
│ │ │ └── rpcd/
│ │ │ └── acl.d/
│ │ │ └── luci-app-cellled.json
│ │ ├── luci-app-mmconfig/
│ │ │ ├── LICENSE
│ │ │ ├── Makefile
│ │ │ ├── README.md
│ │ │ ├── htdocs/
│ │ │ │ └── luci-static/
│ │ │ │ └── resources/
│ │ │ │ └── view/
│ │ │ │ └── modem/
│ │ │ │ └── bands.js
│ │ │ ├── po/
│ │ │ │ ├── ru/
│ │ │ │ │ └── mmconfig.po
│ │ │ │ └── zh_Hans/
│ │ │ │ └── mmconfig.po
│ │ │ └── root/
│ │ │ ├── etc/
│ │ │ │ ├── config/
│ │ │ │ │ └── mmconfig
│ │ │ │ ├── init.d/
│ │ │ │ │ └── mmconfig
│ │ │ │ └── uci-defaults/
│ │ │ │ └── 70_luci-app-mmconfig
│ │ │ └── usr/
│ │ │ └── share/
│ │ │ ├── luci/
│ │ │ │ └── menu.d/
│ │ │ │ └── luci-app-mmconfig.json
│ │ │ ├── modeminfo/
│ │ │ │ └── mmconfig
│ │ │ └── rpcd/
│ │ │ └── acl.d/
│ │ │ └── luci-app-mmconfig.json
│ │ ├── luci-app-modeminfo/
│ │ │ ├── Makefile
│ │ │ ├── README.md
│ │ │ ├── htdocs/
│ │ │ │ └── luci-static/
│ │ │ │ └── resources/
│ │ │ │ ├── modem-indicator.js
│ │ │ │ ├── preload/
│ │ │ │ │ └── modem-indicator.js
│ │ │ │ └── view/
│ │ │ │ ├── modem/
│ │ │ │ │ ├── hw.js
│ │ │ │ │ ├── main.js
│ │ │ │ │ └── setup.js
│ │ │ │ └── status/
│ │ │ │ └── include/
│ │ │ │ └── 26_modeminfo.js
│ │ │ ├── po/
│ │ │ │ ├── ru/
│ │ │ │ │ └── modeminfo.po
│ │ │ │ └── zh_Hans/
│ │ │ │ └── modeminfo.po
│ │ │ └── root/
│ │ │ └── usr/
│ │ │ └── share/
│ │ │ ├── luci/
│ │ │ │ └── menu.d/
│ │ │ │ └── luci-app-modeminfo.json
│ │ │ └── rpcd/
│ │ │ └── acl.d/
│ │ │ └── luci-app-modeminfo.json
│ │ ├── luci-app-mwan3-ledhelper/
│ │ │ ├── Makefile
│ │ │ ├── htdocs/
│ │ │ │ └── luci-static/
│ │ │ │ └── resources/
│ │ │ │ └── view/
│ │ │ │ └── mwan3/
│ │ │ │ └── network/
│ │ │ │ └── led.js
│ │ │ ├── po/
│ │ │ │ └── ru/
│ │ │ │ └── mwan3-ledhelper.po
│ │ │ └── root/
│ │ │ └── usr/
│ │ │ └── share/
│ │ │ ├── luci/
│ │ │ │ └── menu.d/
│ │ │ │ └── luci-app-mwan3-ledhelper.json
│ │ │ └── rpcd/
│ │ │ └── acl.d/
│ │ │ └── luci-app-mwan3-ledhelper.json
│ │ ├── luci-app-ota/
│ │ │ ├── Makefile
│ │ │ ├── htdocs/
│ │ │ │ └── luci-static/
│ │ │ │ └── resources/
│ │ │ │ └── view/
│ │ │ │ └── system/
│ │ │ │ └── ota.js
│ │ │ ├── po/
│ │ │ │ └── ru/
│ │ │ │ └── ota.po
│ │ │ └── root/
│ │ │ ├── etc/
│ │ │ │ └── config/
│ │ │ │ └── ota
│ │ │ └── usr/
│ │ │ └── share/
│ │ │ ├── luci/
│ │ │ │ └── menu.d/
│ │ │ │ └── luci-app-ota.json
│ │ │ ├── ota.sh
│ │ │ └── rpcd/
│ │ │ └── acl.d/
│ │ │ └── luci-app-ota.json
│ │ ├── luci-app-pingcontrol/
│ │ │ ├── Makefile
│ │ │ ├── htdocs/
│ │ │ │ └── luci-static/
│ │ │ │ └── resources/
│ │ │ │ └── view/
│ │ │ │ └── pingcontrol/
│ │ │ │ └── pingcontrol.js
│ │ │ ├── po/
│ │ │ │ ├── en/
│ │ │ │ │ └── pingcontrol.po
│ │ │ │ └── ru/
│ │ │ │ └── pingcontrol.po
│ │ │ └── root/
│ │ │ └── usr/
│ │ │ └── share/
│ │ │ ├── luci/
│ │ │ │ └── menu.d/
│ │ │ │ └── luci-app-pingcontrol.json
│ │ │ └── rpcd/
│ │ │ └── acl.d/
│ │ │ └── luci-app-pingcontrol.json
│ │ ├── luci-app-rtorrent/
│ │ │ ├── LICENSE
│ │ │ ├── Makefile
│ │ │ ├── README.md
│ │ │ ├── htdocs/
│ │ │ │ └── cgi-bin/
│ │ │ │ └── rtorrent
│ │ │ ├── luasrc/
│ │ │ │ ├── controller/
│ │ │ │ │ └── rtorrent.lua
│ │ │ │ ├── model/
│ │ │ │ │ └── cbi/
│ │ │ │ │ └── rtorrent/
│ │ │ │ │ ├── add.lua
│ │ │ │ │ ├── admin/
│ │ │ │ │ │ ├── rss.lua
│ │ │ │ │ │ └── rtorrent.lua
│ │ │ │ │ ├── common.lua
│ │ │ │ │ ├── download.lua
│ │ │ │ │ ├── main.lua
│ │ │ │ │ ├── rss-rule.lua
│ │ │ │ │ ├── rss.lua
│ │ │ │ │ ├── string.lua
│ │ │ │ │ └── torrent/
│ │ │ │ │ ├── files.lua
│ │ │ │ │ ├── info.lua
│ │ │ │ │ ├── peers.lua
│ │ │ │ │ └── trackers.lua
│ │ │ │ └── view/
│ │ │ │ └── rtorrent/
│ │ │ │ ├── button.htm
│ │ │ │ ├── buttonsection.htm
│ │ │ │ ├── empty.htm
│ │ │ │ ├── fvalue.htm
│ │ │ │ ├── list.htm
│ │ │ │ ├── lvalue.htm
│ │ │ │ ├── rss_addrule.htm
│ │ │ │ ├── tabmenu.htm
│ │ │ │ └── tvalue.htm
│ │ │ ├── po/
│ │ │ │ ├── en/
│ │ │ │ │ └── rtorrent.po
│ │ │ │ └── ru/
│ │ │ │ └── rtorrent.po
│ │ │ └── root/
│ │ │ ├── etc/
│ │ │ │ ├── config/
│ │ │ │ │ └── rtorrent
│ │ │ │ ├── cookies.txt
│ │ │ │ ├── init.d/
│ │ │ │ │ └── rtorrent
│ │ │ │ ├── rtorrent.conf
│ │ │ │ └── uci-defaults/
│ │ │ │ └── rtorrent
│ │ │ └── usr/
│ │ │ └── lib/
│ │ │ └── lua/
│ │ │ ├── bencode.lua
│ │ │ ├── rss_downloader.lua
│ │ │ ├── rtorrent.lua
│ │ │ └── xmlrpc/
│ │ │ ├── init.lua
│ │ │ └── scgi.lua
│ │ ├── luci-app-smstools3/
│ │ │ ├── Makefile
│ │ │ ├── README.md
│ │ │ ├── htdocs/
│ │ │ │ └── luci-static/
│ │ │ │ └── resources/
│ │ │ │ └── view/
│ │ │ │ └── smstools3/
│ │ │ │ ├── cmd.js
│ │ │ │ ├── in.js
│ │ │ │ ├── out.js
│ │ │ │ ├── pb.js
│ │ │ │ ├── script.js
│ │ │ │ ├── send.js
│ │ │ │ └── setup.js
│ │ │ ├── po/
│ │ │ │ ├── ru/
│ │ │ │ │ └── smstools3.po
│ │ │ │ └── zh_Hans/
│ │ │ │ └── smstools3.po
│ │ │ └── root/
│ │ │ ├── etc/
│ │ │ │ ├── init.d/
│ │ │ │ │ └── luci-sms
│ │ │ │ └── uci-defaults/
│ │ │ │ └── 63_luci-app-smstools3
│ │ │ └── usr/
│ │ │ ├── bin/
│ │ │ │ ├── msg_control
│ │ │ │ └── send_sms
│ │ │ └── share/
│ │ │ ├── luci/
│ │ │ │ └── menu.d/
│ │ │ │ └── luci-app-smstools3.json
│ │ │ ├── luci-app-smstools3/
│ │ │ │ ├── event.sh
│ │ │ │ ├── led.sh
│ │ │ │ ├── smscommand.sh
│ │ │ │ └── smstools3.user
│ │ │ └── rpcd/
│ │ │ └── acl.d/
│ │ │ └── luci-app-smstools3.json
│ │ ├── luci-app-ssw/
│ │ │ ├── Makefile
│ │ │ ├── htdocs/
│ │ │ │ └── luci-static/
│ │ │ │ └── resources/
│ │ │ │ └── view/
│ │ │ │ └── modem/
│ │ │ │ └── ssw.js
│ │ │ ├── po/
│ │ │ │ └── ru/
│ │ │ │ └── ssw.po
│ │ │ └── root/
│ │ │ └── usr/
│ │ │ └── share/
│ │ │ ├── luci/
│ │ │ │ └── menu.d/
│ │ │ │ └── luci-app-ssw.json
│ │ │ └── rpcd/
│ │ │ └── acl.d/
│ │ │ └── luci-app-ssw.json
│ │ ├── luci-app-telegrambot/
│ │ │ ├── Makefile
│ │ │ ├── README.md
│ │ │ ├── htdocs/
│ │ │ │ └── luci-static/
│ │ │ │ └── resources/
│ │ │ │ └── view/
│ │ │ │ └── telegrambot.js
│ │ │ ├── po/
│ │ │ │ └── ru/
│ │ │ │ └── telegrambot.po
│ │ │ └── root/
│ │ │ └── usr/
│ │ │ └── share/
│ │ │ ├── luci/
│ │ │ │ └── menu.d/
│ │ │ │ └── luci-app-telegrambot.json
│ │ │ └── rpcd/
│ │ │ └── acl.d/
│ │ │ └── luci-app-telegrambot.json
│ │ └── luci-app-ttl/
│ │ ├── Makefile
│ │ ├── htdocs/
│ │ │ └── luci-static/
│ │ │ └── resources/
│ │ │ └── view/
│ │ │ └── firewall/
│ │ │ └── ttl.js
│ │ ├── po/
│ │ │ └── ru/
│ │ │ └── ttl.po
│ │ └── root/
│ │ ├── etc/
│ │ │ ├── config/
│ │ │ │ └── ttl
│ │ │ ├── hotplug.d/
│ │ │ │ └── iface/
│ │ │ │ └── 90-ttl
│ │ │ └── init.d/
│ │ │ └── ttl
│ │ └── usr/
│ │ └── share/
│ │ ├── luci/
│ │ │ └── menu.d/
│ │ │ └── luci-app-ttl.json
│ │ ├── rpcd/
│ │ │ └── acl.d/
│ │ │ └── luci-app-ttl.json
│ │ ├── ttl.sh
│ │ ├── ttlipt.sh
│ │ └── ttlnft.sh
│ ├── protocols/
│ │ ├── luci-proto-openvpn/
│ │ │ ├── Makefile
│ │ │ ├── htdocs/
│ │ │ │ └── luci-static/
│ │ │ │ └── resources/
│ │ │ │ └── protocol/
│ │ │ │ └── openvpn.js
│ │ │ └── root/
│ │ │ └── usr/
│ │ │ └── share/
│ │ │ └── rpcd/
│ │ │ ├── acl.d/
│ │ │ │ └── luci-proto-openvpn.json
│ │ │ └── ucode/
│ │ │ └── luci.openvpn.uc
│ │ ├── luci-proto-tun2socks/
│ │ │ ├── Makefile
│ │ │ └── htdocs/
│ │ │ └── luci-static/
│ │ │ └── resources/
│ │ │ └── protocol/
│ │ │ └── t2s.js
│ │ └── luci-proto-xmm/
│ │ ├── Makefile
│ │ ├── README.md
│ │ └── htdocs/
│ │ └── luci-static/
│ │ └── resources/
│ │ └── protocol/
│ │ └── xmm.js
│ └── themes/
│ ├── luci-theme-lightblue/
│ │ ├── Makefile
│ │ ├── htdocs/
│ │ │ └── luci-static/
│ │ │ ├── lightblue/
│ │ │ │ ├── cascade.css
│ │ │ │ └── mobile.css
│ │ │ └── resources/
│ │ │ └── menu-lightblue.js
│ │ ├── luasrc/
│ │ │ └── view/
│ │ │ └── themes/
│ │ │ └── lightblue/
│ │ │ ├── footer.htm
│ │ │ └── header.htm
│ │ └── root/
│ │ └── etc/
│ │ └── uci-defaults/
│ │ └── 30_luci-theme-lightblue
│ ├── luci-theme-merona/
│ │ ├── Makefile
│ │ ├── htdocs/
│ │ │ └── luci-static/
│ │ │ ├── merona/
│ │ │ │ ├── cascade.css
│ │ │ │ ├── checkbox.css
│ │ │ │ └── mobile.css
│ │ │ └── resources/
│ │ │ └── menu-merona.js
│ │ ├── luasrc/
│ │ │ └── view/
│ │ │ └── themes/
│ │ │ └── merona/
│ │ │ ├── footer.htm
│ │ │ └── header.htm
│ │ └── root/
│ │ └── etc/
│ │ └── uci-defaults/
│ │ └── 30_luci-theme-merona
│ ├── luci-theme-routerich/
│ │ ├── Makefile
│ │ ├── htdocs/
│ │ │ └── luci-static/
│ │ │ ├── resources/
│ │ │ │ └── menu-routerich.js
│ │ │ └── routerich/
│ │ │ ├── background/
│ │ │ │ └── README.md
│ │ │ ├── css/
│ │ │ │ ├── cascade.css
│ │ │ │ ├── dark.css
│ │ │ │ └── routerich.css
│ │ │ └── icon/
│ │ │ ├── browserconfig.xml
│ │ │ └── manifest.json
│ │ ├── luasrc/
│ │ │ └── view/
│ │ │ └── themes/
│ │ │ └── routerich/
│ │ │ ├── footer.htm
│ │ │ ├── footer_login.htm
│ │ │ ├── header.htm
│ │ │ ├── header_login.htm
│ │ │ ├── out_header_login.htm
│ │ │ └── sysauth.htm
│ │ └── root/
│ │ └── etc/
│ │ └── uci-defaults/
│ │ └── 30_luci-theme-routerich
│ └── luci-theme-teleofis/
│ ├── Makefile
│ ├── htdocs/
│ │ └── luci-static/
│ │ ├── resources/
│ │ │ └── menu-teleofis.js
│ │ └── teleofis/
│ │ ├── cascade.css
│ │ ├── checkbox.css
│ │ └── mobile.css
│ ├── luasrc/
│ │ └── view/
│ │ └── themes/
│ │ └── teleofis/
│ │ ├── footer.htm
│ │ └── header.htm
│ └── root/
│ └── etc/
│ └── uci-defaults/
│ └── 30_luci-theme-teleofis
└── packages/
├── net/
│ ├── 3proxy/
│ │ ├── Makefile
│ │ ├── README.md
│ │ ├── files/
│ │ │ └── etc/
│ │ │ ├── 3proxy.cfg
│ │ │ ├── config/
│ │ │ │ └── 3proxy
│ │ │ └── init.d/
│ │ │ └── 3proxy
│ │ └── patches/
│ │ ├── 0001-fix-makefile-loff_t-and-enable-ssl-plugin.patch
│ │ └── 0002-use-pcre-library.patch
│ ├── accel-ppp/
│ │ ├── LICENSE
│ │ ├── Makefile
│ │ ├── README.md
│ │ ├── files/
│ │ │ ├── accel-ppp.conf
│ │ │ └── accel-ppp.init
│ │ └── patches/
│ │ └── 0001-build-with-musl.patch
│ ├── cellled/
│ │ ├── Makefile
│ │ └── root/
│ │ ├── etc/
│ │ │ ├── config/
│ │ │ │ └── cellled
│ │ │ └── init.d/
│ │ │ └── cellled
│ │ └── usr/
│ │ ├── bin/
│ │ │ └── cellled
│ │ └── share/
│ │ └── cellled.sh
│ ├── ethstatus/
│ │ ├── Makefile
│ │ └── patches/
│ │ └── 0001-version.patch
│ ├── ifmetric/
│ │ ├── Makefile
│ │ └── patches/
│ │ └── 0001-nlrequest.c_packet-too-small_fix
│ ├── maxminddb-dump-country/
│ │ └── Makefile
│ ├── modeminfo/
│ │ ├── Makefile
│ │ └── root/
│ │ ├── etc/
│ │ │ └── config/
│ │ │ └── modeminfo
│ │ └── usr/
│ │ ├── bin/
│ │ │ └── modeminfo
│ │ ├── lib/
│ │ │ └── telegrambot/
│ │ │ └── plugins/
│ │ │ └── modeminfo.sh
│ │ └── share/
│ │ ├── modeminfo/
│ │ │ ├── modem.list
│ │ │ ├── modeminfo
│ │ │ └── scripts/
│ │ │ ├── DELL
│ │ │ ├── DELL.at
│ │ │ ├── DIS_SIMCOM_A7XXX
│ │ │ ├── DIS_SIMCOM_A7XXX.at
│ │ │ ├── FIBOCOM
│ │ │ ├── FIBOCOM.at
│ │ │ ├── GENERIC
│ │ │ ├── GENERIC.at
│ │ │ ├── GOSUN
│ │ │ ├── GOSUN.at
│ │ │ ├── HUAWEI
│ │ │ ├── HUAWEI.at
│ │ │ ├── INTEL
│ │ │ ├── INTEL.at
│ │ │ ├── INTEL_FM350
│ │ │ ├── INTEL_FM350.at
│ │ │ ├── MEIGLINK
│ │ │ ├── MEIGLINK.at
│ │ │ ├── MIKROTIK
│ │ │ ├── MIKROTIK.at
│ │ │ ├── QUALCOMM
│ │ │ ├── QUALCOMM.at
│ │ │ ├── QUECTEL
│ │ │ ├── QUECTEL.at
│ │ │ ├── SIERRA
│ │ │ ├── SIERRA.at
│ │ │ ├── SIMCOM
│ │ │ ├── SIMCOM.at
│ │ │ ├── SKELETON
│ │ │ ├── SKELETON.at
│ │ │ ├── STYX
│ │ │ ├── STYX.at
│ │ │ ├── THALES
│ │ │ ├── THALES.at
│ │ │ ├── THINKWILL
│ │ │ ├── THINKWILL.at
│ │ │ ├── YUGE
│ │ │ ├── YUGE.at
│ │ │ ├── ZTE
│ │ │ ├── ZTE.at
│ │ │ ├── ch_to_band
│ │ │ ├── modeminfo
│ │ │ └── probeport.gcom
│ │ └── snmpmodem.sh
│ ├── mrtg/
│ │ ├── Makefile
│ │ ├── README.md
│ │ └── patches/
│ │ ├── 0001-disable-longlong-fmt.patch
│ │ └── 0002-fix-perl-path.patch
│ ├── mwan3-ledhelper/
│ │ ├── Makefile
│ │ └── root/
│ │ ├── etc/
│ │ │ ├── config/
│ │ │ │ └── mwan3_led
│ │ │ └── hotplug.d/
│ │ │ └── iface/
│ │ │ └── 17-mwan3-ledhelper
│ │ └── usr/
│ │ └── share/
│ │ └── mwan3_led_config.sh
│ ├── n2n/
│ │ └── Makefile
│ ├── nat64/
│ │ ├── Makefile
│ │ └── patches/
│ │ └── 01-fix-checksum-packet.patch
│ ├── natflow/
│ │ ├── Makefile
│ │ └── files/
│ │ └── natflow-boot.init
│ ├── ndpi-netfilter/
│ │ ├── LICENSE
│ │ ├── Makefile
│ │ ├── README.md
│ │ └── patches/
│ │ ├── 0001-outline-atomics-skbuff-check.patch
│ │ ├── 0002-fix-build-murmurhash.patch
│ │ └── 0003-fix-xchg.patch
│ ├── ookla-speedtest/
│ │ ├── Makefile
│ │ └── files/
│ │ ├── aarch64/
│ │ │ └── speedtest
│ │ ├── armhf/
│ │ │ └── speedtest
│ │ ├── i386/
│ │ │ └── speedtest
│ │ └── x86_64/
│ │ └── speedtest
│ ├── openvpn-dns-hotplug/
│ │ ├── Makefile
│ │ └── root/
│ │ └── etc/
│ │ └── hotplug.d/
│ │ └── openvpn/
│ │ └── 90-dns
│ ├── pingcontrol/
│ │ ├── Makefile
│ │ └── files/
│ │ ├── pingcontrol
│ │ ├── pingcontrol.config
│ │ └── pingcontrol.init
│ ├── rrm-nr-distributor/
│ │ ├── LICENSE
│ │ ├── Makefile
│ │ ├── README.md
│ │ ├── example_wireless_config
│ │ └── root/
│ │ ├── etc/
│ │ │ └── init.d/
│ │ │ └── rrm_nr
│ │ └── usr/
│ │ └── bin/
│ │ └── rrm_nr
│ ├── simpleproxy/
│ │ └── Makefile
│ ├── ssw/
│ │ ├── Makefile
│ │ └── root/
│ │ ├── etc/
│ │ │ ├── config/
│ │ │ │ └── ssw
│ │ │ └── init.d/
│ │ │ └── ssw
│ │ └── usr/
│ │ └── share/
│ │ └── ssw_track.sh
│ ├── telegrambot/
│ │ ├── Makefile
│ │ ├── README.md
│ │ └── root/
│ │ ├── etc/
│ │ │ ├── config/
│ │ │ │ └── telegrambot
│ │ │ └── init.d/
│ │ │ └── telegrambot
│ │ └── usr/
│ │ └── lib/
│ │ └── telegrambot/
│ │ ├── plugins/
│ │ │ ├── functions/
│ │ │ │ ├── get_mac.sh
│ │ │ │ └── ping.sh
│ │ │ ├── ifconfig.sh
│ │ │ ├── kernel.sh
│ │ │ ├── leases.sh
│ │ │ ├── memory.sh
│ │ │ ├── netstat.sh
│ │ │ ├── opkg.sh
│ │ │ ├── ping.sh
│ │ │ ├── plugins.sh
│ │ │ ├── swports_list.sh
│ │ │ ├── uci.sh
│ │ │ ├── uptime.sh
│ │ │ ├── wanip.sh
│ │ │ ├── wifi_list.sh
│ │ │ ├── wll_list.sh
│ │ │ └── wol.sh
│ │ └── telegrambot
│ ├── teleproxy/
│ │ ├── Makefile
│ │ ├── README.md
│ │ ├── files/
│ │ │ ├── teleproxy-config-refresh.sh
│ │ │ ├── teleproxy.config
│ │ │ ├── teleproxy.defaults
│ │ │ └── teleproxy.init
│ │ └── patches/
│ │ ├── 0001-makefile.patch
│ │ ├── 0002-fix-mips-variable.patch
│ │ ├── 0003-rtds-alternate.patch
│ │ ├── 0004-atomic-32bit-emu.patch
│ │ ├── 0005-makefile-atomic-emu.patch
│ │ └── 0006-fix-mips-musl-sigrtmax.patch
│ ├── torrserver/
│ │ ├── Makefile
│ │ └── files/
│ │ ├── torrserver.config
│ │ └── torrserver.init
│ ├── totd/
│ │ ├── Makefile
│ │ └── root/
│ │ └── etc/
│ │ ├── config/
│ │ │ └── totd
│ │ └── init.d/
│ │ └── totd
│ ├── tun2socks/
│ │ ├── Makefile
│ │ ├── README.md
│ │ └── root/
│ │ └── lib/
│ │ └── netifd/
│ │ └── proto/
│ │ └── t2s.sh
│ ├── xmm-modem/
│ │ ├── LICENSE
│ │ ├── Makefile
│ │ ├── README.md
│ │ └── root/
│ │ ├── etc/
│ │ │ ├── gcom/
│ │ │ │ ├── fm350-auth.gcom
│ │ │ │ ├── fm350-config.gcom
│ │ │ │ ├── fm350-connect.gcom
│ │ │ │ ├── probeport.gcom
│ │ │ │ ├── xmm-auth.gcom
│ │ │ │ ├── xmm-config.gcom
│ │ │ │ ├── xmm-connect.gcom
│ │ │ │ └── xmm-disconnect.gcom
│ │ │ └── hotplug.d/
│ │ │ └── usb/
│ │ │ └── 01_xmm.sh
│ │ └── lib/
│ │ └── netifd/
│ │ └── proto/
│ │ └── xmm.sh
│ ├── xt-tls/
│ │ └── Makefile
│ └── xtables-wgobfs/
│ └── Makefile
├── telephony/
│ ├── asterisk-chan-quectel/
│ │ ├── Makefile
│ │ └── patches/
│ │ └── 100-openwrtIconvMysql.patch
│ ├── atinout/
│ │ └── Makefile
│ ├── hl-atcmd/
│ │ └── Makefile
│ ├── imei_generator/
│ │ ├── Makefile
│ │ └── src/
│ │ └── imei_generator.c
│ ├── qtools/
│ │ ├── Makefile
│ │ ├── README.md
│ │ └── patches/
│ │ ├── 0001-makefile-install.patch
│ │ └── 0002-fix-qbadblock-int.patch
│ └── ttymux/
│ ├── Makefile
│ └── patches/
│ └── 0001-makefile.patch
└── utils/
├── flash-fox/
│ └── Makefile
├── qmbimat/
│ ├── Makefile
│ └── patches/
│ ├── 0001-cc.patch
│ └── 0002-qmbimat_more_fixes.patch
└── qminfo/
├── Makefile
└── src/
├── Makefile
└── qminfo.c
================================================
FILE CONTENTS
================================================
================================================
FILE: .gitmodules
================================================
[submodule "luci/applications/luci-app-gpoint"]
path = luci/applications/luci-app-gpoint
url = https://github.com/Kodo-kakaku/luci-app-gpoint.git
branch = main
[submodule "luci/applications/luci-app-cpu-perf"]
path = luci/applications/luci-app-cpu-perf
url = https://github.com/koshev-msk/luci-app-cpu-perf.git
branch = master
================================================
FILE: README.md
================================================
# modemfeed
Is a repository for OpenWrt firmware worked by with LTE cellular modems.
Included next packages:
|Package | Dependies | Description |
|:-------------|:----------------------|:-------------------------|
| luci-app-modeminfo|modeminfo|Dashboard for LTE modemds.|
|luci-app-smstools3|smstools3|web UI smstools3 package.|
|luci-app-mmconfig|modemmanager|band manipulation modem via mmcli utility.|
|luci-app-atinout|atinout|AT commands tool.|
|luci-app-cellled|cellled|LED cellular signal signal strength.|
|luci-app-ttl|luci-app-firewall|TTL modification utility with support for both iptables and nftables.|
|qminfo|libqmi|simple info from Qualcomm modem chipsets|
|qtools|libc|tools manipulation Qualcomm chipset cellualr modems.|
|asterisk-chan-quectel|asterisk|asterisk plugin for SimCom and Quectel modems.|
|xmm-modem|kmod-usb-net-ncm, kmod-usb-acm|Intel XMM modem connect scripts|
* and more packages not included in official OpenWrt Repo.
# How-to add repo and compile packages
Add next line to feeds.conf.default in OpenWrt SDK/Buildroot
```
src-git modemfeed https://github.com/koshev-msk/modemfeed.git
```
Update feeds and compile singe package
```
./scripts/feeds update -a; ./scripts/feeds install -a
make -j$((`nproc` + 1)) package/feeds/modemfeed/<package_name>/compile
```
or `make menuconfig` menu to include package(s) firmware in Buildroot
# Precompiled packages 21,23,24,25 branch
http://openwrt.132lan.ru/packages/
================================================
FILE: luci/applications/luci-app-3proxy/Makefile
================================================
include $(TOPDIR)/rules.mk
LUCI_TITLE:=3proxy simple webUI
LUCI_DEPENDS:=+3proxy
PKG_LICENSE:=GPLv3
PKG_VERSION:=0.1.1
PKG_RELEASE:=2
include $(TOPDIR)/feeds/luci/luci.mk
# call BuildPackage - OpenWrt buildroot signature
================================================
FILE: luci/applications/luci-app-3proxy/README.md
================================================
# luci-app-3proxy
Simple webUI OpenWrt Luci for 3proxy
================================================
FILE: luci/applications/luci-app-3proxy/htdocs/luci-static/resources/view/proxy/3proxy.js
================================================
'use strict';
'require fs';
'require view';
'require ui';
'require uci';
return view.extend({
load: function() {
return uci.load('3proxy');
},
render: function() {
var configPath = '/etc/3proxy.cfg';
uci.sections('3proxy', '3proxy').forEach(function(s) {
if (s['.type'] === '3proxy' && s.config) {
configPath = s.config;
}
});
this.configPath = configPath;
var container = E('div', { 'class': 'cbi-map' }, [
E('h2', {}, _('3proxy Configuration')),
E('div', { 'class': 'cbi-section' }, [
E('div', { 'class': 'cbi-section-descr' }, [
_('Edit 3proxy configuration file.'),
E('br'),
_('Config file: '),
E('code', {}, configPath)
]),
E('div', { 'class': 'cbi-value' }, [
E('label', {
'class': 'cbi-value-title',
'style': 'display: block; font-weight: bold;'
}, _('Configuration')),
E('br'), E('br'),
E('textarea', {
'class': 'cbi-input-textarea',
'rows': 20,
'style': 'width: 100%; box-sizing: border-box;',
'name': 'config',
'id': 'config-textarea'
}, '')
]),
E('div', {
'class': 'cbi-value',
'style': 'display: flex; justify-content: flex-end; margin-top: 20px; gap: 10px;'
}, [
E('div', { 'class': 'cbi-value-field right' }, [
E('button', {
'class': 'cbi-button cbi-button-save',
'click': ui.createHandlerFn(this, 'saveConfig')
}, _('Save')),
' ',
E('button', {
'class': 'cbi-button cbi-button-apply',
'click': ui.createHandlerFn(this, 'restartService')
}, _('Restart 3proxy'))
])
])
])
]);
var self = this;
fs.read(configPath).catch(function(err) {
return '';
}).then(function(content) {
var textarea = document.getElementById('config-textarea');
if (textarea) {
textarea.value = content || '';
}
});
return container;
},
saveConfig: function() {
var textarea = document.querySelector('textarea[name="config"]');
if (!textarea) {
textarea = document.getElementById('config-textarea');
}
var config = textarea.value.trim().replace(/\r\n/g, '\n') + '\n';
var configPath = this.configPath || '/etc/3proxy.cfg';
return fs.write(configPath, config).then(function() {
ui.addNotification(null, E('p', _('Configuration saved successfully')), 'info');
}).catch(function(err) {
ui.addNotification(null, E('p', _('Error saving configuration: ') + err.message), 'error');
});
},
restartService: function() {
return fs.exec('/etc/init.d/3proxy', ['restart']).then(function(res) {
if (res.code === 0) {
ui.addNotification(null, E('p', _('3proxy restarted successfully')), 'info');
} else {
ui.addNotification(null, E('p', _('Error restarting 3proxy: ') + res.stderr), 'error');
}
}).catch(function(err) {
ui.addNotification(null, E('p', _('Error restarting 3proxy: ') + err.message), 'error');
});
},
handleSaveApply: null,
handleSave: null,
handleReset: null
});
================================================
FILE: luci/applications/luci-app-3proxy/po/ru/3proxy.po
================================================
"Language: ru\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Last-Translator: Konstantine Shevlakov <shevlakov@132lan.ru>\n"
msgid "Configuration"
msgstr "Настройки"
msgid "3proxy Configuration"
msgstr "Файл настройки 3proxy."
msgid "Config file: "
msgstr "Файл настройки: "
msgid "Edit 3proxy configuration file."
msgstr "Редактируйте файл настройки."
msgid "Save"
msgstr "Сохранить"
msgid "Restart 3proxy"
msgstr "Перезапустить 3proxy"
msgid "Configuration saved successfully"
msgstr "Конфигурация сохранена"
msgid "Error saving configuration: "
msgstr "Ошибка сохранения: "
msgid "3proxy restarted successfully"
msgstr "3proxy успешно перезапущен"
msgid "Error restarting 3proxy: "
msgstr "Ошибка запуска 3proxy: "
================================================
FILE: luci/applications/luci-app-3proxy/root/usr/share/luci/menu.d/luci-app-3proxy.json
================================================
{
"admin/services/3proxy": {
"title": "3proxy",
"action": {
"type": "alias",
"path": "admin/services/3proxy/config"
},
"depends": {
"acl": [ "luci-app-3proxy" ],
"uci": { "3proxy": true }
}
},
"admin/services/3proxy/config": {
"title": "Config",
"order": 41,
"action": {
"type": "view",
"path": "proxy/3proxy"
}
}
}
================================================
FILE: luci/applications/luci-app-3proxy/root/usr/share/rpcd/acl.d/luci-app-3proxy.json
================================================
{
"luci-app-3proxy": {
"description": "Grant UCI access for luci-app-3proxy",
"read": {
"file": {
"/etc/3proxy.cfg": [ "read" ],
"/etc/init.d/3proxy": [ "exec" ]
},
"uci": [ "3proxy" ]
},
"write": {
"file": {
"/etc/3proxy.cfg": [ "write" ]
},
"uci": [ "3proxy" ]
}
}
}
================================================
FILE: luci/applications/luci-app-atinout/LICENSE
================================================
GNU GENERAL PUBLIC LICENSE
Version 3, 29 June 2007
Copyright (C) 2007 Free Software Foundation, Inc. <https://fsf.org/>
Everyone is permitted to copy and distribute verbatim copies
of this license document, but changing it is not allowed.
Preamble
The GNU General Public License is a free, copyleft license for
software and other kinds of works.
The licenses for most software and other practical works are designed
to take away your freedom to share and change the works. By contrast,
the GNU General Public License is intended to guarantee your freedom to
share and change all versions of a program--to make sure it remains free
software for all its users. We, the Free Software Foundation, use the
GNU General Public License for most of our software; it applies also to
any other work released this way by its authors. You can apply it to
your programs, too.
When we speak of free software, we are referring to freedom, not
price. Our General Public Licenses are designed to make sure that you
have the freedom to distribute copies of free software (and charge for
them if you wish), that you receive source code or can get it if you
want it, that you can change the software or use pieces of it in new
free programs, and that you know you can do these things.
To protect your rights, we need to prevent others from denying you
these rights or asking you to surrender the rights. Therefore, you have
certain responsibilities if you distribute copies of the software, or if
you modify it: responsibilities to respect the freedom of others.
For example, if you distribute copies of such a program, whether
gratis or for a fee, you must pass on to the recipients the same
freedoms that you received. You must make sure that they, too, receive
or can get the source code. And you must show them these terms so they
know their rights.
Developers that use the GNU GPL protect your rights with two steps:
(1) assert copyright on the software, and (2) offer you this License
giving you legal permission to copy, distribute and/or modify it.
For the developers' and authors' protection, the GPL clearly explains
that there is no warranty for this free software. For both users' and
authors' sake, the GPL requires that modified versions be marked as
changed, so that their problems will not be attributed erroneously to
authors of previous versions.
Some devices are designed to deny users access to install or run
modified versions of the software inside them, although the manufacturer
can do so. This is fundamentally incompatible with the aim of
protecting users' freedom to change the software. The systematic
pattern of such abuse occurs in the area of products for individuals to
use, which is precisely where it is most unacceptable. Therefore, we
have designed this version of the GPL to prohibit the practice for those
products. If such problems arise substantially in other domains, we
stand ready to extend this provision to those domains in future versions
of the GPL, as needed to protect the freedom of users.
Finally, every program is threatened constantly by software patents.
States should not allow patents to restrict development and use of
software on general-purpose computers, but in those that do, we wish to
avoid the special danger that patents applied to a free program could
make it effectively proprietary. To prevent this, the GPL assures that
patents cannot be used to render the program non-free.
The precise terms and conditions for copying, distribution and
modification follow.
TERMS AND CONDITIONS
0. Definitions.
"This License" refers to version 3 of the GNU General Public License.
"Copyright" also means copyright-like laws that apply to other kinds of
works, such as semiconductor masks.
"The Program" refers to any copyrightable work licensed under this
License. Each licensee is addressed as "you". "Licensees" and
"recipients" may be individuals or organizations.
To "modify" a work means to copy from or adapt all or part of the work
in a fashion requiring copyright permission, other than the making of an
exact copy. The resulting work is called a "modified version" of the
earlier work or a work "based on" the earlier work.
A "covered work" means either the unmodified Program or a work based
on the Program.
To "propagate" a work means to do anything with it that, without
permission, would make you directly or secondarily liable for
infringement under applicable copyright law, except executing it on a
computer or modifying a private copy. Propagation includes copying,
distribution (with or without modification), making available to the
public, and in some countries other activities as well.
To "convey" a work means any kind of propagation that enables other
parties to make or receive copies. Mere interaction with a user through
a computer network, with no transfer of a copy, is not conveying.
An interactive user interface displays "Appropriate Legal Notices"
to the extent that it includes a convenient and prominently visible
feature that (1) displays an appropriate copyright notice, and (2)
tells the user that there is no warranty for the work (except to the
extent that warranties are provided), that licensees may convey the
work under this License, and how to view a copy of this License. If
the interface presents a list of user commands or options, such as a
menu, a prominent item in the list meets this criterion.
1. Source Code.
The "source code" for a work means the preferred form of the work
for making modifications to it. "Object code" means any non-source
form of a work.
A "Standard Interface" means an interface that either is an official
standard defined by a recognized standards body, or, in the case of
interfaces specified for a particular programming language, one that
is widely used among developers working in that language.
The "System Libraries" of an executable work include anything, other
than the work as a whole, that (a) is included in the normal form of
packaging a Major Component, but which is not part of that Major
Component, and (b) serves only to enable use of the work with that
Major Component, or to implement a Standard Interface for which an
implementation is available to the public in source code form. A
"Major Component", in this context, means a major essential component
(kernel, window system, and so on) of the specific operating system
(if any) on which the executable work runs, or a compiler used to
produce the work, or an object code interpreter used to run it.
The "Corresponding Source" for a work in object code form means all
the source code needed to generate, install, and (for an executable
work) run the object code and to modify the work, including scripts to
control those activities. However, it does not include the work's
System Libraries, or general-purpose tools or generally available free
programs which are used unmodified in performing those activities but
which are not part of the work. For example, Corresponding Source
includes interface definition files associated with source files for
the work, and the source code for shared libraries and dynamically
linked subprograms that the work is specifically designed to require,
such as by intimate data communication or control flow between those
subprograms and other parts of the work.
The Corresponding Source need not include anything that users
can regenerate automatically from other parts of the Corresponding
Source.
The Corresponding Source for a work in source code form is that
same work.
2. Basic Permissions.
All rights granted under this License are granted for the term of
copyright on the Program, and are irrevocable provided the stated
conditions are met. This License explicitly affirms your unlimited
permission to run the unmodified Program. The output from running a
covered work is covered by this License only if the output, given its
content, constitutes a covered work. This License acknowledges your
rights of fair use or other equivalent, as provided by copyright law.
You may make, run and propagate covered works that you do not
convey, without conditions so long as your license otherwise remains
in force. You may convey covered works to others for the sole purpose
of having them make modifications exclusively for you, or provide you
with facilities for running those works, provided that you comply with
the terms of this License in conveying all material for which you do
not control copyright. Those thus making or running the covered works
for you must do so exclusively on your behalf, under your direction
and control, on terms that prohibit them from making any copies of
your copyrighted material outside their relationship with you.
Conveying under any other circumstances is permitted solely under
the conditions stated below. Sublicensing is not allowed; section 10
makes it unnecessary.
3. Protecting Users' Legal Rights From Anti-Circumvention Law.
No covered work shall be deemed part of an effective technological
measure under any applicable law fulfilling obligations under article
11 of the WIPO copyright treaty adopted on 20 December 1996, or
similar laws prohibiting or restricting circumvention of such
measures.
When you convey a covered work, you waive any legal power to forbid
circumvention of technological measures to the extent such circumvention
is effected by exercising rights under this License with respect to
the covered work, and you disclaim any intention to limit operation or
modification of the work as a means of enforcing, against the work's
users, your or third parties' legal rights to forbid circumvention of
technological measures.
4. Conveying Verbatim Copies.
You may convey verbatim copies of the Program's source code as you
receive it, in any medium, provided that you conspicuously and
appropriately publish on each copy an appropriate copyright notice;
keep intact all notices stating that this License and any
non-permissive terms added in accord with section 7 apply to the code;
keep intact all notices of the absence of any warranty; and give all
recipients a copy of this License along with the Program.
You may charge any price or no price for each copy that you convey,
and you may offer support or warranty protection for a fee.
5. Conveying Modified Source Versions.
You may convey a work based on the Program, or the modifications to
produce it from the Program, in the form of source code under the
terms of section 4, provided that you also meet all of these conditions:
a) The work must carry prominent notices stating that you modified
it, and giving a relevant date.
b) The work must carry prominent notices stating that it is
released under this License and any conditions added under section
7. This requirement modifies the requirement in section 4 to
"keep intact all notices".
c) You must license the entire work, as a whole, under this
License to anyone who comes into possession of a copy. This
License will therefore apply, along with any applicable section 7
additional terms, to the whole of the work, and all its parts,
regardless of how they are packaged. This License gives no
permission to license the work in any other way, but it does not
invalidate such permission if you have separately received it.
d) If the work has interactive user interfaces, each must display
Appropriate Legal Notices; however, if the Program has interactive
interfaces that do not display Appropriate Legal Notices, your
work need not make them do so.
A compilation of a covered work with other separate and independent
works, which are not by their nature extensions of the covered work,
and which are not combined with it such as to form a larger program,
in or on a volume of a storage or distribution medium, is called an
"aggregate" if the compilation and its resulting copyright are not
used to limit the access or legal rights of the compilation's users
beyond what the individual works permit. Inclusion of a covered work
in an aggregate does not cause this License to apply to the other
parts of the aggregate.
6. Conveying Non-Source Forms.
You may convey a covered work in object code form under the terms
of sections 4 and 5, provided that you also convey the
machine-readable Corresponding Source under the terms of this License,
in one of these ways:
a) Convey the object code in, or embodied in, a physical product
(including a physical distribution medium), accompanied by the
Corresponding Source fixed on a durable physical medium
customarily used for software interchange.
b) Convey the object code in, or embodied in, a physical product
(including a physical distribution medium), accompanied by a
written offer, valid for at least three years and valid for as
long as you offer spare parts or customer support for that product
model, to give anyone who possesses the object code either (1) a
copy of the Corresponding Source for all the software in the
product that is covered by this License, on a durable physical
medium customarily used for software interchange, for a price no
more than your reasonable cost of physically performing this
conveying of source, or (2) access to copy the
Corresponding Source from a network server at no charge.
c) Convey individual copies of the object code with a copy of the
written offer to provide the Corresponding Source. This
alternative is allowed only occasionally and noncommercially, and
only if you received the object code with such an offer, in accord
with subsection 6b.
d) Convey the object code by offering access from a designated
place (gratis or for a charge), and offer equivalent access to the
Corresponding Source in the same way through the same place at no
further charge. You need not require recipients to copy the
Corresponding Source along with the object code. If the place to
copy the object code is a network server, the Corresponding Source
may be on a different server (operated by you or a third party)
that supports equivalent copying facilities, provided you maintain
clear directions next to the object code saying where to find the
Corresponding Source. Regardless of what server hosts the
Corresponding Source, you remain obligated to ensure that it is
available for as long as needed to satisfy these requirements.
e) Convey the object code using peer-to-peer transmission, provided
you inform other peers where the object code and Corresponding
Source of the work are being offered to the general public at no
charge under subsection 6d.
A separable portion of the object code, whose source code is excluded
from the Corresponding Source as a System Library, need not be
included in conveying the object code work.
A "User Product" is either (1) a "consumer product", which means any
tangible personal property which is normally used for personal, family,
or household purposes, or (2) anything designed or sold for incorporation
into a dwelling. In determining whether a product is a consumer product,
doubtful cases shall be resolved in favor of coverage. For a particular
product received by a particular user, "normally used" refers to a
typical or common use of that class of product, regardless of the status
of the particular user or of the way in which the particular user
actually uses, or expects or is expected to use, the product. A product
is a consumer product regardless of whether the product has substantial
commercial, industrial or non-consumer uses, unless such uses represent
the only significant mode of use of the product.
"Installation Information" for a User Product means any methods,
procedures, authorization keys, or other information required to install
and execute modified versions of a covered work in that User Product from
a modified version of its Corresponding Source. The information must
suffice to ensure that the continued functioning of the modified object
code is in no case prevented or interfered with solely because
modification has been made.
If you convey an object code work under this section in, or with, or
specifically for use in, a User Product, and the conveying occurs as
part of a transaction in which the right of possession and use of the
User Product is transferred to the recipient in perpetuity or for a
fixed term (regardless of how the transaction is characterized), the
Corresponding Source conveyed under this section must be accompanied
by the Installation Information. But this requirement does not apply
if neither you nor any third party retains the ability to install
modified object code on the User Product (for example, the work has
been installed in ROM).
The requirement to provide Installation Information does not include a
requirement to continue to provide support service, warranty, or updates
for a work that has been modified or installed by the recipient, or for
the User Product in which it has been modified or installed. Access to a
network may be denied when the modification itself materially and
adversely affects the operation of the network or violates the rules and
protocols for communication across the network.
Corresponding Source conveyed, and Installation Information provided,
in accord with this section must be in a format that is publicly
documented (and with an implementation available to the public in
source code form), and must require no special password or key for
unpacking, reading or copying.
7. Additional Terms.
"Additional permissions" are terms that supplement the terms of this
License by making exceptions from one or more of its conditions.
Additional permissions that are applicable to the entire Program shall
be treated as though they were included in this License, to the extent
that they are valid under applicable law. If additional permissions
apply only to part of the Program, that part may be used separately
under those permissions, but the entire Program remains governed by
this License without regard to the additional permissions.
When you convey a copy of a covered work, you may at your option
remove any additional permissions from that copy, or from any part of
it. (Additional permissions may be written to require their own
removal in certain cases when you modify the work.) You may place
additional permissions on material, added by you to a covered work,
for which you have or can give appropriate copyright permission.
Notwithstanding any other provision of this License, for material you
add to a covered work, you may (if authorized by the copyright holders of
that material) supplement the terms of this License with terms:
a) Disclaiming warranty or limiting liability differently from the
terms of sections 15 and 16 of this License; or
b) Requiring preservation of specified reasonable legal notices or
author attributions in that material or in the Appropriate Legal
Notices displayed by works containing it; or
c) Prohibiting misrepresentation of the origin of that material, or
requiring that modified versions of such material be marked in
reasonable ways as different from the original version; or
d) Limiting the use for publicity purposes of names of licensors or
authors of the material; or
e) Declining to grant rights under trademark law for use of some
trade names, trademarks, or service marks; or
f) Requiring indemnification of licensors and authors of that
material by anyone who conveys the material (or modified versions of
it) with contractual assumptions of liability to the recipient, for
any liability that these contractual assumptions directly impose on
those licensors and authors.
All other non-permissive additional terms are considered "further
restrictions" within the meaning of section 10. If the Program as you
received it, or any part of it, contains a notice stating that it is
governed by this License along with a term that is a further
restriction, you may remove that term. If a license document contains
a further restriction but permits relicensing or conveying under this
License, you may add to a covered work material governed by the terms
of that license document, provided that the further restriction does
not survive such relicensing or conveying.
If you add terms to a covered work in accord with this section, you
must place, in the relevant source files, a statement of the
additional terms that apply to those files, or a notice indicating
where to find the applicable terms.
Additional terms, permissive or non-permissive, may be stated in the
form of a separately written license, or stated as exceptions;
the above requirements apply either way.
8. Termination.
You may not propagate or modify a covered work except as expressly
provided under this License. Any attempt otherwise to propagate or
modify it is void, and will automatically terminate your rights under
this License (including any patent licenses granted under the third
paragraph of section 11).
However, if you cease all violation of this License, then your
license from a particular copyright holder is reinstated (a)
provisionally, unless and until the copyright holder explicitly and
finally terminates your license, and (b) permanently, if the copyright
holder fails to notify you of the violation by some reasonable means
prior to 60 days after the cessation.
Moreover, your license from a particular copyright holder is
reinstated permanently if the copyright holder notifies you of the
violation by some reasonable means, this is the first time you have
received notice of violation of this License (for any work) from that
copyright holder, and you cure the violation prior to 30 days after
your receipt of the notice.
Termination of your rights under this section does not terminate the
licenses of parties who have received copies or rights from you under
this License. If your rights have been terminated and not permanently
reinstated, you do not qualify to receive new licenses for the same
material under section 10.
9. Acceptance Not Required for Having Copies.
You are not required to accept this License in order to receive or
run a copy of the Program. Ancillary propagation of a covered work
occurring solely as a consequence of using peer-to-peer transmission
to receive a copy likewise does not require acceptance. However,
nothing other than this License grants you permission to propagate or
modify any covered work. These actions infringe copyright if you do
not accept this License. Therefore, by modifying or propagating a
covered work, you indicate your acceptance of this License to do so.
10. Automatic Licensing of Downstream Recipients.
Each time you convey a covered work, the recipient automatically
receives a license from the original licensors, to run, modify and
propagate that work, subject to this License. You are not responsible
for enforcing compliance by third parties with this License.
An "entity transaction" is a transaction transferring control of an
organization, or substantially all assets of one, or subdividing an
organization, or merging organizations. If propagation of a covered
work results from an entity transaction, each party to that
transaction who receives a copy of the work also receives whatever
licenses to the work the party's predecessor in interest had or could
give under the previous paragraph, plus a right to possession of the
Corresponding Source of the work from the predecessor in interest, if
the predecessor has it or can get it with reasonable efforts.
You may not impose any further restrictions on the exercise of the
rights granted or affirmed under this License. For example, you may
not impose a license fee, royalty, or other charge for exercise of
rights granted under this License, and you may not initiate litigation
(including a cross-claim or counterclaim in a lawsuit) alleging that
any patent claim is infringed by making, using, selling, offering for
sale, or importing the Program or any portion of it.
11. Patents.
A "contributor" is a copyright holder who authorizes use under this
License of the Program or a work on which the Program is based. The
work thus licensed is called the contributor's "contributor version".
A contributor's "essential patent claims" are all patent claims
owned or controlled by the contributor, whether already acquired or
hereafter acquired, that would be infringed by some manner, permitted
by this License, of making, using, or selling its contributor version,
but do not include claims that would be infringed only as a
consequence of further modification of the contributor version. For
purposes of this definition, "control" includes the right to grant
patent sublicenses in a manner consistent with the requirements of
this License.
Each contributor grants you a non-exclusive, worldwide, royalty-free
patent license under the contributor's essential patent claims, to
make, use, sell, offer for sale, import and otherwise run, modify and
propagate the contents of its contributor version.
In the following three paragraphs, a "patent license" is any express
agreement or commitment, however denominated, not to enforce a patent
(such as an express permission to practice a patent or covenant not to
sue for patent infringement). To "grant" such a patent license to a
party means to make such an agreement or commitment not to enforce a
patent against the party.
If you convey a covered work, knowingly relying on a patent license,
and the Corresponding Source of the work is not available for anyone
to copy, free of charge and under the terms of this License, through a
publicly available network server or other readily accessible means,
then you must either (1) cause the Corresponding Source to be so
available, or (2) arrange to deprive yourself of the benefit of the
patent license for this particular work, or (3) arrange, in a manner
consistent with the requirements of this License, to extend the patent
license to downstream recipients. "Knowingly relying" means you have
actual knowledge that, but for the patent license, your conveying the
covered work in a country, or your recipient's use of the covered work
in a country, would infringe one or more identifiable patents in that
country that you have reason to believe are valid.
If, pursuant to or in connection with a single transaction or
arrangement, you convey, or propagate by procuring conveyance of, a
covered work, and grant a patent license to some of the parties
receiving the covered work authorizing them to use, propagate, modify
or convey a specific copy of the covered work, then the patent license
you grant is automatically extended to all recipients of the covered
work and works based on it.
A patent license is "discriminatory" if it does not include within
the scope of its coverage, prohibits the exercise of, or is
conditioned on the non-exercise of one or more of the rights that are
specifically granted under this License. You may not convey a covered
work if you are a party to an arrangement with a third party that is
in the business of distributing software, under which you make payment
to the third party based on the extent of your activity of conveying
the work, and under which the third party grants, to any of the
parties who would receive the covered work from you, a discriminatory
patent license (a) in connection with copies of the covered work
conveyed by you (or copies made from those copies), or (b) primarily
for and in connection with specific products or compilations that
contain the covered work, unless you entered into that arrangement,
or that patent license was granted, prior to 28 March 2007.
Nothing in this License shall be construed as excluding or limiting
any implied license or other defenses to infringement that may
otherwise be available to you under applicable patent law.
12. No Surrender of Others' Freedom.
If conditions are imposed on you (whether by court order, agreement or
otherwise) that contradict the conditions of this License, they do not
excuse you from the conditions of this License. If you cannot convey a
covered work so as to satisfy simultaneously your obligations under this
License and any other pertinent obligations, then as a consequence you may
not convey it at all. For example, if you agree to terms that obligate you
to collect a royalty for further conveying from those to whom you convey
the Program, the only way you could satisfy both those terms and this
License would be to refrain entirely from conveying the Program.
13. Use with the GNU Affero General Public License.
Notwithstanding any other provision of this License, you have
permission to link or combine any covered work with a work licensed
under version 3 of the GNU Affero General Public License into a single
combined work, and to convey the resulting work. The terms of this
License will continue to apply to the part which is the covered work,
but the special requirements of the GNU Affero General Public License,
section 13, concerning interaction through a network will apply to the
combination as such.
14. Revised Versions of this License.
The Free Software Foundation may publish revised and/or new versions of
the GNU General Public License from time to time. Such new versions will
be similar in spirit to the present version, but may differ in detail to
address new problems or concerns.
Each version is given a distinguishing version number. If the
Program specifies that a certain numbered version of the GNU General
Public License "or any later version" applies to it, you have the
option of following the terms and conditions either of that numbered
version or of any later version published by the Free Software
Foundation. If the Program does not specify a version number of the
GNU General Public License, you may choose any version ever published
by the Free Software Foundation.
If the Program specifies that a proxy can decide which future
versions of the GNU General Public License can be used, that proxy's
public statement of acceptance of a version permanently authorizes you
to choose that version for the Program.
Later license versions may give you additional or different
permissions. However, no additional obligations are imposed on any
author or copyright holder as a result of your choosing to follow a
later version.
15. Disclaimer of Warranty.
THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
16. Limitation of Liability.
IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
SUCH DAMAGES.
17. Interpretation of Sections 15 and 16.
If the disclaimer of warranty and limitation of liability provided
above cannot be given local legal effect according to their terms,
reviewing courts shall apply local law that most closely approximates
an absolute waiver of all civil liability in connection with the
Program, unless a warranty or assumption of liability accompanies a
copy of the Program in return for a fee.
END OF TERMS AND CONDITIONS
How to Apply These Terms to Your New Programs
If you develop a new program, and you want it to be of the greatest
possible use to the public, the best way to achieve this is to make it
free software which everyone can redistribute and change under these terms.
To do so, attach the following notices to the program. It is safest
to attach them to the start of each source file to most effectively
state the exclusion of warranty; and each file should have at least
the "copyright" line and a pointer to where the full notice is found.
<one line to give the program's name and a brief idea of what it does.>
Copyright (C) <year> <name of author>
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>.
Also add information on how to contact you by electronic and paper mail.
If the program does terminal interaction, make it output a short
notice like this when it starts in an interactive mode:
<program> Copyright (C) <year> <name of author>
This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
This is free software, and you are welcome to redistribute it
under certain conditions; type `show c' for details.
The hypothetical commands `show w' and `show c' should show the appropriate
parts of the General Public License. Of course, your program's commands
might be different; for a GUI interface, you would use an "about box".
You should also get your employer (if you work as a programmer) or school,
if any, to sign a "copyright disclaimer" for the program, if necessary.
For more information on this, and how to apply and follow the GNU GPL, see
<https://www.gnu.org/licenses/>.
The GNU General Public License does not permit incorporating your program
into proprietary programs. If your program is a subroutine library, you
may consider it more useful to permit linking proprietary applications with
the library. If this is what you want to do, use the GNU Lesser General
Public License instead of this License. But first, please read
<https://www.gnu.org/licenses/why-not-lgpl.html>.
================================================
FILE: luci/applications/luci-app-atinout/Makefile
================================================
#
# Copyright 2022-2023 Rafał Wabik - IceG - From eko.one.pl forum
#
# Licensed to the GNU General Public License v3.0.
#
include $(TOPDIR)/rules.mk
PKG_NAME:=luci-app-atinout
LUCI_TITLE:=LuCI JS Support for AT commands
MAINTAINER:=Rafał Wabik <4Rafal@gmail.com>
LUCI_DESCRIPTION:=LuCI JS interface for the atinout.
LUCI_DEPENDS:=+atinout
LUCI_PKGARCH:=all
PKG_VERSION:=0.1.1
PKG_RELEASE:=5
define Package/$(PKG_NAME)/conffiles
/etc/atcommands.user
endef
include $(TOPDIR)/feeds/luci/luci.mk
# call BuildPackage - OpenWrt buildroot signature
================================================
FILE: luci/applications/luci-app-atinout/README.md
================================================
# luci-app-atinout
Web UI AT-commands using atinout for OpenWrt.

================================================
FILE: luci/applications/luci-app-atinout/htdocs/luci-static/resources/view/modem/atcommands.js
================================================
'use strict';
'require dom';
'require form';
'require fs';
'require ui';
'require view';
/*
Copyright 2022-2023 Rafał Wabik - IceG - From eko.one.pl forum
Modified for atinout by Konstantine Shevlakov <shevlakov@132lan.ru> 2025
Licensed to the GNU General Public License v3.0.
*/
return view.extend({
handleCommand: function(exec, args) {
var buttons = document.querySelectorAll('.cbi-button');
for (var i = 0; i < buttons.length; i++)
buttons[i].setAttribute('disabled', 'true');
return fs.exec(exec, args).then(function(res) {
var out = document.querySelector('.atcommand-output');
out.style.display = '';
res.stdout = res.stdout?.trim().replace(/\n\s*\n\s*\n+/g, '\n\n') || '';
res.stderr = res.stderr?.trim().replace(/\n\s*\n\s*\n+/g, '\n\n') || '';
dom.content(out, [ res.stdout || '', res.stderr || '' ]);
}).catch(function(err) {
ui.addNotification(null, E('p', [ err ]))
}).finally(function() {
for (var i = 0; i < buttons.length; i++)
buttons[i].removeAttribute('disabled');
});
},
handleGo: function(ev) {
var atcmd = document.getElementById('cmdvalue').value;
var portSelect = document.getElementById('portselect');
var port = portSelect ? portSelect.value : '';
if (atcmd.length < 2) {
ui.addNotification(null, E('p', _('Please specify the AT command to send')), 'info');
return false;
}
if (!port) {
ui.addNotification(null, E('p', _('Please select a port for communication with the modem')), 'info');
return false;
}
return this.handleCommand('luci-app-atinout', [atcmd, port]);
},
handleClear: function(ev) {
var out = document.querySelector('.atcommand-output');
out.style.display = 'none';
var ov = document.getElementById('cmdvalue');
ov.value = '';
document.getElementById('cmdvalue').focus();
},
handleCopy: function(ev) {
var ov = document.getElementById('cmdvalue');
ov.value = '';
var x = document.getElementById('tk').value;
ov.value = x;
},
// search port in /dev/ dir
scanPorts: function() {
return fs.list('/dev').then(function(devices) {
var ports = [];
if (devices) {
devices.forEach(function(device) {
var name = device.name;
if (name) {
if (name.startsWith('ttyUSB') ||
name.startsWith('ttyACM') ||
/^wwan\d+at\d+/.test(name)) {
ports.push('/dev/' + name);
}
}
});
}
ports.sort();
return ports;
}).catch(function(err) {
console.error('Error scanning ports:', err);
return [];
});
},
updatePortList: function() {
var self = this;
var portSelect = document.getElementById('portselect');
if (!portSelect) return;
portSelect.disabled = true;
var currentValue = portSelect.value;
this.scanPorts().then(function(ports) {
var currentPort = currentValue;
while (portSelect.firstChild) {
portSelect.removeChild(portSelect.firstChild);
}
var emptyOption = E('option', { value: '' }, _('-- Select port --'));
portSelect.appendChild(emptyOption);
ports.forEach(function(port) {
var option = E('option', { value: port }, port);
if (port === currentPort) {
option.setAttribute('selected', 'selected');
}
portSelect.appendChild(option);
});
portSelect.disabled = false;
// if ports not found
if (ports.length === 0) {
ui.addNotification(null, E('p', _('No ttyUSB or ttyACM ports found')), 'info');
}
});
},
load: function() {
return Promise.all([
L.resolveDefault(fs.read_direct('/etc/atcommands.user'), null)
]);
},
render: function (loadResults) {
var info = _('User interface for handling AT commands using atinout utility.');
var self = this;
var container = E('div', { 'class': 'cbi-map', 'id': 'map' }, [
E('h2', {}, [ _('AT Commands') ]),
E('div', { 'class': 'cbi-map-descr'}, info),
E('hr'),
E('div', { 'class': 'cbi-section' }, [
E('div', { 'class': 'cbi-section-node' }, [
E('div', { 'class': 'cbi-value' }, [
E('label', { 'class': 'cbi-value-title' }, [ _('User AT commands') ]),
E('div', { 'class': 'cbi-value-field' }, [
E('select', {
'class': 'cbi-input-select',
'id': 'tk',
'style': 'margin:5px 0; width:100%;',
'change': ui.createHandlerFn(this, 'handleCopy')
},
(loadResults[0] || "").trim().split("\n").map(function(cmd) {
var fields = cmd.split(/;/);
var name = fields[0];
var code = fields[1];
return E('option', { 'value': code }, name );
})
)
])
]),
E('div', { 'class': 'cbi-value' }, [
E('label', { 'class': 'cbi-value-title' }, [ _('Modem Port') ]),
E('div', { 'class': 'cbi-value-field' }, [
E('div', { 'style': 'display: flex; align-items: center; gap: 10px;' }, [
E('select', {
'class': 'cbi-input-select',
'id': 'portselect',
'style': 'margin:5px 0; width: 100%;',
'name': 'port'
}, [
E('option', { value: '' }, _('-- Scanning ports --'))
]),
E('button', {
'class': 'cbi-button cbi-button-action',
'style': 'white-space: nowrap;',
'click': ui.createHandlerFn(this, function() {
this.updatePortList();
})
}, [ _('Refresh') ])
])
])
]),
E('div', { 'class': 'cbi-value' }, [
E('label', { 'class': 'cbi-value-title' }, [ _('Command to send') ]),
E('div', { 'class': 'cbi-value-field' }, [
E('input', {
'style': 'margin:5px 0; width:100%;',
'type': 'text',
'id': 'cmdvalue',
'data-tooltip': _('Press [Enter] to send the command, press [Delete] to delete the command'),
'keydown': function(ev) {
if (ev.keyCode === 13) {
var execBtn = document.getElementById('execute');
if (execBtn)
execBtn.click();
}
if (ev.keyCode === 46) {
var del = document.getElementById('cmdvalue');
if (del) {
var ov = document.getElementById('cmdvalue');
ov.value = '';
document.getElementById('cmdvalue').focus();
}
}
}
}),
])
]),
])
]),
E('hr'),
E('div', { 'class': 'right' }, [
E('button', {
'class': 'cbi-button cbi-button-remove',
'id': 'clr',
'click': ui.createHandlerFn(this, 'handleClear')
}, [ _('Clear form') ]),
'\xa0\xa0\xa0',
E('button', {
'class': 'cbi-button cbi-button-action important',
'id': 'execute',
'click': ui.createHandlerFn(this, 'handleGo')
}, [ _('Send command') ]),
]),
E('p', _('Reply')),
E('pre', {
'class': 'atcommand-output',
'id': 'preout',
'style': 'display:none; border: 1px solid var(--border-color-medium); border-radius: 5px; font-family: monospace'
}),
]);
setTimeout(function() {
self.updatePortList();
}, 100);
return container;
},
handleSaveApply: null,
handleSave: null,
handleReset: null
});
================================================
FILE: luci/applications/luci-app-atinout/htdocs/luci-static/resources/view/modem/atconfig.js
================================================
'use strict';
'require fs';
'require view';
'require ui';
'require rpc';
/*
Copyright 2022-2023 Rafał Wabik - IceG - From eko.one.pl forum
Modified for atinout by Konstantine Shevlakov <shevlakov@132lan.ru> 2023
Licensed to the GNU General Public License v3.0.
*/
var cmddesc = _("Each line must have the following format: <code>AT command description;AT+COMMAND</code>.<br />For user convenience, the file is saved to the location <code>/etc/atcommands.user</code>.");
return view.extend({
load: function() {
return fs.read('/etc/atcommands.user').catch(function(err) {
return '';
});
},
render: function(content) {
var content = content || '';
return E('div', { 'class': 'cbi-map' }, [
E('div', { 'class': 'cbi-map-descr' }, _('AT Commands Configuration')),
E('div', { 'class': 'cbi-section' }, [
E('div', { 'class': 'cbi-section-descr' }, cmddesc),
E('div', { 'class': 'cbi-value' }, [
E('label', { 'class': 'cbi-value-title' }, _('User AT commands')),
E('div', { 'class': 'cbi-value-field' }, [
E('textarea', {
'class': 'cbi-input-textarea',
'rows': 20,
'style': 'width: 100%',
'name': 'atcommands'
}, content)
])
]),
E('div', {
'class': 'cbi-value',
'style': 'display: flex; justify-content: flex-end; margin-top: 20px;'
}, [
E('div', { 'class': 'cbi-value-field right' }, [
E('button', {
'class': 'cbi-button cbi-button-save',
'click': ui.createHandlerFn(this, 'saveCommands')
}, _('Save'))
])
])
])
]);
},
saveCommands: function(ev) {
var textarea = document.querySelector('textarea[name="atcommands"]');
var commands = textarea.value.trim().replace(/\r\n/g, '\n') + '\n';
return fs.write('/etc/atcommands.user', commands).then(function() {
ui.addNotification(null, E('p', _('AT commands list saved successfully')), 'info');
}).catch(function(err) {
ui.addNotification(null, E('p', _('Error saving list: ') + err.message), 'error');
});
},
handleSaveApply: null,
handleSave: null,
handleReset: null
});
================================================
FILE: luci/applications/luci-app-atinout/po/ru/atinout.po
================================================
msgid ""
msgstr "Content-Type: text/plain; charset=UTF-8"
msgid "AT Commands"
msgstr "Команды AT"
msgid "Configuration"
msgstr "Настройки"
msgid "Please specify the AT command to send"
msgstr "Выберите команду AT для отправки"
msgid "Please set the port for communication with the modem"
msgstr "Выберите порт модема."
msgid "Please select a port for communication with the modem"
msgstr "Выберите порт модема."
msgid "User AT commands"
msgstr "Пользовательские команды AT"
msgid "Command to send"
msgstr "Команда к отправке"
msgid "Clear form"
msgstr "Очистить"
msgid "Send command"
msgstr "Отправить"
msgid "Reply"
msgstr "Ответ"
msgid "User interface for handling AT commands using atinout utility."
msgstr "Интерфейс для отсылки команд AT с использованием atinout."
msgid "Configuration atinout"
msgstr "Настройки atinout"
msgid "Configuration panel for atinout."
msgstr "Панель конфигурации atinout"
msgid "Modem Port"
msgstr "Порт модема"
msgid "-- Select port --"
msgstr "-- Выберите порт --"
msgid "Each line must have the following format: <code>AT command description;AT+COMMAND</code>.<br />For user convenience, the file is saved to the location <code>/etc/atcommands.user</code>."
msgstr "Формат записи команд: <code>Описание команды;Команда AT</code>.<br /> Пользовательские команды содержатся в файле <code>/etc/atcommands.user</code>."
msgid "Press [Enter] to send the command, press [Delete] to delete the command"
msgstr "Нажмите [Enter] для отправки или [Delete] для удаления"
msgid "AT commands list saved successfully"
msgstr "Список команд успешно сохранён"
msgid "Error saving list: "
msgstr "Ошибка сохраниения: "
msgid "No ttyUSB or ttyACM ports found"
msgstr "Последовательные порты модема не обнаружены"
================================================
FILE: luci/applications/luci-app-atinout/po/template/atinout.pot
================================================
msgid ""
msgstr "Content-Type: text/plain; charset=UTF-8"
msgid "AT Commands"
msgstr ""
msgid "Configuration"
msgstr ""
msgid "Please specify the AT command to send"
msgstr ""
msgid "Please set the port for communication with the modem"
msgstr ""
msgid "User AT commands"
msgstr ""
msgid "Command to send"
msgstr ""
msgid "Clear form"
msgstr ""
msgid "Send command"
msgstr ""
msgid "Reply"
msgstr ""
msgid "User interface for handling AT commands using sms-tool. More information about the sms-tool on the %seko.one.pl forum%s."
msgstr ""
msgid "Configuration sms-tool"
msgstr ""
msgid "Configuration panel for sms-tool and gui application."
msgstr ""
msgid "Port for communication with the modem"
msgstr ""
msgid "Select one of the available ttyUSBX ports."
msgstr ""
msgid "Please select a port"
msgstr ""
msgid "Each line must have the following format: 'At command description;AT command'. For user convenience, the file is saved to the location '/etc/modem/atcommands.user'."
msgstr ""
msgid "Press [Enter] to send the command, press [Delete] to delete the command."
msgstr ""
================================================
FILE: luci/applications/luci-app-atinout/po/zh_Hans/atinout.po
================================================
msgid ""
msgstr "Content-Type: text/plain; charset=UTF-8"
msgid "AT Commands"
msgstr "AT命令"
msgid "Configuration"
msgstr "配置"
msgid "Please specify the AT command to send"
msgstr "请选择要发送的 AT命令"
msgid "Please set the port for communication with the modem"
msgstr "请选择与调制解调器通信的端口"
msgid "User AT commands"
msgstr "用户自定义 AT 命令"
msgid "Command to send"
msgstr "待发送命令"
msgid "Clear form"
msgstr "清除表单"
msgid "Send command"
msgstr "发送命令"
msgid "Reply"
msgstr "回复"
msgid "User interface for handling AT commands using atinout utility."
msgstr "使用 atinout工具处理 AT命令的用户界面"
msgid "Configuration atinout"
msgstr "atinout 的配置"
msgid "Configuration panel for atinout."
msgstr "atinout 的配置面板"
msgid "Port for communication with the modem"
msgstr "调制解调器通信端口"
msgid "Select serial modem port."
msgstr "选择串行调制解调器端口"
msgid "Please select a port"
msgstr "请选择一个端口"
msgid "Each line must have the following format: 'At command description;AT command'. For user convenience, the file is saved to the location <code>/etc/atcommands.user</code>."
msgstr "每行应遵循以下格式:'AT命令描述;AT命令'。为了方便用户,文件会被保存在<code>/etc/atcommands.user</code>位置。"
msgid "Press [Enter] to send the command, press [Delete] to delete the command"
msgstr "按[Enter]键发送命令,按[Delete]键删除命令"
================================================
FILE: luci/applications/luci-app-atinout/root/etc/uci-defaults/65-luci-app-atinout
================================================
#!/bin/sh
if [ ! -f /etc/atcommands.user ]; then
echo "Demo command \"ATI\";ATI" > /etc/atcommands.user
fi
rm -rf /tmp/luci-*
================================================
FILE: luci/applications/luci-app-atinout/root/usr/bin/luci-app-atinout
================================================
#!/bin/sh
echo $1 | atinout - $2 -
================================================
FILE: luci/applications/luci-app-atinout/root/usr/share/luci/menu.d/luci-app-atinout.json
================================================
{
"admin/modem": {
"title": "Modem",
"order": 45,
"action": {
"type": "firstchild",
"recurse": true
}
},
"admin/modem/atinout": {
"title": "AT Commands",
"order": 41,
"action": {
"type": "alias",
"path": "admin/modem/atinout/atcommands"
},
"depends": {
"acl": [ "luci-app-atinout" ]
}
},
"admin/modem/atinout/atcommands": {
"title": "AT Commands",
"order": 41,
"action": {
"type": "view",
"path": "modem/atcommands"
}
},
"admin/modem/atinout/atconfig": {
"title": "Configuration",
"order": 42,
"action": {
"type": "view",
"path": "modem/atconfig"
}
}
}
================================================
FILE: luci/applications/luci-app-atinout/root/usr/share/rpcd/acl.d/luci-app-atinout.json
================================================
{
"luci-app-atinout": {
"description": "Grant access to atcommands executables",
"read": {
"cgi-io": [ "exec" ],
"file": {
"/bin/echo": [ "exec" ],
"/usr/bin/atinout": [ "exec" ],
"/usr/bin/luci-app-atinout": [ "exec" ],
"/etc/atcommands.user": [ "read" ]
}
},
"write": {
"file": {
"/etc/atcommands.user": [ "write" ]
}
}
}
}
================================================
FILE: luci/applications/luci-app-cellled/Makefile
================================================
include $(TOPDIR)/rules.mk
PKG_NAME:=luci-app-cellled
LUCI_DEPENDS:=+cellled
PKG_VERSION:=0.1.0
PKG_RELEASE:=2
LUCI_TITLE:=LuCI application for showing cellular RSSI LED
include $(TOPDIR)/feeds/luci/luci.mk
# call BuildPackage - OpenWrt buildroot signature
================================================
FILE: luci/applications/luci-app-cellled/htdocs/luci-static/resources/view/cellled.js
================================================
'use strict';
'require form';
'require view';
'require uci';
'require rpc';
'require fs';
'require tools.widgets as widgets';
function getModemList() {
return fs.exec_direct('/usr/bin/mmcli', [ '-L' ]).then(function(res) {
var lines = (res || '').split(/\n/),
tasks = [];
for (var i = 0; i < lines.length; i++) {
var m = lines[i].match(/\/Modem\/(\d+)/);
if (m)
tasks.push(fs.exec_direct('/usr/bin/mmcli', [ '-m', m[1] ]));
}
return Promise.all(tasks).then(function(res) {
var modems = [];
for (var i = 0; i < res.length; i++) {
var man = res[i].match(/manufacturer: ([^\n]+)/),
mod = res[i].match(/model: ([^\n]+)/),
dev = res[i].match(/device: ([^\n]+)/);
if (dev) {
modems.push({
device: dev[1].trim(),
manufacturer: (man ? man[1].trim() : '') || '?',
model: (mod ? mod[1].trim() : '') || dev[1].trim()
});
}
}
return modems;
});
});
}
var callSerialPort = rpc.declare({
object: 'file',
method: 'list',
params: [ 'path' ],
expect: { entries: [] },
filter: function(list, params) {
var rv = [];
for (var i = 0; i < list.length; i++)
if (list[i].name.match(/^ttyACM/) || list[i].name.match(/^ttyUSB/))
rv.push(params.path + list[i].name);
return rv.sort();
}
});
var callQMIPort = rpc.declare({
object: 'file',
method: 'list',
params: [ 'path' ],
expect: { entries: [] },
filter: function(list, params) {
var rv = [];
for (var i = 0; i < list.length; i++)
if (list[i].name.match(/^cdc-wdm/))
rv.push(params.path + list[i].name);
return rv.sort();
}
});
var callLEDs = rpc.declare({
object: 'luci',
method: 'getLEDs',
expect: { '': {} }
});
return view.extend({
load: function() {
return Promise.all([
callLEDs(),
L.resolveDefault(fs.list('/www' + L.resource('view/system/led-trigger')), []),
]).then(function(data) {
var plugins = data[1];
var tasks = [];
for (var i = 0; i < plugins.length; i++) {
var m = plugins[i].name.match(/^(.+)\.js$/);
if (plugins[i].type != 'file' || m == null)
continue;
tasks.push(L.require('view.system.led-trigger.' + m[1]).then(L.bind(function(name){
return L.resolveDefault(L.require('view.system.led-trigger.' + name)).then(function(form) {
return {
name: name,
form: form,
};
});
}, this, m[1])));
}
return Promise.all(tasks).then(function(plugins) {
var value = {};
value[0] = data[0];
value[1] = plugins;
return value;
});
});
},
render: function(data) {
var m, s, o, triggers = [];
var leds = data[0];
var plugins = data[1];
for (var k in leds)
for (var i = 0; i < leds[k].triggers.length; i++)
triggers[i] = leds[k].triggers[i];
m = new form.Map('cellled', _('CellLED'));
m.description = _('Application for showing cellular RSSI LEDs');
s = m.section(form.TypedSection, 'device', _('General setup'));
s.anonymous = true;
s.rmempty = true;
o = s.option(form.ListValue, 'data_type', _('Select Data service'));
o.value('qmi', 'libQMI');
o.value('uqmi', 'uQMI');
o.value('mm', 'Modem Manager');
o.value('serial', 'Serial Port');
o = s.option(form.ListValue, 'device', _('Select Data port'));
o.load = function(section_id) {
return callSerialPort('/dev/').then(L.bind(function(devices) {
for (var i = 0; i < devices.length; i++)
this.value(devices[i]);
return form.Value.prototype.load.apply(this, [section_id]);
}, this));
};
o.rmempty = true;
o.depends('data_type', 'serial');
o = s.option(form.ListValue, 'device_qmi', _('Select Data port'));
o.load = function(section_id) {
return callQMIPort('/dev/').then(L.bind(function(devices) {
for (var i = 0; i < devices.length; i++)
this.value(devices[i]);
return form.Value.prototype.load.apply(this, [section_id]);
}, this));
};
o.rmempty = true;
o.depends('data_type', 'qmi');
o.depends('data_type', 'uqmi');
o = s.option(form.ListValue, 'device_mm', _('Select Data port'));
o.load = function(section_id) {
return getModemList().then(L.bind(function(devices) {
for (var i = 0; i < devices.length; i++)
this.value(devices[i].device,
'%s - %s'.format(devices[i].manufacturer, devices[i].model));
return form.Value.prototype.load.apply(this, [section_id]);
}, this));
};
o.rmempty = true;
o.depends('data_type', 'mm');
o = s.option(form.Value, 'timeout', _('Timeout interval data(sec)'));
o.datatype = 'and(uinteger,min(5))';
o = s.option(form.Flag, 'rgb_led', _('RGB LED'), _('Use RGB Led'));
o = s.option(form.Flag, 'use_pwm', _('Use PWM'), _('Enable if Support PWM LED'));
o.depends('rgb_led', '1');
o = s.option(form.ListValue, 'red_led', _('Red LED'));
Object.keys(leds).sort().forEach(function(name) {
o.value(name);
});
o.rmempty = true;
o.depends('rgb_led', '1');
o = s.option(form.ListValue, 'green_led', _('Greed LED'));
Object.keys(leds).sort().forEach(function(name) {
o.value(name);
});
o.rmempty = true;
o.depends('rgb_led', '1');
o = s.option(form.ListValue, 'blue_led', _('Blue LED'));
Object.keys(leds).sort().forEach(function(name) {
o.value(name);
});
o.rmempty = true;
o.depends('rgb_led', '1');
s = m.section(form.GridSection, 'rssi_led', _('Signal strength values'));
s.addremove = true;
s.anonymous = true;
s.nodescriptions = true;
o = s.option(form.Flag, 'rgb', _('RGB Led'));
o = s.option(form.ListValue, 'led', _('LED'));
Object.keys(leds).sort().forEach(function(name) {
o.value(name);
});
o.rmempty = true;
o.depends('rgb', '0');
o = s.option(form.ListValue, 'type', _('Quality'));
o.value('poor',_('Poor'));
o.value('bad',_('Bad'));
o.value('fair',_('Fair'));
o.value('good',_('Good'));
o.depends('rgb', '1');
o = s.option(form.Value, 'rssi_min', _('Min.value %'));
o.datatype = 'and(uinteger,min(0),max(100))';
o.rmempty = true;
o = s.option(form.Value, 'rssi_max', _('Max.value %'));
o.datatype = 'and(uinteger,min(0),max(100))';
o.rmempty = true;
return m.render();
}
});
================================================
FILE: luci/applications/luci-app-cellled/po/ru/cellled.po
================================================
"Language: ru\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Last-Translator: Konstantine Shevlyakov <shevlakov@132lan.ru>\n"
msgid "Application for showing cellular RSSI LEDs"
msgstr "Отображение сигнала сотовой сети RSSI"
msgid "Select Data service'"
msgstr "Выберите тип данных"
msgid "Select Data port"
msgstr "Выберите порт данных"
msgid "Timeout interval data(sec)"
msgstr "Интервал обновления данных (сек)"
msgid "Use RGB Led"
msgstr "Используется RGB Led"
msgid "Enable if Support PWM LED"
msgstr "Включить ШИМ, если доступно"
msgid "Red LED"
msgstr "Красный"
msgid "Greed LED"
msgstr "Зеленый"
msgid "Blue LED"
msgstr "Синий"
msgid "Signal strength values"
msgstr "Значения силы сигнала"
msgid "Min.value %"
msgstr "Мин.значение %"
msgid "Max.value %"
msgstr "Макс.значение %"
msgid "Quality"
msgstr "Качество"
msgid "Poor"
msgstr "Ничтожное"
msgid "Bad"
msgstr "Плохое"
msgid "Fair"
msgstr "Среднее"
msgid "Good"
msgstr "Хорошее"
================================================
FILE: luci/applications/luci-app-cellled/root/usr/share/luci/menu.d/luci-app-cellled.json
================================================
{
"admin/modem": {
"title": "Modem",
"order": 45,
"action": {
"type": "firstchild",
"rescue": "true"
}
},
"admin/modem/cellled": {
"title": "CellLED",
"order": "61",
"action": {
"type": "view",
"path": "cellled"
},
"depends": {
"uci": { "cellled": true }
}
}
}
================================================
FILE: luci/applications/luci-app-cellled/root/usr/share/rpcd/acl.d/luci-app-cellled.json
================================================
{
"luci-app-cellled": {
"description": "Grant UCI access for luci-app-cellled",
"read": {
"file": {
"/usr/bin/mmcli": [ "exec" ]
},
"uci": [ "cellled" ]
},
"write": {
"uci": [ "cellled" ]
}
}
}
================================================
FILE: luci/applications/luci-app-mmconfig/LICENSE
================================================
GNU AFFERO GENERAL PUBLIC LICENSE
Version 3, 19 November 2007
Copyright (C) 2007 Free Software Foundation, Inc. <https://fsf.org/>
Everyone is permitted to copy and distribute verbatim copies
of this license document, but changing it is not allowed.
Preamble
The GNU Affero General Public License is a free, copyleft license for
software and other kinds of works, specifically designed to ensure
cooperation with the community in the case of network server software.
The licenses for most software and other practical works are designed
to take away your freedom to share and change the works. By contrast,
our General Public Licenses are intended to guarantee your freedom to
share and change all versions of a program--to make sure it remains free
software for all its users.
When we speak of free software, we are referring to freedom, not
price. Our General Public Licenses are designed to make sure that you
have the freedom to distribute copies of free software (and charge for
them if you wish), that you receive source code or can get it if you
want it, that you can change the software or use pieces of it in new
free programs, and that you know you can do these things.
Developers that use our General Public Licenses protect your rights
with two steps: (1) assert copyright on the software, and (2) offer
you this License which gives you legal permission to copy, distribute
and/or modify the software.
A secondary benefit of defending all users' freedom is that
improvements made in alternate versions of the program, if they
receive widespread use, become available for other developers to
incorporate. Many developers of free software are heartened and
encouraged by the resulting cooperation. However, in the case of
software used on network servers, this result may fail to come about.
The GNU General Public License permits making a modified version and
letting the public access it on a server without ever releasing its
source code to the public.
The GNU Affero General Public License is designed specifically to
ensure that, in such cases, the modified source code becomes available
to the community. It requires the operator of a network server to
provide the source code of the modified version running there to the
users of that server. Therefore, public use of a modified version, on
a publicly accessible server, gives the public access to the source
code of the modified version.
An older license, called the Affero General Public License and
published by Affero, was designed to accomplish similar goals. This is
a different license, not a version of the Affero GPL, but Affero has
released a new version of the Affero GPL which permits relicensing under
this license.
The precise terms and conditions for copying, distribution and
modification follow.
TERMS AND CONDITIONS
0. Definitions.
"This License" refers to version 3 of the GNU Affero General Public License.
"Copyright" also means copyright-like laws that apply to other kinds of
works, such as semiconductor masks.
"The Program" refers to any copyrightable work licensed under this
License. Each licensee is addressed as "you". "Licensees" and
"recipients" may be individuals or organizations.
To "modify" a work means to copy from or adapt all or part of the work
in a fashion requiring copyright permission, other than the making of an
exact copy. The resulting work is called a "modified version" of the
earlier work or a work "based on" the earlier work.
A "covered work" means either the unmodified Program or a work based
on the Program.
To "propagate" a work means to do anything with it that, without
permission, would make you directly or secondarily liable for
infringement under applicable copyright law, except executing it on a
computer or modifying a private copy. Propagation includes copying,
distribution (with or without modification), making available to the
public, and in some countries other activities as well.
To "convey" a work means any kind of propagation that enables other
parties to make or receive copies. Mere interaction with a user through
a computer network, with no transfer of a copy, is not conveying.
An interactive user interface displays "Appropriate Legal Notices"
to the extent that it includes a convenient and prominently visible
feature that (1) displays an appropriate copyright notice, and (2)
tells the user that there is no warranty for the work (except to the
extent that warranties are provided), that licensees may convey the
work under this License, and how to view a copy of this License. If
the interface presents a list of user commands or options, such as a
menu, a prominent item in the list meets this criterion.
1. Source Code.
The "source code" for a work means the preferred form of the work
for making modifications to it. "Object code" means any non-source
form of a work.
A "Standard Interface" means an interface that either is an official
standard defined by a recognized standards body, or, in the case of
interfaces specified for a particular programming language, one that
is widely used among developers working in that language.
The "System Libraries" of an executable work include anything, other
than the work as a whole, that (a) is included in the normal form of
packaging a Major Component, but which is not part of that Major
Component, and (b) serves only to enable use of the work with that
Major Component, or to implement a Standard Interface for which an
implementation is available to the public in source code form. A
"Major Component", in this context, means a major essential component
(kernel, window system, and so on) of the specific operating system
(if any) on which the executable work runs, or a compiler used to
produce the work, or an object code interpreter used to run it.
The "Corresponding Source" for a work in object code form means all
the source code needed to generate, install, and (for an executable
work) run the object code and to modify the work, including scripts to
control those activities. However, it does not include the work's
System Libraries, or general-purpose tools or generally available free
programs which are used unmodified in performing those activities but
which are not part of the work. For example, Corresponding Source
includes interface definition files associated with source files for
the work, and the source code for shared libraries and dynamically
linked subprograms that the work is specifically designed to require,
such as by intimate data communication or control flow between those
subprograms and other parts of the work.
The Corresponding Source need not include anything that users
can regenerate automatically from other parts of the Corresponding
Source.
The Corresponding Source for a work in source code form is that
same work.
2. Basic Permissions.
All rights granted under this License are granted for the term of
copyright on the Program, and are irrevocable provided the stated
conditions are met. This License explicitly affirms your unlimited
permission to run the unmodified Program. The output from running a
covered work is covered by this License only if the output, given its
content, constitutes a covered work. This License acknowledges your
rights of fair use or other equivalent, as provided by copyright law.
You may make, run and propagate covered works that you do not
convey, without conditions so long as your license otherwise remains
in force. You may convey covered works to others for the sole purpose
of having them make modifications exclusively for you, or provide you
with facilities for running those works, provided that you comply with
the terms of this License in conveying all material for which you do
not control copyright. Those thus making or running the covered works
for you must do so exclusively on your behalf, under your direction
and control, on terms that prohibit them from making any copies of
your copyrighted material outside their relationship with you.
Conveying under any other circumstances is permitted solely under
the conditions stated below. Sublicensing is not allowed; section 10
makes it unnecessary.
3. Protecting Users' Legal Rights From Anti-Circumvention Law.
No covered work shall be deemed part of an effective technological
measure under any applicable law fulfilling obligations under article
11 of the WIPO copyright treaty adopted on 20 December 1996, or
similar laws prohibiting or restricting circumvention of such
measures.
When you convey a covered work, you waive any legal power to forbid
circumvention of technological measures to the extent such circumvention
is effected by exercising rights under this License with respect to
the covered work, and you disclaim any intention to limit operation or
modification of the work as a means of enforcing, against the work's
users, your or third parties' legal rights to forbid circumvention of
technological measures.
4. Conveying Verbatim Copies.
You may convey verbatim copies of the Program's source code as you
receive it, in any medium, provided that you conspicuously and
appropriately publish on each copy an appropriate copyright notice;
keep intact all notices stating that this License and any
non-permissive terms added in accord with section 7 apply to the code;
keep intact all notices of the absence of any warranty; and give all
recipients a copy of this License along with the Program.
You may charge any price or no price for each copy that you convey,
and you may offer support or warranty protection for a fee.
5. Conveying Modified Source Versions.
You may convey a work based on the Program, or the modifications to
produce it from the Program, in the form of source code under the
terms of section 4, provided that you also meet all of these conditions:
a) The work must carry prominent notices stating that you modified
it, and giving a relevant date.
b) The work must carry prominent notices stating that it is
released under this License and any conditions added under section
7. This requirement modifies the requirement in section 4 to
"keep intact all notices".
c) You must license the entire work, as a whole, under this
License to anyone who comes into possession of a copy. This
License will therefore apply, along with any applicable section 7
additional terms, to the whole of the work, and all its parts,
regardless of how they are packaged. This License gives no
permission to license the work in any other way, but it does not
invalidate such permission if you have separately received it.
d) If the work has interactive user interfaces, each must display
Appropriate Legal Notices; however, if the Program has interactive
interfaces that do not display Appropriate Legal Notices, your
work need not make them do so.
A compilation of a covered work with other separate and independent
works, which are not by their nature extensions of the covered work,
and which are not combined with it such as to form a larger program,
in or on a volume of a storage or distribution medium, is called an
"aggregate" if the compilation and its resulting copyright are not
used to limit the access or legal rights of the compilation's users
beyond what the individual works permit. Inclusion of a covered work
in an aggregate does not cause this License to apply to the other
parts of the aggregate.
6. Conveying Non-Source Forms.
You may convey a covered work in object code form under the terms
of sections 4 and 5, provided that you also convey the
machine-readable Corresponding Source under the terms of this License,
in one of these ways:
a) Convey the object code in, or embodied in, a physical product
(including a physical distribution medium), accompanied by the
Corresponding Source fixed on a durable physical medium
customarily used for software interchange.
b) Convey the object code in, or embodied in, a physical product
(including a physical distribution medium), accompanied by a
written offer, valid for at least three years and valid for as
long as you offer spare parts or customer support for that product
model, to give anyone who possesses the object code either (1) a
copy of the Corresponding Source for all the software in the
product that is covered by this License, on a durable physical
medium customarily used for software interchange, for a price no
more than your reasonable cost of physically performing this
conveying of source, or (2) access to copy the
Corresponding Source from a network server at no charge.
c) Convey individual copies of the object code with a copy of the
written offer to provide the Corresponding Source. This
alternative is allowed only occasionally and noncommercially, and
only if you received the object code with such an offer, in accord
with subsection 6b.
d) Convey the object code by offering access from a designated
place (gratis or for a charge), and offer equivalent access to the
Corresponding Source in the same way through the same place at no
further charge. You need not require recipients to copy the
Corresponding Source along with the object code. If the place to
copy the object code is a network server, the Corresponding Source
may be on a different server (operated by you or a third party)
that supports equivalent copying facilities, provided you maintain
clear directions next to the object code saying where to find the
Corresponding Source. Regardless of what server hosts the
Corresponding Source, you remain obligated to ensure that it is
available for as long as needed to satisfy these requirements.
e) Convey the object code using peer-to-peer transmission, provided
you inform other peers where the object code and Corresponding
Source of the work are being offered to the general public at no
charge under subsection 6d.
A separable portion of the object code, whose source code is excluded
from the Corresponding Source as a System Library, need not be
included in conveying the object code work.
A "User Product" is either (1) a "consumer product", which means any
tangible personal property which is normally used for personal, family,
or household purposes, or (2) anything designed or sold for incorporation
into a dwelling. In determining whether a product is a consumer product,
doubtful cases shall be resolved in favor of coverage. For a particular
product received by a particular user, "normally used" refers to a
typical or common use of that class of product, regardless of the status
of the particular user or of the way in which the particular user
actually uses, or expects or is expected to use, the product. A product
is a consumer product regardless of whether the product has substantial
commercial, industrial or non-consumer uses, unless such uses represent
the only significant mode of use of the product.
"Installation Information" for a User Product means any methods,
procedures, authorization keys, or other information required to install
and execute modified versions of a covered work in that User Product from
a modified version of its Corresponding Source. The information must
suffice to ensure that the continued functioning of the modified object
code is in no case prevented or interfered with solely because
modification has been made.
If you convey an object code work under this section in, or with, or
specifically for use in, a User Product, and the conveying occurs as
part of a transaction in which the right of possession and use of the
User Product is transferred to the recipient in perpetuity or for a
fixed term (regardless of how the transaction is characterized), the
Corresponding Source conveyed under this section must be accompanied
by the Installation Information. But this requirement does not apply
if neither you nor any third party retains the ability to install
modified object code on the User Product (for example, the work has
been installed in ROM).
The requirement to provide Installation Information does not include a
requirement to continue to provide support service, warranty, or updates
for a work that has been modified or installed by the recipient, or for
the User Product in which it has been modified or installed. Access to a
network may be denied when the modification itself materially and
adversely affects the operation of the network or violates the rules and
protocols for communication across the network.
Corresponding Source conveyed, and Installation Information provided,
in accord with this section must be in a format that is publicly
documented (and with an implementation available to the public in
source code form), and must require no special password or key for
unpacking, reading or copying.
7. Additional Terms.
"Additional permissions" are terms that supplement the terms of this
License by making exceptions from one or more of its conditions.
Additional permissions that are applicable to the entire Program shall
be treated as though they were included in this License, to the extent
that they are valid under applicable law. If additional permissions
apply only to part of the Program, that part may be used separately
under those permissions, but the entire Program remains governed by
this License without regard to the additional permissions.
When you convey a copy of a covered work, you may at your option
remove any additional permissions from that copy, or from any part of
it. (Additional permissions may be written to require their own
removal in certain cases when you modify the work.) You may place
additional permissions on material, added by you to a covered work,
for which you have or can give appropriate copyright permission.
Notwithstanding any other provision of this License, for material you
add to a covered work, you may (if authorized by the copyright holders of
that material) supplement the terms of this License with terms:
a) Disclaiming warranty or limiting liability differently from the
terms of sections 15 and 16 of this License; or
b) Requiring preservation of specified reasonable legal notices or
author attributions in that material or in the Appropriate Legal
Notices displayed by works containing it; or
c) Prohibiting misrepresentation of the origin of that material, or
requiring that modified versions of such material be marked in
reasonable ways as different from the original version; or
d) Limiting the use for publicity purposes of names of licensors or
authors of the material; or
e) Declining to grant rights under trademark law for use of some
trade names, trademarks, or service marks; or
f) Requiring indemnification of licensors and authors of that
material by anyone who conveys the material (or modified versions of
it) with contractual assumptions of liability to the recipient, for
any liability that these contractual assumptions directly impose on
those licensors and authors.
All other non-permissive additional terms are considered "further
restrictions" within the meaning of section 10. If the Program as you
received it, or any part of it, contains a notice stating that it is
governed by this License along with a term that is a further
restriction, you may remove that term. If a license document contains
a further restriction but permits relicensing or conveying under this
License, you may add to a covered work material governed by the terms
of that license document, provided that the further restriction does
not survive such relicensing or conveying.
If you add terms to a covered work in accord with this section, you
must place, in the relevant source files, a statement of the
additional terms that apply to those files, or a notice indicating
where to find the applicable terms.
Additional terms, permissive or non-permissive, may be stated in the
form of a separately written license, or stated as exceptions;
the above requirements apply either way.
8. Termination.
You may not propagate or modify a covered work except as expressly
provided under this License. Any attempt otherwise to propagate or
modify it is void, and will automatically terminate your rights under
this License (including any patent licenses granted under the third
paragraph of section 11).
However, if you cease all violation of this License, then your
license from a particular copyright holder is reinstated (a)
provisionally, unless and until the copyright holder explicitly and
finally terminates your license, and (b) permanently, if the copyright
holder fails to notify you of the violation by some reasonable means
prior to 60 days after the cessation.
Moreover, your license from a particular copyright holder is
reinstated permanently if the copyright holder notifies you of the
violation by some reasonable means, this is the first time you have
received notice of violation of this License (for any work) from that
copyright holder, and you cure the violation prior to 30 days after
your receipt of the notice.
Termination of your rights under this section does not terminate the
licenses of parties who have received copies or rights from you under
this License. If your rights have been terminated and not permanently
reinstated, you do not qualify to receive new licenses for the same
material under section 10.
9. Acceptance Not Required for Having Copies.
You are not required to accept this License in order to receive or
run a copy of the Program. Ancillary propagation of a covered work
occurring solely as a consequence of using peer-to-peer transmission
to receive a copy likewise does not require acceptance. However,
nothing other than this License grants you permission to propagate or
modify any covered work. These actions infringe copyright if you do
not accept this License. Therefore, by modifying or propagating a
covered work, you indicate your acceptance of this License to do so.
10. Automatic Licensing of Downstream Recipients.
Each time you convey a covered work, the recipient automatically
receives a license from the original licensors, to run, modify and
propagate that work, subject to this License. You are not responsible
for enforcing compliance by third parties with this License.
An "entity transaction" is a transaction transferring control of an
organization, or substantially all assets of one, or subdividing an
organization, or merging organizations. If propagation of a covered
work results from an entity transaction, each party to that
transaction who receives a copy of the work also receives whatever
licenses to the work the party's predecessor in interest had or could
give under the previous paragraph, plus a right to possession of the
Corresponding Source of the work from the predecessor in interest, if
the predecessor has it or can get it with reasonable efforts.
You may not impose any further restrictions on the exercise of the
rights granted or affirmed under this License. For example, you may
not impose a license fee, royalty, or other charge for exercise of
rights granted under this License, and you may not initiate litigation
(including a cross-claim or counterclaim in a lawsuit) alleging that
any patent claim is infringed by making, using, selling, offering for
sale, or importing the Program or any portion of it.
11. Patents.
A "contributor" is a copyright holder who authorizes use under this
License of the Program or a work on which the Program is based. The
work thus licensed is called the contributor's "contributor version".
A contributor's "essential patent claims" are all patent claims
owned or controlled by the contributor, whether already acquired or
hereafter acquired, that would be infringed by some manner, permitted
by this License, of making, using, or selling its contributor version,
but do not include claims that would be infringed only as a
consequence of further modification of the contributor version. For
purposes of this definition, "control" includes the right to grant
patent sublicenses in a manner consistent with the requirements of
this License.
Each contributor grants you a non-exclusive, worldwide, royalty-free
patent license under the contributor's essential patent claims, to
make, use, sell, offer for sale, import and otherwise run, modify and
propagate the contents of its contributor version.
In the following three paragraphs, a "patent license" is any express
agreement or commitment, however denominated, not to enforce a patent
(such as an express permission to practice a patent or covenant not to
sue for patent infringement). To "grant" such a patent license to a
party means to make such an agreement or commitment not to enforce a
patent against the party.
If you convey a covered work, knowingly relying on a patent license,
and the Corresponding Source of the work is not available for anyone
to copy, free of charge and under the terms of this License, through a
publicly available network server or other readily accessible means,
then you must either (1) cause the Corresponding Source to be so
available, or (2) arrange to deprive yourself of the benefit of the
patent license for this particular work, or (3) arrange, in a manner
consistent with the requirements of this License, to extend the patent
license to downstream recipients. "Knowingly relying" means you have
actual knowledge that, but for the patent license, your conveying the
covered work in a country, or your recipient's use of the covered work
in a country, would infringe one or more identifiable patents in that
country that you have reason to believe are valid.
If, pursuant to or in connection with a single transaction or
arrangement, you convey, or propagate by procuring conveyance of, a
covered work, and grant a patent license to some of the parties
receiving the covered work authorizing them to use, propagate, modify
or convey a specific copy of the covered work, then the patent license
you grant is automatically extended to all recipients of the covered
work and works based on it.
A patent license is "discriminatory" if it does not include within
the scope of its coverage, prohibits the exercise of, or is
conditioned on the non-exercise of one or more of the rights that are
specifically granted under this License. You may not convey a covered
work if you are a party to an arrangement with a third party that is
in the business of distributing software, under which you make payment
to the third party based on the extent of your activity of conveying
the work, and under which the third party grants, to any of the
parties who would receive the covered work from you, a discriminatory
patent license (a) in connection with copies of the covered work
conveyed by you (or copies made from those copies), or (b) primarily
for and in connection with specific products or compilations that
contain the covered work, unless you entered into that arrangement,
or that patent license was granted, prior to 28 March 2007.
Nothing in this License shall be construed as excluding or limiting
any implied license or other defenses to infringement that may
otherwise be available to you under applicable patent law.
12. No Surrender of Others' Freedom.
If conditions are imposed on you (whether by court order, agreement or
otherwise) that contradict the conditions of this License, they do not
excuse you from the conditions of this License. If you cannot convey a
covered work so as to satisfy simultaneously your obligations under this
License and any other pertinent obligations, then as a consequence you may
not convey it at all. For example, if you agree to terms that obligate you
to collect a royalty for further conveying from those to whom you convey
the Program, the only way you could satisfy both those terms and this
License would be to refrain entirely from conveying the Program.
13. Remote Network Interaction; Use with the GNU General Public License.
Notwithstanding any other provision of this License, if you modify the
Program, your modified version must prominently offer all users
interacting with it remotely through a computer network (if your version
supports such interaction) an opportunity to receive the Corresponding
Source of your version by providing access to the Corresponding Source
from a network server at no charge, through some standard or customary
means of facilitating copying of software. This Corresponding Source
shall include the Corresponding Source for any work covered by version 3
of the GNU General Public License that is incorporated pursuant to the
following paragraph.
Notwithstanding any other provision of this License, you have
permission to link or combine any covered work with a work licensed
under version 3 of the GNU General Public License into a single
combined work, and to convey the resulting work. The terms of this
License will continue to apply to the part which is the covered work,
but the work with which it is combined will remain governed by version
3 of the GNU General Public License.
14. Revised Versions of this License.
The Free Software Foundation may publish revised and/or new versions of
the GNU Affero General Public License from time to time. Such new versions
will be similar in spirit to the present version, but may differ in detail to
address new problems or concerns.
Each version is given a distinguishing version number. If the
Program specifies that a certain numbered version of the GNU Affero General
Public License "or any later version" applies to it, you have the
option of following the terms and conditions either of that numbered
version or of any later version published by the Free Software
Foundation. If the Program does not specify a version number of the
GNU Affero General Public License, you may choose any version ever published
by the Free Software Foundation.
If the Program specifies that a proxy can decide which future
versions of the GNU Affero General Public License can be used, that proxy's
public statement of acceptance of a version permanently authorizes you
to choose that version for the Program.
Later license versions may give you additional or different
permissions. However, no additional obligations are imposed on any
author or copyright holder as a result of your choosing to follow a
later version.
15. Disclaimer of Warranty.
THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
16. Limitation of Liability.
IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
SUCH DAMAGES.
17. Interpretation of Sections 15 and 16.
If the disclaimer of warranty and limitation of liability provided
above cannot be given local legal effect according to their terms,
reviewing courts shall apply local law that most closely approximates
an absolute waiver of all civil liability in connection with the
Program, unless a warranty or assumption of liability accompanies a
copy of the Program in return for a fee.
END OF TERMS AND CONDITIONS
How to Apply These Terms to Your New Programs
If you develop a new program, and you want it to be of the greatest
possible use to the public, the best way to achieve this is to make it
free software which everyone can redistribute and change under these terms.
To do so, attach the following notices to the program. It is safest
to attach them to the start of each source file to most effectively
state the exclusion of warranty; and each file should have at least
the "copyright" line and a pointer to where the full notice is found.
<one line to give the program's name and a brief idea of what it does.>
Copyright (C) <year> <name of author>
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published
by the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>.
Also add information on how to contact you by electronic and paper mail.
If your software can interact with users remotely through a computer
network, you should also make sure that it provides a way for users to
get its source. For example, if your program is a web application, its
interface could display a "Source" link that leads users to an archive
of the code. There are many ways you could offer source, and different
solutions will be better for different programs; see section 13 for the
specific requirements.
You should also get your employer (if you work as a programmer) or school,
if any, to sign a "copyright disclaimer" for the program, if necessary.
For more information on this, and how to apply and follow the GNU AGPL, see
<https://www.gnu.org/licenses/>.
================================================
FILE: luci/applications/luci-app-mmconfig/Makefile
================================================
include $(TOPDIR)/rules.mk
LUCI_TITLE:=Configrure modem bands via mmcli utility
LUCI_DEPENDS:=+luci-proto-modemmanager +luci-app-modeminfo
PKG_LICENSE:=GPLv3
PKG_VERSION:=0.1.1
PKG_RELEASE:=5
include $(TOPDIR)/feeds/luci/luci.mk
# call BuildPackage - OpenWrt buildroot signature
================================================
FILE: luci/applications/luci-app-mmconfig/README.md
================================================
# luci-app-mmconfig
The OpenWrt Luci app configure modem cellular bands via mmcli utility

================================================
FILE: luci/applications/luci-app-mmconfig/htdocs/luci-static/resources/view/modem/bands.js
================================================
'use strict';
'require form';
'require uci';
'require view';
'require dom';
'require modemmanager_helper as helper';
return view.extend({
load: function() {
return Promise.all([
uci.load('mmconfig'),
helper.getModems()
]);
},
render: function(data) {
var modemsData = data[1];
var m = new form.Map('mmconfig', _('Modem Configuration'), _('List supported bands.<br />If deselect all bands, then used default band modem config.'));
// add styles
var style = document.createElement('style');
style.textContent = this.getCSS();
document.head.appendChild(style);
var configSections = [];
uci.sections('mmconfig', 'modem', function(s) {
configSections.push(s);
});
configSections.forEach(function(section, index) {
// search modems
var modemObj = null;
if (modemsData && modemsData.length > 0) {
for (var i = 0; i < modemsData.length; i++) {
if (modemsData[i] &&
modemsData[i].modem &&
modemsData[i].modem.generic &&
modemsData[i].modem.generic.device === section.device) {
modemObj = modemsData[i].modem;
break;
}
}
}
// create sections
var s = m.section(form.NamedSection, section['.name'], _('Modem ') + (index + 1));
s.addremove = false;
s.anonymous = false;
// hide device option
var o = s.option(form.HiddenValue, 'device', '');
o.default = section.device || '';
// container
if (modemObj && modemObj.generic) {
var infoPanel = s.option(form.DummyValue, '_info_panel', '');
infoPanel.rawhtml = true;
var html = '<div class="modem-info-compact">';
// Operator name modem and access tech
var modelText = '';
if (modemObj.generic.manufacturer || modemObj.generic.model) {
if (modemObj.generic.manufacturer) {
modelText += modemObj.generic.manufacturer + ' ';
}
if (modemObj.generic.model) {
modelText += modemObj.generic.model;
}
} else {
modelText = _('Unknown modem');
}
var operatorText = '';
if (modemObj['3gpp'] && modemObj['3gpp']['operator-name']) {
operatorText = modemObj['3gpp']['operator-name'];
}
html += '<div class="compact-line">';
html += '<span class="modem-model">' + modelText + '</span>';
if (operatorText) {
html += '<span class="separator">•</span>';
html += '<span class="modem-operator">' + operatorText + '</span>';
}
var currentModeText = '';
if (modemObj.generic['current-modes']) {
currentModeText = modemObj.generic['current-modes'];
}
// if current-modes not aviaible, use access-technologies
else if (modemObj.generic['access-technologies'] && modemObj.generic['access-technologies'].length > 0) {
// Берем первую технологию из access-technologies
currentModeText = modemObj.generic['access-technologies'];
}
if (currentModeText) {
html += '<span class="separator">•</span>';
html += '<span class="current-mode">' + _('Access Tech:') + ' ' + currentModeText + '</span>';
}
html += '</div>';
html += '</div>'; // close container
infoPanel.default = html;
}
// network preffered
o = s.option(form.ListValue, 'preffer', _('Network Mode'));
o.rmempty = false;
if (modemObj && modemObj.generic && modemObj.generic['supported-modes']) {
// get from modem supported-modes
modemObj.generic['supported-modes'].forEach(function(mode) {
o.value(mode, mode);
});
// Set current
if (section.preffer) {
o.default = section.preffer;
} else if (currentModeText && modemObj.generic['supported-modes'].includes(currentModeText)) {
o.default = currentModeText;
}
} else {
// If not aviable
o.value('', _('Not Available'));
o.default = '';
o.readonly = true;
}
// bands select
if (modemObj && modemObj.generic && modemObj.generic['supported-bands']) {
o = s.option(form.MultiValue, 'bands', _('Bands'));
// get from modem supported-bands
modemObj.generic['supported-bands'].forEach(function(band) {
o.value(band, band);
});
// Set current
if (section.bands) {
o.default = section.bands;
}
} else {
o = s.option(form.Value, 'bands', _('Bands'));
o.value('', _('Not Available'));
o.default = '';
o.readonly = true;
}
// small separator
if (index < configSections.length - 1) {
var spacer = s.option(form.DummyValue, '_divider', '');
spacer.default = '<div class="light-divider"></div>';
spacer.rawhtml = true;
}
});
if (configSections.length === 0) {
var s = m.section(form.NamedSection, 'info', _('WARNING'));
s.anonymous = true;
var o = s.option(form.DummyValue, '_message', _('Status'));
o.default = _('No modem configuration found. Run <code>/etc/init.d/mmconfig start<code>');
o.rawhtml = false;
}
return m.render();
},
getCSS: function() {
return [
'.modem-info-compact {',
' background: #f8fafc;',
' border: 1px solid #e2e8f0;',
' border-radius: 6px;',
' padding: 12px 16px;',
' margin: 15px 0;',
'}',
'',
'.compact-line {',
' display: flex;',
' align-items: center;',
' gap: 10px;',
'}',
'',
'.modem-model {',
' font-weight: 600;',
' color: #2d3748;',
' font-size: 1em;',
'}',
'',
'.separator {',
' color: #a0aec0;',
' font-weight: 300;',
'}',
'',
'.modem-operator {',
' color: #4a5568;',
' font-size: 0.95em;',
'}',
'',
'.light-divider {',
' height: 1px;',
' background: #edf2f7;',
' margin: 20px 0;',
'}',
'',
'/* Улучшаем отступы в секциях */',
'.cbi-section .cbi-section-node {',
' margin-bottom: 10px;',
'}',
'',
'.cbi-section .cbi-section-descr {',
' padding: 5px 0;',
'}'
].join('\n');
}
});
================================================
FILE: luci/applications/luci-app-mmconfig/po/ru/mmconfig.po
================================================
msgid ""
msgstr ""
"Language: ru\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Last-Translator: Konstantine Shevlakov <shevlakov@132lan.ru>\n"
msgid "Modem "
msgstr "Модем "
msgid "Bands"
msgstr "Диапазоны"
msgid "Network Mode"
msgstr "Режим сети"
msgid "Bands"
msgstr "Диапазоны"
msgid "Access Tech:"
msgstr "Текущий:"
msgid "Status"
msgstr "Состояние"
msgid "WARNING"
msgstr "ПРЕДУПРЕЖДЕНИЕ"
msgid "List supported bands.<br />If deselect all bands, then used default band modem config."
msgstr "Список поддерживаемых диапазонов.<br />Если не выбрано ни одного диапазона, используется конфигурация модема по умолчанию."
msgid "No modem configuration found. Run <code>/etc/init.d/mmconfig start<code>"
msgstr "Не найдена конфигурация. Перезапустите скрипт <code>/etc/init.d/mmconfig start</code>"
================================================
FILE: luci/applications/luci-app-mmconfig/po/zh_Hans/mmconfig.po
================================================
msgid ""
msgstr "Content-Type: text/plain; charset=UTF-8"
#: applications/luci-app-mmconfig/luasrc/controller/modemconfig.lua:8
msgid "Modem"
msgstr "移动网络"
#: applications/luci-app-mmconfig/luasrc/controller/modemconfig.lua:9
msgid "Band config"
msgstr "频段配置"
#: applications/luci-app-mmconfig/luasrc/model/cbi/modem/modemconfig.lua:12
msgid "Configure modem bands"
msgstr "配置模块频段"
#: applications/luci-app-mmconfig/luasrc/model/cbi/modem/modemconfig.lua:13
msgid "Configuration 2G/3G/4G modem frequency bands."
msgstr "配置 2G/3G/4G 模块频段."
#: applications/luci-app-mmconfig/luasrc/model/cbi/modem/modemconfig.lua:13
msgid "Choose bands cellular modem"
msgstr "选择模块频段"
#: applications/luci-app-mmconfig/luasrc/model/cbi/modem/modemconfig.lua:19
msgid "Net Mode"
msgstr "网络模式"
#: applications/luci-app-mmconfig/luasrc/model/cbi/modem/modemconfig.lua:19
msgid "Preffered Network mode select."
msgstr "首选网络"
#: applications/luci-app-mmconfig/luasrc/model/cbi/modem/modemconfig.lua:61
msgid "Select modem"
msgstr "选择模块"
#: applications/luci-app-mmconfig/luasrc/model/cbi/modem/modemconfig.lua:72
msgid "Maybe must reconnect cellular interface. <br /> If deselect all bands, then used default band modem config."
msgstr "可能需要重连移动网络接口。 <br /> 如果不选择频段则使用模块默认频段。"
================================================
FILE: luci/applications/luci-app-mmconfig/root/etc/config/mmconfig
================================================
================================================
FILE: luci/applications/luci-app-mmconfig/root/etc/init.d/mmconfig
================================================
#!/bin/sh /etc/rc.common
START=99
USE_PROCD=1
check_modems(){
for m in $(mmcli -L | awk '{print $1}'); do
devm=$(mmcli -m ${m} -J | jsonfilter -e '@["modem"]["generic"]["device"]')
uci show mmconfig | grep "$devm" || {
echo "uci section not found"
secname=$(uci show mmconfig | tail -1 | awk -F [.] '{num = $2; gsub(/[^0-9]/, "", num); if(num != "") printf "%s%d\n", substr($2, 1, length($2)-length(num)), num+1; else print $0 "1"}')
[ $secname ] || secname=modem1
uci set mmconfig.${secname}=modem
uci set mmconfig.${secname}.device=$devm
uci commit
}
done
}
start_service(){
logger -t "MMconfig" "MMConfig started"
# generate config uci
check_modems
}
reload_service(){
/usr/share/modeminfo/mmconfig
}
service_triggers() {
procd_add_reload_trigger mmconfig
}
================================================
FILE: luci/applications/luci-app-mmconfig/root/etc/uci-defaults/70_luci-app-mmconfig
================================================
#!/bin/sh
# disable mode setting to any in modemnanager proto
[ -f /lib/netifd/proto/modemmanager.sh ] && {
sed -i '/^[[:space:]]*modemmanager_set_allowed_mode "$device" "$interface" "any"$/s/.*/\t\t:/' /lib/netifd/proto/modemmanager.sh
}
================================================
FILE: luci/applications/luci-app-mmconfig/root/usr/share/luci/menu.d/luci-app-mmconfig.json
================================================
{
"admin/modem/main": {
"title": "Modeminfo",
"order": 10,
"action": {
"type": "alias",
"path": "admin/modem/main/main"
},
"depends": {
"acl": [ "luci-app-mmconfig" ],
"uci": { "mmconfig": true }
}
},
"admin/modem/main/bands": {
"title": "Bands",
"order": 63,
"action": {
"type": "view",
"path": "modem/bands"
}
}
}
================================================
FILE: luci/applications/luci-app-mmconfig/root/usr/share/modeminfo/mmconfig
================================================
#!/bin/sh
. /lib/functions.sh
# get vars
get_mm_config(){
local device bands preffer
config_get device $1 device
config_get bands $1 bands
config_get preffer $1 preffer
mmcli -m $device > /dev/null 2>&1 && {
setpref=$(echo "$preffer" | awk -F'[:;]' '{ gsub(/[ \t]+/, "", $0); gsub(",", "|", $0); print "--set-"$1"-modes="$2" --set-"$3"-mode="$NF}')
setbands=$(echo $bands | awk -v OFS='|' '{$1=$1}1')
defbands=$(mmcli -J -m $device | jsonfilter -e '@["modem"]["generic"]["supported-bands"].*' | awk '{bands = (NR==1 ? $1 : bands "|"$1)} END {print bands}')
curbands=$(mmcli -J -m $device | jsonfilter -e '@["modem"]["generic"]["current-bands"].*' | awk '{bands = (NR==1 ? $1 : bands "|"$1)} END {print bands}')
curpref=$(mmcli -J -m $device | jsonfilter -e '@["modem"]["generic"]["current-modes"]')
[ -n "$bands" ] || {
setbands=$defbands
}
[ "$curbands" = "$setbands" ] && [ "$preffer" = "$curpref" ] || {
modemif=$(uci show network | grep "$device" | awk -F [.] '{print $2}')
[ "$preffer" = "$curpref" ] || mmcli -m $device $setpref
[ "$curbands" = "$setbands" ] || mmcli -m $device --set-current-bands="$setbands"
sleep 3
ifup $modemif
}
}
}
config_load mmconfig
config_foreach get_mm_config modem
================================================
FILE: luci/applications/luci-app-mmconfig/root/usr/share/rpcd/acl.d/luci-app-mmconfig.json
================================================
{
"luci-app-mmconfig": {
"description": "Grant access to mmconfig configuration",
"read": {
"file": {
"/etc/init.d/mmconfig": [ "exec" ]
},
"cgi-io": [ "exec" ],
"ubus": {
"file": [ "exec" ],
"uci": [ "changes", "get" ]
},
"uci": [ "mmconfig" ]
},
"write": {
"cgi-io": [ "exec" ],
"ubus": {
"file": [ "exec" ],
"uci": [ "add", "apply", "confirm", "delete", "order", "rename", "set" ]
},
"uci": [ "mmconfig" ]
}
}
}
================================================
FILE: luci/applications/luci-app-modeminfo/Makefile
================================================
include $(TOPDIR)/rules.mk
LUCI_TITLE:=Information dashboard for 3G/LTE dongle
LUCI_DEPENDS:=+modeminfo
PKG_LICENSE:=GPLv3
PKG_VERSION:=0.4.7
PKG_RELEASE:=3
include $(TOPDIR)/feeds/luci/luci.mk
# call BuildPackage - OpenWrt buildroot signature
================================================
FILE: luci/applications/luci-app-modeminfo/README.md
================================================
# luci-app-modeminfo
3G/LTE dongle information for OpenWrt LuCi
luci-app-modeminfo is fork from https://github.com/IceG2020/luci-app-3ginfo
Supported devices:
- Quectel EC200T/EC21/EC25/EP06/EM12/EM160R-GL
- SimCom SIM7600E-H/SIM7906/A7600/A7906-M2
- STYX MG8224
- Huawei E3372 (LTE)/MU709/ME909
- Sierra Wireless EM7455/EM9191
- HP LT4220
- Dell DW5821e/DW5829e
- MEIGLink SLM750-R2/SLM820/SLM828
- MikroTik R11e-LTE/R11e-LTE6
- Fibocom NL668/NL678/L850/L860/NL952/FM150/FM190/FM350
- Gosuncnwelink GM510
- ThinkWill ML7820+
- Yuge CLM920
- ZTE MF823/MF823D
<details>
<summary>Package contents:</summary>
|Package |Description |
|:-------|:-----------|
|luci-app-modeminfo |LuCI web interface |
|modeminfo |common files |
|modeminfo-qmi |Qualcomm MSM Interface support |
|modeminfo-serial-quectel |Quectel modems support |
|modeminfo-serial-telit |Telit LN940 (HP LT4220) modem support |
|modeminfo-serial-huawei |Huawei MU709/ME909/E3372(stick mode, LTE only) modems support|
|modeminfo-serial-sierra |Sierra EM7455/EM9191 modem support |
|modeminfo-serial-simcom |SimCOM modems support |
|modeminfo-serial-dell |Dell DW5821e/DW5829e modem support |
|modeminfo-serial-fibocom |Fibocom LN668/NL678/NL952/FM150/FM190 modems support |
|modeminfo-serial-xmm |Fibocom L850/L860/FM350 modems support |
|modeminfo-serial-mikrotik |MikroTik R11e-LTE/R11e-LTE6 modems support |
|modeminfo-serial-gosun |Gosuncnwelink GM510 support |
|modeminfo-serial-tw |ThinkWill ML7820+ support |
|modeminfo-serial-yuge |Yuge CLM920 support |
|modeminfo-serial-meig |MEIGLink SLM750-R2/SLM820/SLM828 support |
|modeminfo-serial-zte |ZTE MF823/MF823D support |
|modeminfo-serial-styx |STYX MG8224 support |
</details>
<details>
<summary>Screenshots</summary>
* Overview page. Short network info.

* Modeminfo index page. Verbose network info.

* Modeminfo hardware page.

* Modeminfo setup page.

</details>
================================================
FILE: luci/applications/luci-app-modeminfo/htdocs/luci-static/resources/modem-indicator.js
================================================
'use strict';
'require ui';
'require poll';
'require fs';
'require uci';
function getSignalColor(percent) {
if (percent === null || percent === undefined || percent < 5) {
return '#000000';
}
let p = percent;
if (p >= 80) return '#00cc00';
if (p >= 67) {
const ratio = (p - 50) / 30;
const r = Math.floor(255 * (1 - ratio));
const g = 255;
return `rgb(${r}, ${g}, 0)`;
}
if (p >= 35) {
const ratio = (p - 25) / 25;
const r = 255;
const g = Math.floor(165 + (90 * ratio));
return `rgb(${r}, ${g}, 0)`;
}
const ratio = (p - 5) / 20;
const r = 255;
const g = Math.floor(165 * ratio);
return `rgb(${r}, ${g}, 0)`;
}
function getSignalState(percent) {
const p = percent || 0;
if (p < 10) return 'error';
if (p < 25) return 'warning';
if (p < 50) return 'warning';
return 'active';
}
function isUciIndexTwo() {
return L.resolveDefault(fs.exec_direct('/sbin/uci', ['get', 'modeminfo.@general[0].index']), '')
.then(function(value) {
return value.trim() === '2';
})
.catch(function() {
return false;
});
}
function updateIndicator() {
isUciIndexTwo().then(function(ok) {
if (!ok) {
ui.hideIndicator('modem-status');
return;
}
if (window.location.pathname.includes('/cgi-bin/luci/admin/modem/main')) {
ui.hideIndicator('modem-status');
return;
}
L.resolveDefault(fs.exec_direct('/usr/bin/modeminfo'), '{"modem":[]}')
.then(function(res) {
var data = JSON.parse(res);
if (!data.modem || !data.modem.length) {
ui.hideIndicator('modem-status');
return;
}
var parts = data.modem.map(function(modem) {
var percent = parseInt(modem.csq_per);
var cops = modem.cops || '';
var mode = modem.mode + (parseInt(modem.lteca) > 0 ? '+' : '');
return { mode: mode, cops: cops, percent: percent };
});
var minPercent = Math.min.apply(null, parts.map(function(p) { return p.percent; }));
var state = getSignalState(minPercent);
var status = parts.map(function(p) {
return p.mode + ' ' + p.cops;
}).join(' | ');
ui.showIndicator('modem-status', status, null, state);
var indicator = document.querySelector('[data-indicator="modem-status"]');
if (indicator) {
var html = parts.map(function(p) {
var color = getSignalColor(p.percent);
return '<span style="color:' + color + '; -webkit-text-stroke: 0.5px black; text-stroke: 0.5px black;">●</span> ' + p.mode + ' ' + p.cops;
}).join(' | ');
indicator.innerHTML = html;
}
})
.catch(function() {
ui.hideIndicator('modem-status');
});
});
}
setTimeout(function() {
updateIndicator();
poll.add(updateIndicator, 10);
}, 500);
return L.Class.extend({
__name__: 'ModemIndicator'
});
================================================
FILE: luci/applications/luci-app-modeminfo/htdocs/luci-static/resources/preload/modem-indicator.js
================================================
'use strict';
'require modem-indicator';
return L.Class.extend({
__name__: 'preload.modem-indicator'
});
================================================
FILE: luci/applications/luci-app-modeminfo/htdocs/luci-static/resources/view/modem/hw.js
================================================
'use strict';
'require baseclass';
'require form';
'require fs';
'require view';
'require ui';
'require uci';
'require poll';
'require dom';
'require tools.widgets as widgets';
/*
Copyright Konstantine Shevlakov <shevlakov@132lan.ru> 2023-2026
Licensed to the GNU General Public License v3.0.
Refactored: bug fixes, XSS prevention, deduplication.
*/
// ─── Helpers ──────────────────────────────────────────────────────────────────
/**
* Safe getElementById.
* @param {string} id
* @returns {HTMLElement|null}
*/
function getEl(id) {
return document.getElementById(id);
}
/**
* Write a value into a cell by id.
* Falls back to '--' when value is missing/placeholder.
* Uses textContent to prevent XSS.
*
* @param {string} id - Element id
* @param {string} value - Raw value from modem JSON
* @param {string} [suffix] - Optional suffix appended to a real value (e.g. ' °C')
*/
function setCell(id, value, suffix) {
const el = getEl(id);
if (!el) return;
const missing = !value || value === '--';
el.textContent = missing ? '--' : value + (suffix || '');
}
// ─── Field definitions ────────────────────────────────────────────────────────
// Each entry: { key: modem JSON field, suffix: optional unit string }
const MODEM_FIELDS = [
{ key: 'device', suffix: '' },
{ key: 'firmware', suffix: '' },
{ key: 'imsi', suffix: '' },
{ key: 'iccid', suffix: '' },
{ key: 'imei', suffix: '' },
{ key: 'chiptemp', suffix: ' °C' },
];
// ─── Main view ────────────────────────────────────────────────────────────────
return view.extend({
// FIX: removed unused `data` parameter
load: function() {
return L.resolveDefault(fs.exec_direct('/usr/bin/modeminfo'), '{"modem": []}');
},
polldata: poll.add(function() {
return L.resolveDefault(fs.exec_direct('/usr/bin/modeminfo'), '{"modem": []}')
.then(function(res) {
// FIX: wrapped in try/catch — was crashing on invalid JSON
let json;
try {
json = JSON.parse(res);
} catch (e) {
console.error('modeminfo hw: JSON parse error', e);
return;
}
if (!json || !Array.isArray(json.modem)) return;
for (let i = 0; i < json.modem.length; i++) {
const modem = json.modem[i];
// FIX: replaced 6 copy-pasted blocks with a single loop.
// FIX: `var view` renamed — was shadowing the LuCI `view` module.
// FIX: value '--' now explicitly written to cell (was silently ignored).
// FIX: innerHTML → textContent to prevent XSS.
// FIX: String.format(x) with no extra args replaced by direct assignment.
for (const { key, suffix } of MODEM_FIELDS) {
setCell(key + i, modem[key], suffix);
}
}
});
}),
render: function(data) {
// FIX: wrapped in try/catch — was crashing on invalid JSON
let json;
try {
json = JSON.parse(data);
} catch (e) {
json = { modem: [] };
}
const m = new form.Map('modeminfo', _('Modeminfo: Hardware'), _('Hardware and sim-card info.'));
const s = m.section(form.TypedSection, 'general', null);
s.anonymous = true;
for (let i = 0; i < json.modem.length; i++) {
const idx = i + 1;
// Pre-build all element ids for this modem slot
const ids = {};
for (const { key } of MODEM_FIELDS) {
ids[key] = key + i;
}
let o;
if (json.modem.length > 1) {
s.tab('modem' + i, _('Modem') + ' ' + idx);
o = s.taboption('modem' + i, form.HiddenValue, 'generic');
} else {
o = s.option(form.HiddenValue, 'generic');
}
o.render = L.bind(function() {
return E('div', {}, [
E('h3', { 'class': 'data-tab' }),
E('div', { 'class': 'cbi-section' }, [
E('table', { 'class': 'table' }, [
E('tr', { 'class': 'tr cbi-rowstyle-2' }, [
E('td', { 'class': 'td left', 'width': '50%' }, [_('Device')]),
E('td', { 'class': 'td left', 'id': ids.device }, ['--']),
]),
E('tr', { 'class': 'tr cbi-rowstyle-1' }, [
E('td', { 'class': 'td left', 'width': '50%' }, [_('Firmware')]),
E('td', { 'class': 'td left', 'id': ids.firmware }, ['--']),
]),
E('tr', { 'class': 'tr cbi-rowstyle-2' }, [
E('td', { 'class': 'td left', 'width': '50%' }, [_('IMSI')]),
E('td', { 'class': 'td left', 'id': ids.imsi }, ['--']),
]),
E('tr', { 'class': 'tr cbi-rowstyle-1' }, [
E('td', { 'class': 'td left', 'width': '50%' }, [_('ICCID')]),
E('td', { 'class': 'td left', 'id': ids.iccid }, ['--']),
]),
E('tr', { 'class': 'tr cbi-rowstyle-2' }, [
E('td', { 'class': 'td left', 'width': '50%' }, [_('IMEI')]),
E('td', { 'class': 'td left', 'id': ids.imei }, ['--']),
]),
E('tr', { 'class': 'tr cbi-rowstyle-1' }, [
E('td', { 'class': 'td left', 'width': '50%' }, [_('Chiptemp')]),
E('td', { 'class': 'td left', 'id': ids.chiptemp }, ['--']),
]),
])
])
]);
}, this.polldata);
o.anonymous = true;
o.rmempty = true;
}
return m.render();
},
handleSaveApply: null,
handleSave: null,
handleReset: null,
});
================================================
FILE: luci/applications/luci-app-modeminfo/htdocs/luci-static/resources/view/modem/main.js
================================================
'use strict';
'require baseclass';
'require form';
'require fs';
'require view';
'require ui';
'require uci';
'require poll';
'require dom';
'require tools.widgets as widgets';
/*
Copyright Konstantine Shevlakov <shevlakov@132lan.ru> 2023
Licensed to the GNU General Public License v3.0.
Refactored: bug fixes, performance improvements, code deduplication.
*/
const REGISTERED_STATUSES = [1, 6, 9];
const ROAMING_STATUSES = [3, 5, 7, 10];
// ─── Signal Icons ────────────────────────────────────────────────────────────
const SIGNAL_ICONS = [
{ max: 10, icn: 'signal-000-000.svg' },
{ max: 25, icn: 'signal-000-025.svg' },
{ max: 50, icn: 'signal-025-050.svg' },
{ max: 75, icn: 'signal-050-075.svg' },
{ max: Infinity, icn: 'signal-075-100.svg' },
];
// ─── Registration Status Labels ───────────────────────────────────────────────
const REG_STATUSES = new Map([
[0, _('No Registration')],
[2, _('Searching')], [8, _('Searching')],
[3, _('Denied')],
[4, _('Unknown')],
[5, _('Roaming')], [7, _('Roaming')], [10, _('Roaming')],
]);
// ─── Progress bar configuration ───────────────────────────────────────────────
// calc(vn, mn): vn = clamped signal value, mn = min boundary
// All formulas normalise the value to 0–100% range for the progress bar.
const PROGRESS_CONFIG = {
rssi: {
selector: '#rssi',
min: -110, max: -50,
// Linear map from [-110..-50] → [0..100]
calc: (vn, mn) => Math.floor(100 * (1 - (-50 - vn) / (-50 - mn))),
},
rsrp: {
selector: '#rsrp',
min: -140, max: -50,
// Slightly expanded scale (×1.2) to better use bar width
calc: (vn, mn) => Math.floor(120 * (1 - (-50 - vn) / (-70 - mn))),
},
sinr: {
selector: '#sinr',
min: -20, max: 30,
// Linear map from [-20..30] → [0..100]
calc: (vn, mn) => Math.floor(100 - (100 * (1 - ((mn - vn) / (mn - 30))))),
},
rsrq: {
selector: '#rsrq',
min: -20, max: 0,
// Proportional map from [-20..0] → [0..100]
calc: (vn, mn) => Math.floor(115 - (100 / mn) * vn),
},
ecio: {
selector: '#sinr',
min: -24, max: 0,
// Same shape as rsrq but for EC/IO range [-24..0]
calc: (vn, mn) => Math.floor(100 - (100 / mn) * vn),
},
};
// ─── LTE EARFCN → band/frequency table ───────────────────────────────────────
const LTE_BANDS = [
{ min: 0, max: 599, frdl: 2110, frul: 1920, offset: 0, band: '1' },
{ min: 600, max: 1199, frdl: 1930, frul: 1850, offset: 600, band: '2' },
{ min: 1200, max: 1949, frdl: 1805, frul: 1710, offset: 1200, band: '3' },
{ min: 1950, max: 2399, frdl: 2110, frul: 1710, offset: 1950, band: '4' },
{ min: 2400, max: 2469, frdl: 869, frul: 824, offset: 2400, band: '5' },
{ min: 2750, max: 3449, frdl: 2620, frul: 2500, offset: 2750, band: '7' },
{ min: 3450, max: 3799, frdl: 925, frul: 880, offset: 3450, band: '8' },
{ min: 6150, max: 6449, frdl: 791, frul: 832, offset: 6150, band: '20' },
{ min: 9210, max: 9659, frdl: 758, frul: 703, offset: 9210, band: '28' },
{ min: 9870, max: 9919, frdl: 452.5, frul: 462.5, offset: 9870, band: '31' },
{ min: 37750, max: 38249, frdl: 2570, frul: 2570, offset: 37750, band: '38' },
{ min: 38650, max: 39649, frdl: 2300, frul: 2300, offset: 38650, band: '40' },
{ min: 39650, max: 41589, frdl: 2496, frul: 2496, offset: 39650, band: '41' },
];
// ─── Non-LTE (UMTS/GSM) ARFCN → band/frequency table ─────────────────────────
const NON_LTE_BANDS = [
{
condition: rfcn => rfcn >= 10562 && rfcn <= 10838,
calc: rfcn => ({ offset: 950, dlfreq: rfcn / 5, ulfreq: (rfcn - 950) / 5, band: 'IMT2100' }),
},
{
condition: rfcn => rfcn >= 2937 && rfcn <= 3088,
calc: rfcn => ({ frul: 925, ulfreq: 340 + (rfcn / 5), dlfreq: (340 + (rfcn / 5)) - 45, band: 'UMTS900' }),
},
{
condition: rfcn => rfcn >= 955 && rfcn <= 1023,
calc: rfcn => ({ frul: 890, ulfreq: 890 + ((rfcn - 1024) / 5), dlfreq: (890 + ((rfcn - 1024) / 5)) + 45, band: 'DSC900' }),
},
{
condition: rfcn => rfcn >= 512 && rfcn <= 885,
calc: rfcn => ({ frul: 1710, ulfreq: 1710 + ((rfcn - 512) / 5), dlfreq: (1710 + ((rfcn - 512) / 5)) + 95, band: 'DCS1800' }),
},
{
condition: rfcn => rfcn >= 1 && rfcn <= 124,
calc: rfcn => ({ frul: 890, ulfreq: 890 + (rfcn / 5), dlfreq: (890 + (rfcn / 5)) + 45, band: 'GSM900' }),
},
];
const UMTS_MODES = /(HS|3G|UMTS|WCDMA)/i;
// ─── Helpers ──────────────────────────────────────────────────────────────────
/**
* Safe getElementById wrapper.
* @param {string} id
* @returns {HTMLElement|null}
*/
function getEl(id) {
return document.getElementById(id);
}
/**
* Show or hide the grandparent row of a signal element.
* @param {HTMLElement} el
* @param {boolean} show
*/
function setRowVisible(el, show) {
const row = el && el.parentElement && el.parentElement.parentElement;
if (row) row.style.display = show ? '' : 'none';
}
/**
* Update a cbi-progressbar element.
* @param {string} type - Key in PROGRESS_CONFIG
* @param {string} value - Raw signal value string (e.g. "-85 dBm")
* @param {number} max - Boundary value (passed as second calc argument)
* @param {number} idx - Modem index suffix for the element id
*/
function updateProgressBar(type, value, max, idx) {
const config = PROGRESS_CONFIG[type];
if (!config) return;
const pg = document.querySelector(`${config.selector}${idx}`);
if (!pg) return;
const vn = Math.max(config.min, Math.min(config.max, parseInt(value) || 0));
const mn = parseInt(max) || 100;
const pc = Math.min(100, Math.max(0, config.calc(vn, mn)));
pg.firstElementChild.style.width = `${pc}%`;
pg.firstElementChild.style.animationDirection = 'reverse';
pg.setAttribute('title', String(value));
}
/**
* Format distance string, returns empty string when unavailable.
* @param {string|number} dist
* @returns {string}
*/
function formatDistance(dist) {
if (!dist || dist === '--' || dist === '' || dist === '0.00') return '';
return ' ~' + dist + ' km';
}
/**
* Build the operator status badge HTML safely using LuCI E() helper.
* @param {Object} modem - Single modem entry from JSON
* @param {string} icon - URL to signal icon
* @param {string} reg - Human-readable registration status
* @returns {string} - Safe innerHTML string via dom.content
*/
function formatModemStatus(modem, icon, reg) {
const rg = parseInt(modem.reg) || 0;
const p = modem.csq_per || 0;
const cops = modem.cops || '--';
const color = modem.csq_col || '#000000';
const distanceText = formatDistance(modem.distance);
const iconEl = icon ? E('img', { 'class': 'modem-signal-icon', 'src': icon }) : null;
const boldEl = E('b', { 'style': `color:${color}` }, [`${p}%`]);
const children = iconEl
? [cops + ' ', iconEl, ' ', boldEl, distanceText]
: [cops + ' ', boldEl, distanceText];
if (REGISTERED_STATUSES.includes(rg)) {
return E('span', { 'class': 'ifacebadge' }, children).outerHTML;
} else if (ROAMING_STATUSES.includes(rg)) {
return E('span', { 'class': 'ifacebadge' }, [`${cops} (${reg}) `, ...(iconEl ? [iconEl, ' '] : []), boldEl, distanceText]).outerHTML;
} else {
return E('span', { 'class': 'ifacebadge' }, [reg || '--']).outerHTML;
}
}
/**
* Derive signal icon URL from signal percentage.
* @param {number} pct
* @returns {string}
*/
function resolveSignalIcon(pct) {
const { icn } = SIGNAL_ICONS.find(({ max }) => pct <= max) || SIGNAL_ICONS[SIGNAL_ICONS.length - 1];
return L.resource(`view/modem/icons/${icn}`);
}
/**
* Calculate DL/UL frequencies and band name for LTE mode.
* @param {number} rfcn
* @returns {{ dlfreq: number, ulfreq: number, band: string, frdl: number, frul: number, offset: number }}
*/
function calcLteBand(rfcn) {
const b = LTE_BANDS.find(b => rfcn >= b.min && rfcn <= b.max);
if (!b) return { frdl: 0, frul: 0, offset: 0, band: String(rfcn), dlfreq: 0, ulfreq: 0 };
const dlfreq = b.frdl + (rfcn - b.offset) / 10;
const ulfreq = b.frul + (rfcn - b.offset) / 10;
return { ...b, dlfreq, ulfreq };
}
/**
* Calculate DL/UL frequencies and band name for non-LTE modes.
* @param {number} rfcn
* @returns {{ dlfreq: number, ulfreq: number, band: string }}
*/
function calcNonLteBand(rfcn) {
const match = NON_LTE_BANDS.find(b => b.condition(rfcn));
return match ? match.calc(rfcn) : { ulfreq: 0, dlfreq: 0, band: String(rfcn) };
}
/**
* Build a LAC/CID/eNB/Cell/PCI label and value string.
* @param {Object} modem - Single modem entry
* @returns {{ namecid: string, lactac: string }}
*/
function buildCellId(modem) {
const { enbid, cell, pci, lac, cid } = modem;
const parts = [lac, cid];
let namecid = 'LAC/CID';
if (enbid) {
parts.push(enbid);
namecid += '/eNB ID';
if (cell) {
parts.push(cell);
namecid += '/Cell';
if (pci) {
parts.push(pci);
namecid += '/PCI';
}
}
}
const lactac = parts.join(' / ');
return { namecid, lactac };
}
/**
* Derive mode-specific labels and carrier aggregation info.
* @param {Object} modem - Single modem entry
* @param {string} netmode
* @param {string} band
* @param {number} bw
* @returns {{ carrier, bcc, bca, bwDisplay, namech, namesnr, namecid, lactac, namebnd }}
*/
function buildModeInfo(modem, netmode, band, bw) {
let carrier = '';
let bcc, bca, bwDisplay, namech, namesnr, namecid, lactac;
if (netmode === 'LTE') {
const calte = modem.lteca;
namech = 'EARFCN';
namesnr = 'SINR';
if (calte > 0) {
carrier = '+';
bwDisplay = modem.bwca;
bcc = ` B${band}${modem.scc}`;
bca = bwDisplay ? ` / ${bwDisplay} MHz` : '';
} else {
bwDisplay = bw;
bcc = ` B${band}`;
bca = bw ? ` / ${bw} MHz` : '';
}
const cellInfo = buildCellId(modem);
namecid = cellInfo.namecid;
lactac = cellInfo.lactac;
} else if (UMTS_MODES.test(netmode)) {
namech = 'UARFCN';
namesnr = 'ECIO';
namecid = 'LAC/CID';
lactac = `${modem.lac} / ${modem.cid}`;
bcc = ` ${band}`;
} else {
namech = 'ARFCN';
namesnr = 'SINR/ECIO';
namecid = 'LAC/CID';
lactac = `${modem.lac} / ${modem.cid}`;
bcc = ` ${band}`;
}
const namebnd = bw
? _('Network/Band/Bandwidth')
: _('Network/Band');
return { carrier, bcc, bca: bca || '', bwDisplay, namech, namesnr, namecid, lactac, namebnd };
}
/**
* Set textContent of element by id (if it exists).
* @param {string} id
* @param {string} text
*/
function setText(id, text) {
const el = getEl(id);
if (el) el.textContent = text;
}
/**
* Set innerHTML of element by id (if it exists).
* @param {string} id
* @param {string} html
*/
function setHtml(id, html) {
const el = getEl(id);
if (el) el.innerHTML = html;
}
/**
* Update a signal progress bar, hiding its parent row if value is missing.
* @param {string} elId - Element id (without modem index)
* @param {number} idx - Modem index
* @param {*} rawVal - Raw value from modem JSON
* @param {string} unit - Unit suffix, e.g. ' dBm'
* @param {string} type - Key in PROGRESS_CONFIG
* @param {number} boundary
*/
function updateSignalBar(elId, idx, rawVal, unit, type, boundary) {
const el = getEl(elId + idx);
if (!el) return;
const missing = !rawVal || rawVal === '--' || rawVal === '';
setRowVisible(el, !missing);
if (!missing) {
updateProgressBar(type, rawVal + unit, boundary, idx);
}
}
// ─── Main view ────────────────────────────────────────────────────────────────
return view.extend({
load: function() {
return L.resolveDefault(fs.exec_direct('/usr/bin/modeminfo'), '{"modem": []}');
},
polldata: poll.add(function() {
return L.resolveDefault(fs.exec_direct('/usr/bin/modeminfo'), '{"modem": []}')
.then(function(res) {
let json;
try {
json = JSON.parse(res);
} catch (e) {
console.error('modeminfo: JSON parse error', e);
return;
}
if (!json || !Array.isArray(json.modem)) return;
for (let i = 0; i < json.modem.length; i++) {
const modem = json.modem[i];
const netmode = modem.mode || '';
const rfcn = modem.arfcn || 0;
// ── Band / Frequency ────────────────────────────────────
let dlfreq, ulfreq, band, bw;
if (netmode === 'LTE') {
({ dlfreq, ulfreq, band } = calcLteBand(rfcn));
const bandwidths = [1.4, 3, 5, 10, 15, 20];
bw = bandwidths[modem.bwdl] || '';
} else {
({ dlfreq, ulfreq, band } = calcNonLteBand(rfcn));
bw = '';
}
const arfcnStr = `${rfcn} (${dlfreq} / ${ulfreq} MHz)`;
// ── Registration ────────────────────────────────────────
const rg = Number(modem.reg);
const reg = REG_STATUSES.get(rg) || _('No Data');
// ── Signal icon ─────────────────────────────────────────
const icon = resolveSignalIcon(modem.csq_per || 0);
// ── Mode-specific labels ────────────────────────────────
const { carrier, bcc, bca, namech, namesnr, namecid, lactac, namebnd } =
buildModeInfo(modem, netmode, band, bw);
// ── DOM updates ─────────────────────────────────────────
setHtml('status' + i, formatModemStatus(modem, icon, reg));
const modeEl = getEl('mode' + i);
if (modeEl) {
// FIX: was `signal = 0` (assignment), must be `=== 0`
if (modem.signal === 0 || modem.signal === '' || !netmode) {
modeEl.textContent = '--';
} else {
modeEl.textContent = `${netmode}${carrier} /${bcc}${bca}`;
}
}
setText('namebnd' + i, namebnd);
setText('chname' + i, namech);
setText('namecid' + i, namecid);
setText('snrname' + i, namesnr);
setHtml('arfcn' + i, arfcnStr);
setHtml('lac' + i, lactac);
// ── Progress bars ───────────────────────────────────────
// RSSI always visible if element exists
if (getEl('rssi' + i)) {
if (!modem.rssi || modem.rssi === '') {
setText('rssi' + i, '--');
} else {
updateProgressBar('rssi', modem.rssi + ' dBm', -110, i);
}
}
// SINR / ECIO (shared element, hidden when unavailable)
updateSignalBar(
'sinr', i, modem.sinr, ' dB',
netmode === 'LTE' ? 'sinr' : 'ecio',
netmode === 'LTE' ? -20 : -24
);
// RSRP (hidden when unavailable)
updateSignalBar('rsrp', i, modem.rsrp, ' dBm', 'rsrp', -140);
// RSRQ (hidden when unavailable)
updateSignalBar('rsrq', i, modem.rsrq, ' dB', 'rsrq', -20);
}
});
}),
render: function(data) {
let json;
try {
json = JSON.parse(data);
} catch (e) {
json = { modem: [] };
}
const m = new form.Map('modeminfo', _('Modeminfo: Network'), _('Cellular network'));
const s = m.section(form.TypedSection, 'general', null);
s.anonymous = true;
for (let i = 0; i < json.modem.length; i++) {
const idx = i + 1;
const statusId = 'status' + i;
const modeId = 'mode' + i;
const namebndId= 'namebnd'+ i;
const chnameId = 'chname' + i;
const namecidId= 'namecid'+ i;
const arfcnId = 'arfcn' + i;
const lacId = 'lac' + i;
const rssiId = 'rssi' + i;
const sinrId = 'sinr' + i;
const snrnameId= 'snrname'+ i;
const rsrpId = 'rsrp' + i;
const rsrqId = 'rsrq' + i;
let o;
if (json.modem.length > 1) {
s.tab('modem' + i, _('Modem') + ' ' + idx);
o = s.taboption('modem' + i, form.HiddenValue, 'generic');
} else {
o = s.option(form.HiddenValue, 'generic');
}
o.render = L.bind(function() {
return E('div', {}, [
E('h3', { 'class': 'data-tab' }),
E('div', { 'class': 'cbi-section' }, [
E('table', { 'class': 'table' }, [
E('tr', { 'class': 'tr cbi-rowstyle-2' }, [
E('td', { 'class': 'td left', 'width': '50%' }, [_('Operator')]),
E('td', { 'class': 'td left', 'id': statusId }, ['--']),
]),
E('tr', { 'class': 'tr cbi-rowstyle-1' }, [
E('td', { 'class': 'td left', 'width': '50%', 'id': namebndId }, [_('Network/Band')]),
E('td', { 'class': 'td left', 'id': modeId }, ['--']),
]),
E('tr', { 'class': 'tr cbi-rowstyle-2' }, [
E('td', { 'class': 'td left', 'width': '50%', 'id': chnameId }, [_('E/U/ARFCN')]),
E('td', { 'class': 'td left', 'id': arfcnId }, ['--']),
]),
E('tr', { 'class': 'tr cbi-rowstyle-1' }, [
E('td', { 'class': 'td left', 'width': '50%', 'id': namecidId }, [_('LAC/CID')]),
E('td', { 'class': 'td left', 'id': lacId }, ['--']),
]),
E('tr', { 'class': 'tr cbi-rowstyle-2' }, [
E('td', { 'class': 'td left', 'width': '50%' }, [_('RSSI')]),
E('td', { 'class': 'td left' },
E('div', { 'id': rssiId, 'class': 'cbi-progressbar', 'title': '--' }, E('div'))
),
]),
E('tr', { 'class': 'tr cbi-rowstyle-1' }, [
E('td', { 'class': 'td left', 'width': '50%', 'id': snrnameId }, [_('SINR/EcIO')]),
E('td', { 'class': 'td left' },
E('div', { 'id': sinrId, 'class': 'cbi-progressbar', 'title': '--' }, E('div'))
),
]),
E('tr', { 'class': 'tr cbi-rowstyle-2' }, [
E('td', { 'class': 'td left', 'width': '50%' }, [_('RSRP')]),
E('td', { 'class': 'td left' },
E('div', { 'id': rsrpId, 'class': 'cbi-progressbar', 'title': '--' }, E('div'))
),
]),
E('tr', { 'class': 'tr cbi-rowstyle-1' }, [
E('td', { 'class': 'td left', 'width': '50%' }, [_('RSRQ')]),
E('td', { 'class': 'td left' },
E('div', { 'id': rsrqId, 'class': 'cbi-progressbar', 'title': '--' }, E('div'))
),
]),
])
])
]);
}, this.polldata);
o.anonymous = true;
o.rmempty = true;
}
return m.render();
},
handleSaveApply: null,
handleSave: null,
handleReset: null,
});
================================================
FILE: luci/applications/luci-app-modeminfo/htdocs/luci-static/resources/view/modem/setup.js
================================================
'use strict';
'require form';
'require rpc';
'require fs';
'require view';
'require uci';
'require ui';
'require tools.widgets as widgets'
/*
Written by Konstantine Shevlakov at <shevlakov@132lan.ru> 2023 - 2026
Licensed to the GNU General Public License v3.0.
*/
var callSerialPort = rpc.declare({
object: 'file',
method: 'list',
params: [ 'path' ],
expect: { entries: [] },
filter: function(list, params) {
var rv = [];
for (var i = 0; i < list.length; i++)
if (list[i].name.match(/^ttyACM/) ||
list[i].name.match(/^ttyUSB/) ||
list[i].name.match(/^wwan\d+at\d+/))
rv.push(params.path + list[i].name);
return rv.sort((a, b) => a.name > b.name);
}
});
var callQMIPort = rpc.declare({
object: 'file',
method: 'list',
params: [ 'path' ],
expect: { entries: [] },
filter: function(list, params) {
var rv = [];
for (var i = 0; i < list.length; i++)
if (list[i].name.match(/^cdc-wdm/))
rv.push(params.path + list[i].name);
return rv.sort();
}
});
var callCheckQmiinfo = rpc.declare({
object: 'file',
method: 'stat',
params: [ 'path' ],
expect: { '': {} }
});
var maindesc = _('Modeminfo: Configuration');
var mdesc = _('Configuration panel of Modeminfo.');
var qfdesc = _('Get modem data via qmi. Require install qminfo.');
var sdesc = _('Select serial port.');
var qdesc = _('Select qmi port.');
var lacdec = _('Show LAC and CID in decimal.');
var mmdesc = _('Get device hardware name via mmcli utility if aviable.');
var qmidesc = _('Set qmi mode.');
var idesc = _('Show short info.<br />Overview: show info on main page \"Cellular Network\" section<br />MenuBar: show info on menubar all pages<br />NOTICE: Don\'t add too many modems in menubar, it may break the theme display.');
var portplace = _('Please select a port');
return view.extend({
load: function() {
return callCheckQmiinfo('/usr/bin/qminfo')
.then(function(stat) {
return (stat && stat.size != null);
})
.catch(function() {
return false;
});
},
render: function(qmiinfoInstalled){
var qfdesc = qmiinfoInstalled
? _('Get modem data via qmi.')
: _('Please install qminfo package.');
var m, s, o;
m = new form.Map('modeminfo', maindesc, mdesc);
s = m.section(form.TypedSection, 'general', _('General option'), null);
s.anonymous = true;
o = s.option(form.ListValue, 'index', _('Short info'), idesc);
o.widget="radio";
o.value(0,_('none'));
o.value(1,_('overview'));
o.value(2,_('menubar'));
o.default = '0';
o.rmempty = true;
o = s.option(form.Flag, 'decimail', _('Show decimal'), lacdec);
o.rmempty = true;
o = s.option(form.ListValue, 'delay', _('Interval'), _('Poll interval data'));
o.value('', _('none'));
o.value('1', '1 '+_('sec'));
o.value('2', '2 '+_('sec'));
o.value('5', '5 '+_('sec'));
o.value('10', '10 '+_('sec'));
o.value('30', '30 '+_('sec'));
s = m.section(form.TypedSection, 'modeminfo', _('Devices setup'), null);
s.anonymous = true;
s.addremove = true;
o = s.option(form.Flag, 'qmi_mode', _('Use QMI'), qfdesc);
o.rmempty = true;
if (!qmiinfoInstalled) {
o.readonly = true;
o.write = function() {};
o.cfgvalue = function() { return '0'; };
}
o = s.option(form.ListValue, 'device', _('Data port'), sdesc);
o.load = function(section_id) {
return callSerialPort('/dev/').then(L.bind(function(devices) {
this.keylist = [];
this.vallist = [];
devices.reverse().forEach(device => this.value(device));
return form.Value.prototype.load.apply(this, [section_id]);
}, this));
};
o.placeholder = portplace;
o.rmempty = true;
o.depends('qmi_mode', '0');
o = s.option(form.ListValue, 'device_qmi', _('Data port'), qdesc);
o.load = function(section_id) {
return callQMIPort('/dev/').then(L.bind(function(devices) {
this.keylist = [];
this.vallist = [];
for (var i = 0; i < devices.length; i++)
this.value(devices[i]);
return form.Value.prototype.load.apply(this, [section_id]);
}, this));
};
o.placeholder = portplace;
o.rmempty = true;
o.depends('qmi_mode', '1');
o = s.option(form.Flag, 'mmcli_name', _('Name via mmcli'), mmdesc);
o.rmempty = true;
o.depends('qmi_mode', '0');
o = s.option(form.ListValue, 'qmi_trap', _('QMI mode'), qmidesc);
o.value('',_('Auto'));
o.value('qmi',_('Direct QMI'));
o.value('mbim',_('QMI over MBIM'));
o.rmempty = true;
o.depends('qmi_mode', '1');
return m.render();
}
});
================================================
FILE: luci/applications/luci-app-modeminfo/htdocs/luci-static/resources/view/status/include/26_modeminfo.js
================================================
'use strict';
'require baseclass';
'require form';
'require fs';
'require ui';
'require uci';
/*
Written by Konstantine Shevlakov at <shevlakov@132lan.ru> 2023
Licensed to the GNU General Public License v3.0.
Special Thanks to Vladislav Kadulin aka @Kodo-kakaku
https://github.com/Kodo-kakaku/ to fix update overview page
*/
return baseclass.extend({
title: _('Cellular network'),
load: async function() {
await uci.load('modeminfo');
var index = uci.sections('modeminfo', 'general');
if (!index || !index[0] || index[0].index !== "1") {
return null;
};
return new Promise((resolve, reject) => {
const timeout = setTimeout(() => {
reject(new Error('Timeout: modeminfo execution took too long'));
}, 30000); // 30 sec timeout
fs.exec_direct('/usr/bin/modeminfo')
.then(result => {
clearTimeout(timeout);
resolve(result);
})
.catch(error => {
clearTimeout(timeout);
reject(error);
});
}).catch(error => {
console.error('Error loading modeminfo:', error);
return '';
});
},
render: function(data){
if (!data || data.trim() === '') {
var index = uci.sections('modeminfo', 'general');
if (!index || !index[0] || index[0].index !== "1") {
return null;
} else {
return E('div', {
'class': 'cbi-section',
'style': 'color: #999; text-align: center;'
}, _('Wait devices information'));
}
}
try {
var json = JSON.parse(data);
var index = uci.sections('modeminfo', 'general');
let modemTBL = E('div', { 'class': 'cbi-section' });
if (json.modem && index[0].index == "1"){
for (var i = 0; i < json.modem.length; i++) {
var signal = document.createElement('div');
var icn;
var signalIcons = [
{ max: -1, icn: 'signal-000-000.svg' },
{ max: 0, icn: 'signal-000-000.svg' },
{ max: 10, icn: 'signal-000-000.svg' },
{ max: 25, icn: 'signal-000-025.svg' },
{ max: 50, icn: 'signal-025-050.svg' },
{ max: 75, icn: 'signal-050-075.svg' },
{ max: Infinity, icn: 'signal-075-100.svg' }
];
var p = json.modem[i].csq_per || 0;
var { icn } = signalIcons.find(({ max }) => p <= max);
var icon = L.resource(`view/modem/icons/${icn}`);
var per = p+'%';
var ca;
if (json.modem[i].lteca > 0) {
ca = "+";
} else {
ca = "";
}
signal.innerHTML = String.format(
'<span class="ifacebadge">' + json.modem[i].cops + " " +
'<img src="%s"/><b>'+per.fontcolor(json.modem[i].csq_col) + "</b> " +
json.modem[i].mode+ca + '</span>', icon, p );
modemTBL.append(
E('table', { 'class': 'table' }, [
E('tr', { 'class': 'tr' }, [
E('td', { 'class': 'td left', 'width': '33%' }, [ json.modem[i].device ]),
E('td', { 'class': 'td left', 'id': 'device' }, [ signal ])
])
])
);
};
return modemTBL;
};
} catch (error) {
console.error('Error parsing modeminfo data:', error);
return E('div', {
'class': 'cbi-section',
'style': 'color: #999; text-align: center;'
}, _('Error loading information'));
}
},
});
================================================
FILE: luci/applications/luci-app-modeminfo/po/ru/modeminfo.po
================================================
"Language: ru\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Last-Translator: Konstantine Shevlyakov <shevlakov@132lan.ru>\n"
msgid "Modem"
msgstr "Модем"
msgid "Modeminfo"
msgstr "Модеминфо"
msgid "Network"
msgstr "Сеть"
msgid "Hardware"
msgstr "Оборудование"
msgid "Setup"
msgstr "Настройка"
msgid "Modeminfo: Network"
msgstr "Модеминфо: Сеть"
msgid "No Registration"
msgstr "Нет регистрации"
msgid "Registered"
msgstr "Зарегистрирован"
msgid "Searching"
msgstr "Поиск сети"
msgid "Denied"
msgstr "Запрет регистрации"
msgid "Unknown"
msgstr "Неизвестно"
msgid "Roaming"
msgstr "Гостевая сеть"
msgid "No Data"
msgstr "Нет данных"
msgid "Network/Band/Bandwidth"
msgstr "Сеть/Диапазон/Полоса"
msgid "Network/Band"
msgstr "Сеть/Диапазон"
msgid "Cellular network"
msgstr "Сотовая сеть"
msgid "Operator"
msgstr "Оператор"
msgid "Status"
msgstr "Состояние"
msgid "Modeminfo: Hardware"
msgstr "Модеминфо: Устройство"
msgid "Hardware and sim-card info."
msgstr "Информация о модеме и сим-карте"
msgid "Device"
msgstr "Устройство"
msgid "Firmware"
msgstr "Встроенное ПО"
msgid "Chiptemp"
msgstr "Температура"
msgid "In automatic mode detect first answered DATA port."
msgstr "В автоматическом режиме находит первый отвечающий порт данных."
msgid "Please select a port"
msgstr "Пожалуйста выберите порт"
msgid "Modeminfo: Configuration"
msgstr "Модеминфо: Конфигурация"
msgid "Configuration panel of Modeminfo."
msgstr "Страница конфигурации Modeminfo."
msgid "Use QMI"
msgstr "Использовать QMI"
msgid "Get modem data via qmi. Require install qminfo."
msgstr "Получать данные модема через qmi. Требуется установленный qminfo."
msgid "Get modem data via qmi."
msgstr "Получать данные модема через qmi."
msgid "Please install qminfo package."
msgstr "Установите пакет qminfo."
msgid "Data port"
msgstr "Порт данных"
msgid "Select serial port."
msgstr "Выберите последовательный порт."
msgid "Select qmi port."
msgstr "Выберите порт qmi."
msgid "Show decimal"
msgstr "Показать в десятичных"
msgid "Show LAC and CID in decimal."
msgstr "Показать LAC и CID соты в десятичных."
msgid "Get device hardware name via mmcli utility if aviable."
msgstr "Если доступно, использовать утилиту mmcli для имени модема."
msgid "Name via mmcli"
msgstr "Имя модема через mmcli"
msgid "QMI mode"
msgstr "Режим QMI"
msgid "Set qmi mode."
msgstr "Задействовать режим QMI."
msgid "Auto"
msgstr "Автоматически"
msgid "Direct QMI"
msgstr "Только QMI"
msgid "QMI over MBIM"
msgstr "QMI через MBIM"
msgid "Short info"
msgstr "Краткая информация"
msgid "Show short info.<br />Overview: show info on main page \"Cellular Network\" section<br />MenuBar: show info on menubar all pages<br />NOTICE: Don\'t add too many modems in menubar, it may break the theme display."
msgstr "Показвать краткую информацию<br />На главной: показывать главной странице раздел \"Сотовая сеть\"<br />Меню: показывать в строке меню на всех страницах<br />ВНИМАНИЕ: не добавляйте слишком много устройств в строку меню, это может сломать отображение."
msgid "overview"
msgstr "на главной"
msgid "menubar"
msgstr "в строке меню"
msgid "sec"
msgstr "сек"
msgid "none"
msgstr "нет"
msgid "Interval"
msgstr "Интервал"
msgid "Poll interval data"
msgstr "Интервал обновления данных"
msgid "General option"
msgstr "Общие настройки"
msgid "Devices setup"
msgstr "Настройки устройств"
msgid "Wait devices information"
msgstr "Ожидание ответа от устройств"
msgid "Error loading information"
msgstr "Получение данных завершилось ошибкой"
================================================
FILE: luci/applications/luci-app-modeminfo/po/zh_Hans/modeminfo.po
================================================
msgid ""
msgstr "Content-Type: text/plain; charset=UTF-8"
msgid "Modem"
msgstr "移动网络"
msgid "Modeminfo"
msgstr "调制解调器信息"
msgid "Network"
msgstr "网络"
msgid "China Mobile"
msgstr "中国移动"
msgid "China Unicom"
msgstr "中国联通"
msgid "China Telecom"
msgstr "中国电信"
msgid "Hardware"
msgstr "硬件"
msgid "Setup"
msgstr "设置"
msgid "Modeminfo: Network"
msgstr "调制解调器信息: 网络"
msgid "No Registration"
msgstr "未注册"
msgid "Registered"
msgstr "已注册"
msgid "Searching"
msgstr "搜索中"
msgid "Denied"
msgstr "禁止注册"
msgid "Unknown"
msgstr "未知"
msgid "Roaming"
msgstr "漫游"
msgid "No Data"
msgstr "无数据"
msgid "Network/Band/Bandwidth"
msgstr "网络/频段/带宽"
msgid "Network/Band"
msgstr "网络/频段"
msgid "Cellular network"
msgstr "蜂窝网络"
msgid "Operator"
msgstr "运营商"
msgid "Status"
msgstr "状态"
msgid "Modeminfo: Hardware"
msgstr "调制解调器信息: 硬件"
msgid "Hardware and sim card info."
msgstr "硬件和sim卡信息。"
msgid "Device"
msgstr "设备"
msgid "Firmware"
msgstr "固件"
msgid "Chiptemp"
msgstr "芯片温度"
msgid "In automatic mode detect first answered DATA port."
msgstr "在自动模式下,检测第一个应答的DATA端口。"
msgid "Please select a port"
msgstr "请选择端口"
msgid "Modeminfo: Configuration"
msgstr "调制解调器信息:配置"
msgid "Configuration panel of Modeminfo."
msgstr "调制解调器信息配置面板。"
msgid "Use QMI"
msgstr "使用 QMI"
msgid "Get modem data via qmicli (experimental). Require install qmi-utils."
msgstr "通过qmicli获取调制解调器数据(实验)。需要安装qmi utils。"
msgid "Data port"
msgstr "数据端口"
msgid "Select serial port."
msgstr "选择串口。"
msgid "Select qmi port."
msgstr "选择qmi端口。"
msgid "Show decimal"
msgstr "十进制显示"
msgid "Show LAC and CID in decimal."
msgstr "以十进制显示LAC和CID。"
msgid "Get device hardware name via mmcli utility if aviable."
msgstr "如果可用,请通过mmcli 获取设备硬件名称。"
msgid "Name via mmcli"
msgstr "通过mmcli命名"
msgid "QMI proxy"
msgstr "QMI 代理"
msgid "Enable qmi-proxy mode."
msgstr "启用qmi代理模式。"
msgid "Index page"
msgstr "主页显示"
msgid "Short info on Overview page"
msgstr "在概览页面显示简单的信息。"
================================================
FILE: luci/applications/luci-app-modeminfo/root/usr/share/luci/menu.d/luci-app-modeminfo.json
================================================
{
"admin/modem": {
"title": "Modem",
"order": 45,
"action": {
"type": "firstchild",
"recurse": true
}
},
"admin/modem/main": {
"title": "Modeminfo",
"order": 10,
"action": {
"type": "alias",
"path": "admin/modem/main/main"
},
"depends": {
"acl": [ "luci-app-modeminfo" ],
"uci": { "modeminfo": true }
}
},
"admin/modem/main/main": {
"title": "Network",
"order": 51,
"action": {
"type": "view",
"path": "modem/main"
}
},
"admin/modem/main/hw": {
"title": "Hardware",
"order": 52,
"action": {
"type": "view",
"path": "modem/hw"
}
},
"admin/modem/main/config": {
"title": "Setup",
"order": 53,
"action": {
"type": "view",
"path": "modem/setup"
}
}
}
================================================
FILE: luci/applications/luci-app-modeminfo/root/usr/share/rpcd/acl.d/luci-app-modeminfo.json
================================================
{
"luci-app-modeminfo": {
"description": "Grant access to modeminfo configuration",
"read": {
"ubus": {
"file": [ "read" ],
"luci": [ "getConntrackHelpers" ]
},
"file": {
"/usr/bin/modeminfo": [ "exec" ],
"/usr/share/modeminfo/scripts/rmtmp": [ "exec" ],
"/sbin/uci": [ "exec" ]
},
"uci": [ "modeminfo" ]
},
"write": {
"ubus": {
"file": [ "write" ]
},
"uci": [ "modeminfo" ]
}
}
}
================================================
FILE: luci/applications/luci-app-mwan3-ledhelper/Makefile
================================================
include $(TOPDIR)/rules.mk
LUCI_TITLE:=MWAN3 Ledhelper simple webUI
LUCI_DEPENDS:=+luci-app-mwan3 +mwan3-ledhelper
PKG_LICENSE:=GPLv3
PKG_VERSION:=0.0.1
PKG_RELEASE:=3
include $(TOPDIR)/feeds/luci/luci.mk
# call BuildPackage - OpenWrt buildroot signature
================================================
FILE: luci/applications/luci-app-mwan3-ledhelper/htdocs/luci-static/resources/view/mwan3/network/led.js
================================================
'use strict';
'require form';
'require fs';
'require view';
'require uci';
'require rpc';
'require ui';
'require network';
'require tools.widgets as widgets'
var callLEDs = rpc.declare({
object: 'luci',
method: 'getLEDs',
expect: { '': {} }
});
return view.extend({
load: function() {
return Promise.all([
callLEDs(),
L.resolveDefault(fs.list('/www' + L.resource('view/system/led-trigger')), []),
// load config mwan3
fs.read('/etc/config/mwan3').catch(function(err) { return ''; })
]).then(function(data) {
var plugins = data[1];
var mwan3Config = data[2];
var tasks = [];
// parce ifaces mwan3 config
var mwan3Interfaces = [];
if (mwan3Config) {
var lines = mwan3Config.split('\n');
for (var i = 0; i < lines.length; i++) {
var line = lines[i].trim();
var match = line.match(/^config interface '([^']+)'/);
if (match) {
mwan3Interfaces.push(match[1]);
}
}
}
for (var i = 0; i < plugins.length; i++) {
var m = plugins[i].name.match(/^(.+)\.js$/);
if (plugins[i].type != 'file' || m == null)
continue;
tasks.push(L.require('view.system.led-trigger.' + m[1]).then(L.bind(function(name){
return L.resolveDefault(L.require('view.system.led-trigger.' + name)).then(function(form) {
return {
name: name,
form: form,
};
});
}, this, m[1])));
}
return Promise.all(tasks).then(function(plugins) {
var value = {};
value[0] = data[0];
value[1] = plugins;
value[2] = mwan3Interfaces; // add mwan3 iface
return value;
});
});
},
render: function(data) {
var m, s, o, triggers = [];
var leds = data[0];
var mwan3Interfaces = data[2]; // get ifaces from mwan3 config
for (var k in leds)
for (var i = 0; i < leds[k].triggers.length; i++)
triggers[i] = leds[k].triggers[i];
m = new form.Map('mwan3_led', _('MWAN3 Ledhelper'), _('Flash led on link state.'));
s = m.section(form.GridSection, 'led', null);
s.anonymous = false;
s.addremove = true;
// filter NetworkSelect
o = s.option(widgets.NetworkSelect, 'iface', _('Set interface'));
o.exclude = s.section;
o.nocreate = true;
o.optional = true;
// filter interfaces
o.filter = function(section_id, value) {
return mwan3Interfaces.indexOf(value) !== -1;
};
o = s.option(form.ListValue, 'led_on', _('Select LED online'));
Object.keys(leds).sort().forEach(function(name) {
o.value(name);
});
o.value('', _('Exclude'));
o.default = '';
o.rmempty = true;
o = s.option(form.ListValue, 'led_off', _('Select LED offline'));
Object.keys(leds).sort().forEach(function(name) {
o.value(name);
});
o.value('', _('Exclude'));
o.default = '';
o.rmempty = true;
return m.render();
}
});
================================================
FILE: luci/applications/luci-app-mwan3-ledhelper/po/ru/mwan3-ledhelper.po
================================================
"Language: ru\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Last-Translator: Konstantine Shevlakov <shevlakov@132lan.ru>\n"
msgid "Flash led on link state."
msgstr "Индикация светодиодов"
msgid "Name"
msgstr "Имя"
msgid "Set interface"
msgstr "Интерфейс"
msgid "Exclude"
msgstr "Не использовать"
msgid "Select LED online"
msgstr "LED \"в сети\""
msgid "Select LED offline"
msgstr "LED \"вне сети\""
================================================
FILE: luci/applications/luci-app-mwan3-ledhelper/root/usr/share/luci/menu.d/luci-app-mwan3-ledhelper.json
================================================
{
"admin/network/mwan3/led": {
"title": "LED",
"order": 55,
"action": {
"type": "view",
"path": "mwan3/network/led"
}
}
}
================================================
FILE: luci/applications/luci-app-mwan3-ledhelper/root/usr/share/rpcd/acl.d/luci-app-mwan3-ledhelper.json
================================================
{
"luci-app-mwan3-ledhelper": {
"description": "Grant access to MWAN3 LED configuration",
"read": {
"file": {
"/etc/init.d/mwan3": [ "exec" ],
"/etc/config/mwan3": [ "read" ]
},
"cgi-io": [ "exec" ],
"ubus": {
"file": [ "exec" ],
"uci": [ "changes", "get" ]
},
"uci": [ "mwan3_led" ]
},
"write": {
"cgi-io": [ "exec" ],
"ubus": {
"file": [ "exec" ],
"uci": [ "add", "apply", "confirm", "delete", "order", "rename", "set" ]
},
"uci": [ "mwan3_led" ]
}
}
}
================================================
FILE: luci/applications/luci-app-ota/Makefile
================================================
#
# Copyright (C) 2008-2014 The LuCI Team <luci@lists.subsignal.org>
#
# This is free software, licensed under the Apache License, Version 2.0 .
#
include $(TOPDIR)/rules.mk
LUCI_TITLE:=Simple OTA Update for OpenWrt
#LUCI_DEPENDS:= +luci-app-firewall
PKG_LICENSE:=Apache-2.0
PKG_VERSION:=0.0.1
PKG_RELEASE:=3
include $(TOPDIR)/feeds/luci/luci.mk
# call BuildPackage - OpenWrt buildroot signature
================================================
FILE: luci/applications/luci-app-ota/htdocs/luci-static/resources/view/system/ota.js
================================================
'use strict';
'require dom';
'require fs';
'require ui';
'require view';
/*
* OTA Update Application
*/
return view.extend({
load: function() {
return Promise.resolve();
},
checkInitialState: function() {
var self = this;
this.verifyCheckResult().then(function(success) {
if (success) {
// If files already exist, disable Check button
self.checkButton.disabled = true;
// And show information about available update
self.statusDiv.innerHTML = '';
self.statusDiv.appendChild(E('div', {
'class': 'alert-message success'
}, [
E('h3', {}, _('Update Available')),
E('pre', {
'style': 'white-space: pre-wrap; background: #f5f5f5; padding: 10px; border-radius: 3px; color: black;'
}, self.changelog || '')
]));
// Activate Upgrade button
self.upgradeButton.disabled = false;
}
}).catch(function(err) {
// No files, leave Check button active
});
},
render: function() {
var self = this;
// Create control elements
this.checkButton = E('button', {
'class': 'btn cbi-button cbi-button-positive important',
'click': ui.createHandlerFn(this, 'handleCheck')
}, _('Check for Updates'));
this.upgradeButton = E('button', {
'class': 'btn cbi-button cbi-button-negative important',
'disabled': true,
'click': ui.createHandlerFn(this, 'handleUpgrade')
}, _('Upgrade'));
this.statusDiv = E('div', { 'class': 'cbi-section' });
this.progressBar = E('div', {
'style': 'display: none; margin: 10px 0;'
});
// Main layout
var container = E('div', { 'class': 'cbi-map' }, [
E('h2', {}, _('OTA System Update')),
E('div', { 'class': 'cbi-section' }, [
this.checkButton,
' ',
this.upgradeButton
]),
this.progressBar,
this.statusDiv
]);
// Check initial state when page loads
this.checkInitialState();
return container;
},
handleCheck: function() {
var self = this;
this.checkButton.disabled = true;
this.statusDiv.innerHTML = '';
this.statusDiv.appendChild(E('div', {
'class': 'spinner'
}, _('Checking for updates...')));
// Execute update check
return fs.exec('/usr/share/ota.sh', ['check'])
.then(function() {
return self.verifyCheckResult();
})
.then(function(success) {
if (success) {
self.upgradeButton.disabled = false;
self.statusDiv.innerHTML = '';
self.statusDiv.appendChild(E('div', {
'class': 'alert-message success'
}, [
E('h3', {}, _('Update Available')),
E('pre', {
'style': 'white-space: pre-wrap; background: #f5f5f5; padding: 10px; border-radius: 3px; color: black;'
}, self.changelog || '')
]));
} else {
self.statusDiv.innerHTML = '';
self.statusDiv.appendChild(E('div', {
'class': 'alert-message warning'
}, _('No updates available or check failed')));
}
self.checkButton.disabled = false;
})
.catch(function(err) {
self.statusDiv.innerHTML = '';
self.statusDiv.appendChild(E('div', {
'class': 'alert-message error'
}, _('Check failed: ') + (err.message || err)));
self.checkButton.disabled = false;
});
},
verifyCheckResult: function() {
var self = this;
return Promise.all([
fs.stat('/tmp/profiles.json').catch(function() { return null; }),
fs.stat('/tmp/update.lock').catch(function() { return null; }),
fs.read('/tmp/changelog.txt')
.then(function(content) {
self.changelog = content;
return content && content.length > 0;
})
.catch(function() { return false; })
]).then(function(results) {
// Check that all files exist and changelog is not empty
return results[0] !== null &&
results[1] !== null &&
results[2] === true;
});
},
handleUpgrade: function() {
var self = this;
this.upgradeButton.disabled = true;
this.checkButton.disabled = true;
this.progressBar.style.display = 'block';
// Initialize progress bar once
this.progressBar.innerHTML = '';
// Create progress bar title
this.progressTitle = E('div', {
'class': 'cbi-progressbar-title'
}, _('Starting upgrade...'));
this.progressBar.appendChild(this.progressTitle);
// Create progress bar container
this.currentProgressBar = E('div', {
'class': 'cbi-progressbar',
'style': 'margin: 10px 0;'
}, E('div', { 'style': 'width: 0%' }));
this.progressBar.appendChild(this.currentProgressBar);
// First start progress simulation
this.simulateProgressBar();
// Then start update process
return fs.exec('/usr/share/ota.sh', ['upgrade'])
.then(function(result) {
// Wait for progress simulation to complete to 100%
return new Promise(function(resolve) {
var checkCompletion = function() {
if (self.progressInterval) {
setTimeout(checkCompletion, 100);
} else {
resolve(result);
}
};
checkCompletion();
});
})
.then(function(result) {
// Show final message
self.progressBar.style.display = 'none';
self.statusDiv.innerHTML = '';
self.statusDiv.appendChild(E('div', {
'class': 'alert-message warning'
}, _('Download completed successfully! Start upgrade.<br />DO NOT POWER OFF THIS DEVICE!<br />System will be upgrade completed after reboot!')));
self.upgradeButton.disabled = false;
self.checkButton.disabled = false;
})
.catch(function(err) {
// Stop progress simulation on error
if (self.progressInterval) {
clearInterval(self.progressInterval);
self.progressInterval = null;
}
// Check if error is XHR timeout
var errorMessage = err.message || err.toString();
if (errorMessage.includes('XHR request timed out')) {
// For timeout show success message
self.progressBar.style.display = 'none';
self.statusDiv.innerHTML = '';
self.statusDiv.appendChild(E('div', {
'class': 'alert-message warning'
}, _('Download completed successfully! Start upgrade.<br />DO NOT POWER OFF THIS DEVICE!<br />System will be upgrade completed after reboot!')));
} else {
// For other errors show error message
self.progressTitle.textContent = _('Upgrade failed: ') + errorMessage;
self.progressTitle.className = 'cbi-progressbar-title error';
}
self.upgradeButton.disabled = false;
self.checkButton.disabled = false;
});
},
simulateProgressBar: function() {
var self = this;
if (this.progressInterval) {
clearInterval(this.progressInterval);
}
let progress = 0;
this.progressInterval = setInterval(function() {
progress += Math.random() * 10 + 5; // Slowed down simulation
if (progress >= 100) {
progress = 100;
clearInterval(self.progressInterval);
self.progressInterval = null;
self.updateProgressBar(progress, _('Download completed! Prepare upgrade...'));
} else {
self.updateProgressBar(progress, _('Downloading: ') + Math.round(progress) + '%');
}
}, 800); // Increased interval
},
updateProgressBar: function(percent, text) {
if (!this.currentProgressBar || !this.progressTitle) return;
// Update only text and progress, without recreating elements
this.progressTitle.textContent = text;
// Update progress bar as in modem example
var percentValue = Math.min(100, Math.max(0, percent));
this.currentProgressBar.firstElementChild.style.width = percentValue + '%';
// Add animation as in example
this.currentProgressBar.firstElementChild.style.animationDirection = "reverse";
},
handleSaveApply: null,
handleSave: null,
handleReset: null
});
================================================
FILE: luci/applications/luci-app-ota/po/ru/ota.po
================================================
"Language: ru\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Last-Translator: Konstantine Shevlakov <shevlakov@132lan.ru>\n"
msgid "OTA Update"
msgstr "Обновление OTA"
msgid "Update Available"
msgstr "Доступно обновление"
msgid "OTA System Update"
msgstr "Обновление через OTA"
msgid "Check for Updates"
msgstr "Проверить"
msgid "Upgrade"
msgstr "Обновить"
msgid "Checking for updates..."
msgstr "Проверка обновлений..."
msgid "No updates available or check failed"
msgstr "Нет доступных обновлений"
msgid "Check failed: "
msgstr "Неудачно: "
msgid "Download completed successfully! Start upgrade.<br />DO NOT POWER OFF THIS DEVICE!<br />System will be upgrade completed after reboot!"
msgstr "Загрузка обновления завершена. Запущен процесс обновления.<br />НЕ ВЫКЛЮЧАЙТЕ УСТРОЙСТВО!<br />Система будет обновлена после перезагрузки!"
msgid "Upgrade failed: "
msgstr "Обновление прервано: "
msgid "Download completed! Prepare upgrade..."
msgstr "Загрузка выполнена. Подготовка..."
================================================
FILE: luci/applications/luci-app-ota/root/etc/config/ota
================================================
config ota
option url 'https://openwrt.132lan.ru/releases_cell/latest'
================================================
FILE: luci/applications/luci-app-ota/root/usr/share/luci/menu.d/luci-app-ota.json
================================================
{
"admin/system/ota": {
"title": "OTA Update",
"order": 70,
"action": {
"type": "view",
"path": "system/ota"
},
"depends": {
"acl": [ "luci-app-ota" ]
}
}
}
================================================
FILE: luci/applications/luci-app-ota/root/usr/share/ota.sh
================================================
#!/bin/sh
# simple update firmware script for 132lan.ru site
# by Konstantine Shevlakov (c) 2025
# for correct OTA upgrade remote dir must have next iherarchy:
# www_root_dir/
# latest/
# changelog.txt - small note for update.
# targets/
# SoC_family/
# SoC/
# openwrt-${DISTRIB_RELEASE}-${PREFIX1}-${PREFIX2}-${YEAR}${MONTH}-rev${REVNUMBER}*.bin
# (e.g openwrt-24.10.2-4g-lte-202507-rev02-ramips-mt7621-beeline_smartbox-pro-squashfs-sysupgrade.bin)
# profiles.json - list images generated by imagebuilder or buildroot
#
# In local firmware must be included local version in uci-defaults:
# /rom/etc/uci_defaults/fw_rev next body
#
# FW_REV="${YEAR}${MONTH}-rev${REVNUMBER}"
# e.g
# FW_REV="202507-rev01"
#
# config URL Update server stored in
# /etc/config/ota
# config ota
# option url 'https://example.com/latest'
#
#
# example
#
# config ota
# option url 'https://openwrt.132lan.ru/releases_cell/latest'
. /lib/functions.sh
load_config(){
config_get url $1 url
}
config_load ota
config_foreach load_config
URL_BASE=$url
if [ "x${URL_BASE}" = "x" ]; then
exit 0
fi
# Get OpenWrt Release info
[ -f /etc/openwrt_release ] && {
. /etc/openwrt_release
case ${DISTRIB_TARGET} in
*x86*|*armsr*) echo "Current platform ${DISTRIB_TARGET} not supported." && exit 0 ;;
esac
} || {
echo "Unknown OpenWrt release!"
exit 0
}
# Get board info
BOARD=$(jsonfilter -s "$(cat /etc/board.json)" -e '@["model"]["id"]')
# Remove update files
remove_files(){
for f in firmware.bin changelog.txt; do
[ -f /tmp/${f} ] && {
rm -rf /tmp/${f}
}
done
}
case $1 in
check)
if [ ! -f /tmp/update.lock ]; then
echo -e "Check updates from ${URL_BASE}\n"
fi
# Get aviable profiles
! [ -f /tmp/profiles.json ] && {
wget ${URL_BASE}/targets/${DISTRIB_TARGET}/profiles.json -O /tmp/profiles.json > /dev/null 2>&1
}
! [ -f /tmp/profiles.json ] && {
echo "Updates not available from this server."
exit 0
}
# Get changelog
[ -f /tmp/profiles.json ] && {
[ ! -f /tmp/changelog.txt ] && {
wget ${URL_BASE}/changelog.txt -O /tmp/changelog.txt > /dev/null 2>&1
} || {
break
}
} || {
echo "No updates for this board: $BOARD" && remove_files && exit 0
}
;;
esac
# Get available boards
BASE_BOARD=$(jsonfilter -s "$(cat /tmp/profiles.json)" -e '@["profiles"][*]["supported_devices"].*')
# Get available board info
board_stuff(){
IMAGES=$(jsonfilter -s "$(cat /tmp/profiles.json)" -e "@['profiles']['$FW_BOARD']['images'][*]" | grep sysupgrade)
echo $IMAGES | jsonfilter \
-e FILE="$['name']" \
-e SHA256="$['sha256']"
}
#sha256check(){
#}
# stuff
for b in $BASE_BOARD; do
if [ "${b}" = "${BOARD}" ]; then
# modify board name for profiles.json
FW_BOARD=$(echo $BOARD | sed -e 's/\,/_/')
[ -f /tmp/profiles.json ] && {
eval $(board_stuff)
} || {
echo "Failed! Abort update"
remove_files
}
# Get remote revision firmware
FW_REV_EXT=$(echo $FILE | awk -F [-] '{gsub("rev",""); gsub(/\./,"",$2); print $2$5$6}')
# Get local revision firmware
if [ -f /rom/etc/uci-defaults/fw_rev ]; then
. /rom/etc/uci-defaults/fw_rev
VER_LOCAL=$(echo $FW_REV | awk -F [-] '{gsub("rev",""); print $1$2}')
DIGIT_RELEASE=$(echo ${DISTRIB_RELEASE} | awk '{gsub(/\./,""); print $0}')
FW_VER_LOCAL=${DIGIT_RELEASE}${VER_LOCAL}
else
echo "Failed! Abort update"
exit 0
fi
# Firmware upgrade
case $1 in
upgrade)
if [ -f /tmp/update.lock ]; then
echo "Download firmware $FILE"
echo "from $URL_BASE"
wget $URL_BASE/targets/${DISTRIB_TARGET}/$FILE -O /tmp/firmware.bin > /dev/null 2>&1
case $? in
0) echo "Download complete." ;;
*) echo "No updates for this board: $BOARD" && remove_files && exit 0 ;;
esac
# Get local SHA256
SHA256_DL=$(sha256sum /tmp/firmware.bin | awk '{print $1}')
echo -n "Check sha256 sum: "
# Compare remote and download file SHA256
if [ "$SHA256" = "$SHA256_DL" ]; then
echo "OK"
echo "Update process start!"
echo "Device will be rebooted."
echo "DO NOT TURN OFF DEVICE!"
# Test firmware image before flashing
sysupgrade -T /tmp/firmware.bin
case $? in
0) echo "Flashing firmware" ;;
*) echo "Failed! Abort update" && remove_files && exit 0 ;;
esac
rm -rf /tmp/update.lock /tmp/profiles.json /tmp/changelog.txt
# Updrade firmware
sleep 25 && sysupgrade /tmp/firmware.bin &
else
echo "Failed! Abort update."
remove_files && rm -rf /tmp/update.lock /tmp/profiles.json
fi
fi
;;
check)
# Compare firmware versions
if [ $FW_REV_EXT -gt $FW_VER_LOCAL ]; then
echo "New firmware upgrade release!"
echo -e "*** $FILE ***\n"
[ -r /tmp/changelog.txt ] && {
echo -e "RELEASE NOTES:\n"
echo "$(cat /tmp/changelog.txt)"
}
echo ""
echo "Please run script again for download and install update!"
touch /tmp/update.lock
else
echo "Update not found!"
fi
;;
esac
fi
done
#rm -f /tmp/profiles.json /tmp/update.lock /tmp/changelog.txt
================================================
FILE: luci/applications/luci-app-ota/root/usr/share/rpcd/acl.d/luci-app-ota.json
================================================
{
"luci-app-ota": {
"description": "OTA Update access",
"read": {
"file": {
"/usr/share/ota.sh": ["exec"],
"/tmp/changelog.txt": ["read"],
"/tmp/profiles.json": ["read"],
"/tmp/update.lock": ["read"]
}
},
"write": {
"file": {
"/usr/share/ota.sh": ["exec"]
}
}
}
}
================================================
FILE: luci/applications/luci-app-pingcontrol/Makefile
================================================
include $(TOPDIR)/rules.mk
PKG_NAME:=luci-app-pingcontrol
LUCI_DEPENDS:=+pingcontrol
PKG_VERSION:=1
PKG_RELEASE:=3
LUCI_TITLE:=LuCI network interface control
include $(TOPDIR)/feeds/luci/luci.mk
# call BuildPackage - OpenWrt buildroot signature
================================================
FILE: luci/applications/luci-app-pingcontrol/htdocs/luci-static/resources/view/pingcontrol/pingcontrol.js
================================================
'use strict';
'require form';
'require view';
'require uci';
'require rpc';
'require tools.widgets as widgets';
return view.extend({
handleEnableService: rpc.declare({
object: 'luci',
method: 'setInitAction',
params: [ 'pingcontrol', 'enable' ],
expect: { result: false }
}),
render: function() {
var m, s, o;
m = new form.Map('pingcontrol', _('PingControl'));
m.description = _('Server availability check');
s = m.section(form.GridSection, 'pingcontrol', _('Settings'));
s.tab('general', _('General Settings'));
s.tab('commands', _('Commands'));
s.addremove = true;
s.nodescriptions = true;
o = s.taboption('general',form.Flag, 'enabled', _('Enabled'));
o.rmempty = false;
o.write = L.bind(function(section, value) {
if (value == '1') {
this.handleEnableService();
}
return uci.set('pingcontrol', section, 'enabled', value);
}, this);
o = s.taboption('general',widgets.NetworkSelect, 'iface', _('Ping interface'));
o.rmempty = false;
o.textvalue = function(section_id) {
return uci.get('pingcontrol', section_id, 'iface');
}
o = s.taboption('general',form.DynamicList, 'testip', _('IP address or hostname of test servers'));
o.datatype = 'or(hostname,ipaddr("nomask"))';
o = s.taboption('general',form.Flag, 'ping_silent', _('Silent mode'), _('Do not log success ping'));
o = s.taboption('general',form.Value, 'check_period', _('Period of check, sec'));
o.rmempty = false;
o.datatype = 'and(uinteger,min(20))';
o.default = '60';
o = s.taboption('general',form.Value, 'sw_before_modres', _('Failed attempts before iface up/down'), _('0 - not used'));
o.rmempty = false;
o.datatype = 'and(uinteger,min(0),max(100))';
o.default = '3';
o = s.taboption('general',form.Value, 'sw_before_sysres', _('Failed attempts before reboot'), _('0 - not used'));
o.rmempty = false;
o.datatype = 'and(uinteger,min(0),max(100))';
o.default = '0';
o = s.taboption('commands',form.Value, 'ping_ok', _('Successful ping'));
o.modalonly = true;
o = s.taboption('commands',form.Value, 'ping_lost', _('Ping lost'));
o.modalonly = true;
o = s.taboption('commands',form.Value, 'ping_restored', _('Ping restored'));
o.modalonly = true;
o = s.taboption('commands',form.Value, 'before_iface_down', _('Before interface down'));
o.modalonly = true;
o = s.taboption('commands',form.Value, 'after_iface_up', _('After interface up'));
o.modalonly = true;
o = s.taboption('commands',form.Value, 'before_reboot', _('Before reboot'));
o.modalonly = true;
return m.render();
}
});
================================================
FILE: luci/applications/luci-app-pingcontrol/po/en/pingcontrol.po
================================================
msgid "Server availability check"
msgstr "Server availability check"
msgid "Period of check, sec"
msgstr "Period of check, sec"
msgid "Ping interface"
msgstr "Ping interface"
msgid "IP address or hostname of test servers"
msgstr "IP address or hostname of test servers"
msgid "Failed attempts before iface up/down"
msgstr "Failed attempts before iface up/down"
msgid "Failed attempts before reboot"
msgstr "Failed attempts before reboot"
msgid "Configuration name"
msgstr "Configuration name"
================================================
FILE: luci/applications/luci-app-pingcontrol/po/ru/pingcontrol.po
================================================
msgid "Server availability check"
msgstr "Проверка доступности сервера"
msgid "Period of check, sec"
msgstr "Период проверки, сек"
msgid "Ping interface"
msgstr "Интерфейс для ping-запросов"
msgid "IP address or hostname of test servers"
msgstr "IP-адрес или имя хоста тестовых серверов"
msgid "Silent mode"
msgstr "Тихий режим"
msgid "Do not log success ping"
msgstr "Не журналировать успешные попытки"
msgid "Failed attempts before iface up/down"
msgstr "Количество неудачных попыток до переподключения интерфейса"
msgid "Failed attempts before reboot"
msgstr "Количество неудачных попыток до перезагрузки устройства"
msgid "Configuration name"
msgstr "Имя конфигурации"
msgid "Commands"
msgstr "Команды"
msgid "Successful ping"
msgstr "Пинг успешен"
msgid "Ping lost"
msgstr "Пинг потерян"
msgid "Ping restored"
msgstr "Пинг восстановлен"
msgid "Before interface down"
msgstr "Перед отключением интерфейса"
msgid "After interface up"
msgstr "После включения интерфейса"
msgid "Before reboot"
msgstr "Перед перезагрузкой"
================================================
FILE: luci/applications/luci-app-pingcontrol/root/usr/share/luci/menu.d/luci-app-pingcontrol.json
================================================
{
"admin/services/pingcontrol": {
"title": "Pingcontrol",
"action": {
"type": "view",
"path": "pingcontrol/pingcontrol"
},
"depends": {
"acl": [ "luci-app-pingcontrol" ],
"uci": { "pingcontrol": true }
}
}
}
================================================
FILE: luci/applications/luci-app-pingcontrol/root/usr/share/rpcd/acl.d/luci-app-pingcontrol.json
================================================
{
"luci-app-pingcontrol": {
"description": "Grant UCI access for luci-app-pingcontrol",
"read": {
"uci": [ "pingcontrol" ]
},
"write": {
"uci": [ "pingcontrol" ]
}
}
}
================================================
FILE: luci/applications/luci-app-rtorrent/LICENSE
================================================
GNU GENERAL PUBLIC LICENSE
Version 3, 29 June 2007
Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>
Everyone is permitted to copy and distribute verbatim copies
of this license document, but changing it is not allowed.
Preamble
The GNU General Public License is a free, copyleft license for
software and other kinds of works.
The licenses for most software and other practical works are designed
to take away your freedom to share and change the works. By contrast,
the GNU General Public License is intended to guarantee your freedom to
share and change all versions of a program--to make sure it remains free
software for all its users. We, the Free Software Foundation, use the
GNU General Public License for most of our software; it applies also to
any other work released this way by its authors. You can apply it to
your programs, too.
When we speak of free software, we are referring to freedom, not
price. Our General Public Licenses are designed to make sure that you
have the freedom to distribute copies of free software (and charge for
them if you wish), that you receive source code or can get it if you
want it, that you can change the software or use pieces of it in new
free programs, and that you know you can do these things.
To protect your rights, we need to prevent others from denying you
these rights or asking you to surrender the rights. Therefore, you have
certain responsibilities if you distribute copies of the software, or if
you modify it: responsibilities to respect the freedom of others.
For example, if you distribute copies of such a program, whether
gratis or for a fee, you must pass on to the recipients the same
freedoms that you received. You must make sure that they, too, receive
or can get the source code. And you must show them these terms so they
know their rights.
Developers that use the GNU GPL protect your rights with two steps:
(1) assert copyright on the software, and (2) offer you this License
giving you legal permission to copy, distribute and/or modify it.
For the developers' and authors' protection, the GPL clearly explains
that there is no warranty for this free software. For both users' and
authors' sake, the GPL requires that modified versions be marked as
changed, so that their problems will not be attributed erroneously to
authors of previous versions.
Some devices are designed to deny users access to install or run
modified versions of the software inside them, although the manufacturer
can do so. This is fundamentally incompatible with the aim of
protecting users' freedom to change the software. The systematic
pattern of such abuse occurs in the area of products for individuals to
use, which is precisely where it is most unacceptable. Therefore, we
have designed this version of the GPL to prohibit the practice for those
products. If such problems arise substantially in other domains, we
stand ready to extend this provision to those domains in future versions
of the GPL, as needed to protect the freedom of users.
Finally, every program is threatened constantly by software patents.
States should not allow patents to restrict development and use of
software on general-purpose computers, but in those that do, we wish to
avoid the special danger that patents applied to a free program could
make it effectively proprietary. To prevent this, the GPL assures that
patents cannot be used to render the program non-free.
The precise terms and conditions for copying, distribution and
modification follow.
TERMS AND CONDITIONS
0. Definitions.
"This License" refers to version 3 of the GNU General Public License.
"Copyright" also means copyright-like laws that apply to other kinds of
works, such as semiconductor masks.
"Th
gitextract_vn7k3biq/
├── .gitmodules
├── README.md
├── luci/
│ ├── applications/
│ │ ├── luci-app-3proxy/
│ │ │ ├── Makefile
│ │ │ ├── README.md
│ │ │ ├── htdocs/
│ │ │ │ └── luci-static/
│ │ │ │ └── resources/
│ │ │ │ └── view/
│ │ │ │ └── proxy/
│ │ │ │ └── 3proxy.js
│ │ │ ├── po/
│ │ │ │ └── ru/
│ │ │ │ └── 3proxy.po
│ │ │ └── root/
│ │ │ └── usr/
│ │ │ └── share/
│ │ │ ├── luci/
│ │ │ │ └── menu.d/
│ │ │ │ └── luci-app-3proxy.json
│ │ │ └── rpcd/
│ │ │ └── acl.d/
│ │ │ └── luci-app-3proxy.json
│ │ ├── luci-app-atinout/
│ │ │ ├── LICENSE
│ │ │ ├── Makefile
│ │ │ ├── README.md
│ │ │ ├── htdocs/
│ │ │ │ └── luci-static/
│ │ │ │ └── resources/
│ │ │ │ └── view/
│ │ │ │ └── modem/
│ │ │ │ ├── atcommands.js
│ │ │ │ └── atconfig.js
│ │ │ ├── po/
│ │ │ │ ├── ru/
│ │ │ │ │ └── atinout.po
│ │ │ │ ├── template/
│ │ │ │ │ └── atinout.pot
│ │ │ │ └── zh_Hans/
│ │ │ │ └── atinout.po
│ │ │ └── root/
│ │ │ ├── etc/
│ │ │ │ └── uci-defaults/
│ │ │ │ └── 65-luci-app-atinout
│ │ │ └── usr/
│ │ │ ├── bin/
│ │ │ │ └── luci-app-atinout
│ │ │ └── share/
│ │ │ ├── luci/
│ │ │ │ └── menu.d/
│ │ │ │ └── luci-app-atinout.json
│ │ │ └── rpcd/
│ │ │ └── acl.d/
│ │ │ └── luci-app-atinout.json
│ │ ├── luci-app-cellled/
│ │ │ ├── Makefile
│ │ │ ├── htdocs/
│ │ │ │ └── luci-static/
│ │ │ │ └── resources/
│ │ │ │ └── view/
│ │ │ │ └── cellled.js
│ │ │ ├── po/
│ │ │ │ └── ru/
│ │ │ │ └── cellled.po
│ │ │ └── root/
│ │ │ └── usr/
│ │ │ └── share/
│ │ │ ├── luci/
│ │ │ │ └── menu.d/
│ │ │ │ └── luci-app-cellled.json
│ │ │ └── rpcd/
│ │ │ └── acl.d/
│ │ │ └── luci-app-cellled.json
│ │ ├── luci-app-mmconfig/
│ │ │ ├── LICENSE
│ │ │ ├── Makefile
│ │ │ ├── README.md
│ │ │ ├── htdocs/
│ │ │ │ └── luci-static/
│ │ │ │ └── resources/
│ │ │ │ └── view/
│ │ │ │ └── modem/
│ │ │ │ └── bands.js
│ │ │ ├── po/
│ │ │ │ ├── ru/
│ │ │ │ │ └── mmconfig.po
│ │ │ │ └── zh_Hans/
│ │ │ │ └── mmconfig.po
│ │ │ └── root/
│ │ │ ├── etc/
│ │ │ │ ├── config/
│ │ │ │ │ └── mmconfig
│ │ │ │ ├── init.d/
│ │ │ │ │ └── mmconfig
│ │ │ │ └── uci-defaults/
│ │ │ │ └── 70_luci-app-mmconfig
│ │ │ └── usr/
│ │ │ └── share/
│ │ │ ├── luci/
│ │ │ │ └── menu.d/
│ │ │ │ └── luci-app-mmconfig.json
│ │ │ ├── modeminfo/
│ │ │ │ └── mmconfig
│ │ │ └── rpcd/
│ │ │ └── acl.d/
│ │ │ └── luci-app-mmconfig.json
│ │ ├── luci-app-modeminfo/
│ │ │ ├── Makefile
│ │ │ ├── README.md
│ │ │ ├── htdocs/
│ │ │ │ └── luci-static/
│ │ │ │ └── resources/
│ │ │ │ ├── modem-indicator.js
│ │ │ │ ├── preload/
│ │ │ │ │ └── modem-indicator.js
│ │ │ │ └── view/
│ │ │ │ ├── modem/
│ │ │ │ │ ├── hw.js
│ │ │ │ │ ├── main.js
│ │ │ │ │ └── setup.js
│ │ │ │ └── status/
│ │ │ │ └── include/
│ │ │ │ └── 26_modeminfo.js
│ │ │ ├── po/
│ │ │ │ ├── ru/
│ │ │ │ │ └── modeminfo.po
│ │ │ │ └── zh_Hans/
│ │ │ │ └── modeminfo.po
│ │ │ └── root/
│ │ │ └── usr/
│ │ │ └── share/
│ │ │ ├── luci/
│ │ │ │ └── menu.d/
│ │ │ │ └── luci-app-modeminfo.json
│ │ │ └── rpcd/
│ │ │ └── acl.d/
│ │ │ └── luci-app-modeminfo.json
│ │ ├── luci-app-mwan3-ledhelper/
│ │ │ ├── Makefile
│ │ │ ├── htdocs/
│ │ │ │ └── luci-static/
│ │ │ │ └── resources/
│ │ │ │ └── view/
│ │ │ │ └── mwan3/
│ │ │ │ └── network/
│ │ │ │ └── led.js
│ │ │ ├── po/
│ │ │ │ └── ru/
│ │ │ │ └── mwan3-ledhelper.po
│ │ │ └── root/
│ │ │ └── usr/
│ │ │ └── share/
│ │ │ ├── luci/
│ │ │ │ └── menu.d/
│ │ │ │ └── luci-app-mwan3-ledhelper.json
│ │ │ └── rpcd/
│ │ │ └── acl.d/
│ │ │ └── luci-app-mwan3-ledhelper.json
│ │ ├── luci-app-ota/
│ │ │ ├── Makefile
│ │ │ ├── htdocs/
│ │ │ │ └── luci-static/
│ │ │ │ └── resources/
│ │ │ │ └── view/
│ │ │ │ └── system/
│ │ │ │ └── ota.js
│ │ │ ├── po/
│ │ │ │ └── ru/
│ │ │ │ └── ota.po
│ │ │ └── root/
│ │ │ ├── etc/
│ │ │ │ └── config/
│ │ │ │ └── ota
│ │ │ └── usr/
│ │ │ └── share/
│ │ │ ├── luci/
│ │ │ │ └── menu.d/
│ │ │ │ └── luci-app-ota.json
│ │ │ ├── ota.sh
│ │ │ └── rpcd/
│ │ │ └── acl.d/
│ │ │ └── luci-app-ota.json
│ │ ├── luci-app-pingcontrol/
│ │ │ ├── Makefile
│ │ │ ├── htdocs/
│ │ │ │ └── luci-static/
│ │ │ │ └── resources/
│ │ │ │ └── view/
│ │ │ │ └── pingcontrol/
│ │ │ │ └── pingcontrol.js
│ │ │ ├── po/
│ │ │ │ ├── en/
│ │ │ │ │ └── pingcontrol.po
│ │ │ │ └── ru/
│ │ │ │ └── pingcontrol.po
│ │ │ └── root/
│ │ │ └── usr/
│ │ │ └── share/
│ │ │ ├── luci/
│ │ │ │ └── menu.d/
│ │ │ │ └── luci-app-pingcontrol.json
│ │ │ └── rpcd/
│ │ │ └── acl.d/
│ │ │ └── luci-app-pingcontrol.json
│ │ ├── luci-app-rtorrent/
│ │ │ ├── LICENSE
│ │ │ ├── Makefile
│ │ │ ├── README.md
│ │ │ ├── htdocs/
│ │ │ │ └── cgi-bin/
│ │ │ │ └── rtorrent
│ │ │ ├── luasrc/
│ │ │ │ ├── controller/
│ │ │ │ │ └── rtorrent.lua
│ │ │ │ ├── model/
│ │ │ │ │ └── cbi/
│ │ │ │ │ └── rtorrent/
│ │ │ │ │ ├── add.lua
│ │ │ │ │ ├── admin/
│ │ │ │ │ │ ├── rss.lua
│ │ │ │ │ │ └── rtorrent.lua
│ │ │ │ │ ├── common.lua
│ │ │ │ │ ├── download.lua
│ │ │ │ │ ├── main.lua
│ │ │ │ │ ├── rss-rule.lua
│ │ │ │ │ ├── rss.lua
│ │ │ │ │ ├── string.lua
│ │ │ │ │ └── torrent/
│ │ │ │ │ ├── files.lua
│ │ │ │ │ ├── info.lua
│ │ │ │ │ ├── peers.lua
│ │ │ │ │ └── trackers.lua
│ │ │ │ └── view/
│ │ │ │ └── rtorrent/
│ │ │ │ ├── button.htm
│ │ │ │ ├── buttonsection.htm
│ │ │ │ ├── empty.htm
│ │ │ │ ├── fvalue.htm
│ │ │ │ ├── list.htm
│ │ │ │ ├── lvalue.htm
│ │ │ │ ├── rss_addrule.htm
│ │ │ │ ├── tabmenu.htm
│ │ │ │ └── tvalue.htm
│ │ │ ├── po/
│ │ │ │ ├── en/
│ │ │ │ │ └── rtorrent.po
│ │ │ │ └── ru/
│ │ │ │ └── rtorrent.po
│ │ │ └── root/
│ │ │ ├── etc/
│ │ │ │ ├── config/
│ │ │ │ │ └── rtorrent
│ │ │ │ ├── cookies.txt
│ │ │ │ ├── init.d/
│ │ │ │ │ └── rtorrent
│ │ │ │ ├── rtorrent.conf
│ │ │ │ └── uci-defaults/
│ │ │ │ └── rtorrent
│ │ │ └── usr/
│ │ │ └── lib/
│ │ │ └── lua/
│ │ │ ├── bencode.lua
│ │ │ ├── rss_downloader.lua
│ │ │ ├── rtorrent.lua
│ │ │ └── xmlrpc/
│ │ │ ├── init.lua
│ │ │ └── scgi.lua
│ │ ├── luci-app-smstools3/
│ │ │ ├── Makefile
│ │ │ ├── README.md
│ │ │ ├── htdocs/
│ │ │ │ └── luci-static/
│ │ │ │ └── resources/
│ │ │ │ └── view/
│ │ │ │ └── smstools3/
│ │ │ │ ├── cmd.js
│ │ │ │ ├── in.js
│ │ │ │ ├── out.js
│ │ │ │ ├── pb.js
│ │ │ │ ├── script.js
│ │ │ │ ├── send.js
│ │ │ │ └── setup.js
│ │ │ ├── po/
│ │ │ │ ├── ru/
│ │ │ │ │ └── smstools3.po
│ │ │ │ └── zh_Hans/
│ │ │ │ └── smstools3.po
│ │ │ └── root/
│ │ │ ├── etc/
│ │ │ │ ├── init.d/
│ │ │ │ │ └── luci-sms
│ │ │ │ └── uci-defaults/
│ │ │ │ └── 63_luci-app-smstools3
│ │ │ └── usr/
│ │ │ ├── bin/
│ │ │ │ ├── msg_control
│ │ │ │ └── send_sms
│ │ │ └── share/
│ │ │ ├── luci/
│ │ │ │ └── menu.d/
│ │ │ │ └── luci-app-smstools3.json
│ │ │ ├── luci-app-smstools3/
│ │ │ │ ├── event.sh
│ │ │ │ ├── led.sh
│ │ │ │ ├── smscommand.sh
│ │ │ │ └── smstools3.user
│ │ │ └── rpcd/
│ │ │ └── acl.d/
│ │ │ └── luci-app-smstools3.json
│ │ ├── luci-app-ssw/
│ │ │ ├── Makefile
│ │ │ ├── htdocs/
│ │ │ │ └── luci-static/
│ │ │ │ └── resources/
│ │ │ │ └── view/
│ │ │ │ └── modem/
│ │ │ │ └── ssw.js
│ │ │ ├── po/
│ │ │ │ └── ru/
│ │ │ │ └── ssw.po
│ │ │ └── root/
│ │ │ └── usr/
│ │ │ └── share/
│ │ │ ├── luci/
│ │ │ │ └── menu.d/
│ │ │ │ └── luci-app-ssw.json
│ │ │ └── rpcd/
│ │ │ └── acl.d/
│ │ │ └── luci-app-ssw.json
│ │ ├── luci-app-telegrambot/
│ │ │ ├── Makefile
│ │ │ ├── README.md
│ │ │ ├── htdocs/
│ │ │ │ └── luci-static/
│ │ │ │ └── resources/
│ │ │ │ └── view/
│ │ │ │ └── telegrambot.js
│ │ │ ├── po/
│ │ │ │ └── ru/
│ │ │ │ └── telegrambot.po
│ │ │ └── root/
│ │ │ └── usr/
│ │ │ └── share/
│ │ │ ├── luci/
│ │ │ │ └── menu.d/
│ │ │ │ └── luci-app-telegrambot.json
│ │ │ └── rpcd/
│ │ │ └── acl.d/
│ │ │ └── luci-app-telegrambot.json
│ │ └── luci-app-ttl/
│ │ ├── Makefile
│ │ ├── htdocs/
│ │ │ └── luci-static/
│ │ │ └── resources/
│ │ │ └── view/
│ │ │ └── firewall/
│ │ │ └── ttl.js
│ │ ├── po/
│ │ │ └── ru/
│ │ │ └── ttl.po
│ │ └── root/
│ │ ├── etc/
│ │ │ ├── config/
│ │ │ │ └── ttl
│ │ │ ├── hotplug.d/
│ │ │ │ └── iface/
│ │ │ │ └── 90-ttl
│ │ │ └── init.d/
│ │ │ └── ttl
│ │ └── usr/
│ │ └── share/
│ │ ├── luci/
│ │ │ └── menu.d/
│ │ │ └── luci-app-ttl.json
│ │ ├── rpcd/
│ │ │ └── acl.d/
│ │ │ └── luci-app-ttl.json
│ │ ├── ttl.sh
│ │ ├── ttlipt.sh
│ │ └── ttlnft.sh
│ ├── protocols/
│ │ ├── luci-proto-openvpn/
│ │ │ ├── Makefile
│ │ │ ├── htdocs/
│ │ │ │ └── luci-static/
│ │ │ │ └── resources/
│ │ │ │ └── protocol/
│ │ │ │ └── openvpn.js
│ │ │ └── root/
│ │ │ └── usr/
│ │ │ └── share/
│ │ │ └── rpcd/
│ │ │ ├── acl.d/
│ │ │ │ └── luci-proto-openvpn.json
│ │ │ └── ucode/
│ │ │ └── luci.openvpn.uc
│ │ ├── luci-proto-tun2socks/
│ │ │ ├── Makefile
│ │ │ └── htdocs/
│ │ │ └── luci-static/
│ │ │ └── resources/
│ │ │ └── protocol/
│ │ │ └── t2s.js
│ │ └── luci-proto-xmm/
│ │ ├── Makefile
│ │ ├── README.md
│ │ └── htdocs/
│ │ └── luci-static/
│ │ └── resources/
│ │ └── protocol/
│ │ └── xmm.js
│ └── themes/
│ ├── luci-theme-lightblue/
│ │ ├── Makefile
│ │ ├── htdocs/
│ │ │ └── luci-static/
│ │ │ ├── lightblue/
│ │ │ │ ├── cascade.css
│ │ │ │ └── mobile.css
│ │ │ └── resources/
│ │ │ └── menu-lightblue.js
│ │ ├── luasrc/
│ │ │ └── view/
│ │ │ └── themes/
│ │ │ └── lightblue/
│ │ │ ├── footer.htm
│ │ │ └── header.htm
│ │ └── root/
│ │ └── etc/
│ │ └── uci-defaults/
│ │ └── 30_luci-theme-lightblue
│ ├── luci-theme-merona/
│ │ ├── Makefile
│ │ ├── htdocs/
│ │ │ └── luci-static/
│ │ │ ├── merona/
│ │ │ │ ├── cascade.css
│ │ │ │ ├── checkbox.css
│ │ │ │ └── mobile.css
│ │ │ └── resources/
│ │ │ └── menu-merona.js
│ │ ├── luasrc/
│ │ │ └── view/
│ │ │ └── themes/
│ │ │ └── merona/
│ │ │ ├── footer.htm
│ │ │ └── header.htm
│ │ └── root/
│ │ └── etc/
│ │ └── uci-defaults/
│ │ └── 30_luci-theme-merona
│ ├── luci-theme-routerich/
│ │ ├── Makefile
│ │ ├── htdocs/
│ │ │ └── luci-static/
│ │ │ ├── resources/
│ │ │ │ └── menu-routerich.js
│ │ │ └── routerich/
│ │ │ ├── background/
│ │ │ │ └── README.md
│ │ │ ├── css/
│ │ │ │ ├── cascade.css
│ │ │ │ ├── dark.css
│ │ │ │ └── routerich.css
│ │ │ └── icon/
│ │ │ ├── browserconfig.xml
│ │ │ └── manifest.json
│ │ ├── luasrc/
│ │ │ └── view/
│ │ │ └── themes/
│ │ │ └── routerich/
│ │ │ ├── footer.htm
│ │ │ ├── footer_login.htm
│ │ │ ├── header.htm
│ │ │ ├── header_login.htm
│ │ │ ├── out_header_login.htm
│ │ │ └── sysauth.htm
│ │ └── root/
│ │ └── etc/
│ │ └── uci-defaults/
│ │ └── 30_luci-theme-routerich
│ └── luci-theme-teleofis/
│ ├── Makefile
│ ├── htdocs/
│ │ └── luci-static/
│ │ ├── resources/
│ │ │ └── menu-teleofis.js
│ │ └── teleofis/
│ │ ├── cascade.css
│ │ ├── checkbox.css
│ │ └── mobile.css
│ ├── luasrc/
│ │ └── view/
│ │ └── themes/
│ │ └── teleofis/
│ │ ├── footer.htm
│ │ └── header.htm
│ └── root/
│ └── etc/
│ └── uci-defaults/
│ └── 30_luci-theme-teleofis
└── packages/
├── net/
│ ├── 3proxy/
│ │ ├── Makefile
│ │ ├── README.md
│ │ ├── files/
│ │ │ └── etc/
│ │ │ ├── 3proxy.cfg
│ │ │ ├── config/
│ │ │ │ └── 3proxy
│ │ │ └── init.d/
│ │ │ └── 3proxy
│ │ └── patches/
│ │ ├── 0001-fix-makefile-loff_t-and-enable-ssl-plugin.patch
│ │ └── 0002-use-pcre-library.patch
│ ├── accel-ppp/
│ │ ├── LICENSE
│ │ ├── Makefile
│ │ ├── README.md
│ │ ├── files/
│ │ │ ├── accel-ppp.conf
│ │ │ └── accel-ppp.init
│ │ └── patches/
│ │ └── 0001-build-with-musl.patch
│ ├── cellled/
│ │ ├── Makefile
│ │ └── root/
│ │ ├── etc/
│ │ │ ├── config/
│ │ │ │ └── cellled
│ │ │ └── init.d/
│ │ │ └── cellled
│ │ └── usr/
│ │ ├── bin/
│ │ │ └── cellled
│ │ └── share/
│ │ └── cellled.sh
│ ├── ethstatus/
│ │ ├── Makefile
│ │ └── patches/
│ │ └── 0001-version.patch
│ ├── ifmetric/
│ │ ├── Makefile
│ │ └── patches/
│ │ └── 0001-nlrequest.c_packet-too-small_fix
│ ├── maxminddb-dump-country/
│ │ └── Makefile
│ ├── modeminfo/
│ │ ├── Makefile
│ │ └── root/
│ │ ├── etc/
│ │ │ └── config/
│ │ │ └── modeminfo
│ │ └── usr/
│ │ ├── bin/
│ │ │ └── modeminfo
│ │ ├── lib/
│ │ │ └── telegrambot/
│ │ │ └── plugins/
│ │ │ └── modeminfo.sh
│ │ └── share/
│ │ ├── modeminfo/
│ │ │ ├── modem.list
│ │ │ ├── modeminfo
│ │ │ └── scripts/
│ │ │ ├── DELL
│ │ │ ├── DELL.at
│ │ │ ├── DIS_SIMCOM_A7XXX
│ │ │ ├── DIS_SIMCOM_A7XXX.at
│ │ │ ├── FIBOCOM
│ │ │ ├── FIBOCOM.at
│ │ │ ├── GENERIC
│ │ │ ├── GENERIC.at
│ │ │ ├── GOSUN
│ │ │ ├── GOSUN.at
│ │ │ ├── HUAWEI
│ │ │ ├── HUAWEI.at
│ │ │ ├── INTEL
│ │ │ ├── INTEL.at
│ │ │ ├── INTEL_FM350
│ │ │ ├── INTEL_FM350.at
│ │ │ ├── MEIGLINK
│ │ │ ├── MEIGLINK.at
│ │ │ ├── MIKROTIK
│ │ │ ├── MIKROTIK.at
│ │ │ ├── QUALCOMM
│ │ │ ├── QUALCOMM.at
│ │ │ ├── QUECTEL
│ │ │ ├── QUECTEL.at
│ │ │ ├── SIERRA
│ │ │ ├── SIERRA.at
│ │ │ ├── SIMCOM
│ │ │ ├── SIMCOM.at
│ │ │ ├── SKELETON
│ │ │ ├── SKELETON.at
│ │ │ ├── STYX
│ │ │ ├── STYX.at
│ │ │ ├── THALES
│ │ │ ├── THALES.at
│ │ │ ├── THINKWILL
│ │ │ ├── THINKWILL.at
│ │ │ ├── YUGE
│ │ │ ├── YUGE.at
│ │ │ ├── ZTE
│ │ │ ├── ZTE.at
│ │ │ ├── ch_to_band
│ │ │ ├── modeminfo
│ │ │ └── probeport.gcom
│ │ └── snmpmodem.sh
│ ├── mrtg/
│ │ ├── Makefile
│ │ ├── README.md
│ │ └── patches/
│ │ ├── 0001-disable-longlong-fmt.patch
│ │ └── 0002-fix-perl-path.patch
│ ├── mwan3-ledhelper/
│ │ ├── Makefile
│ │ └── root/
│ │ ├── etc/
│ │ │ ├── config/
│ │ │ │ └── mwan3_led
│ │ │ └── hotplug.d/
│ │ │ └── iface/
│ │ │ └── 17-mwan3-ledhelper
│ │ └── usr/
│ │ └── share/
│ │ └── mwan3_led_config.sh
│ ├── n2n/
│ │ └── Makefile
│ ├── nat64/
│ │ ├── Makefile
│ │ └── patches/
│ │ └── 01-fix-checksum-packet.patch
│ ├── natflow/
│ │ ├── Makefile
│ │ └── files/
│ │ └── natflow-boot.init
│ ├── ndpi-netfilter/
│ │ ├── LICENSE
│ │ ├── Makefile
│ │ ├── README.md
│ │ └── patches/
│ │ ├── 0001-outline-atomics-skbuff-check.patch
│ │ ├── 0002-fix-build-murmurhash.patch
│ │ └── 0003-fix-xchg.patch
│ ├── ookla-speedtest/
│ │ ├── Makefile
│ │ └── files/
│ │ ├── aarch64/
│ │ │ └── speedtest
│ │ ├── armhf/
│ │ │ └── speedtest
│ │ ├── i386/
│ │ │ └── speedtest
│ │ └── x86_64/
│ │ └── speedtest
│ ├── openvpn-dns-hotplug/
│ │ ├── Makefile
│ │ └── root/
│ │ └── etc/
│ │ └── hotplug.d/
│ │ └── openvpn/
│ │ └── 90-dns
│ ├── pingcontrol/
│ │ ├── Makefile
│ │ └── files/
│ │ ├── pingcontrol
│ │ ├── pingcontrol.config
│ │ └── pingcontrol.init
│ ├── rrm-nr-distributor/
│ │ ├── LICENSE
│ │ ├── Makefile
│ │ ├── README.md
│ │ ├── example_wireless_config
│ │ └── root/
│ │ ├── etc/
│ │ │ └── init.d/
│ │ │ └── rrm_nr
│ │ └── usr/
│ │ └── bin/
│ │ └── rrm_nr
│ ├── simpleproxy/
│ │ └── Makefile
│ ├── ssw/
│ │ ├── Makefile
│ │ └── root/
│ │ ├── etc/
│ │ │ ├── config/
│ │ │ │ └── ssw
│ │ │ └── init.d/
│ │ │ └── ssw
│ │ └── usr/
│ │ └── share/
│ │ └── ssw_track.sh
│ ├── telegrambot/
│ │ ├── Makefile
│ │ ├── README.md
│ │ └── root/
│ │ ├── etc/
│ │ │ ├── config/
│ │ │ │ └── telegrambot
│ │ │ └── init.d/
│ │ │ └── telegrambot
│ │ └── usr/
│ │ └── lib/
│ │ └── telegrambot/
│ │ ├── plugins/
│ │ │ ├── functions/
│ │ │ │ ├── get_mac.sh
│ │ │ │ └── ping.sh
│ │ │ ├── ifconfig.sh
│ │ │ ├── kernel.sh
│ │ │ ├── leases.sh
│ │ │ ├── memory.sh
│ │ │ ├── netstat.sh
│ │ │ ├── opkg.sh
│ │ │ ├── ping.sh
│ │ │ ├── plugins.sh
│ │ │ ├── swports_list.sh
│ │ │ ├── uci.sh
│ │ │ ├── uptime.sh
│ │ │ ├── wanip.sh
│ │ │ ├── wifi_list.sh
│ │ │ ├── wll_list.sh
│ │ │ └── wol.sh
│ │ └── telegrambot
│ ├── teleproxy/
│ │ ├── Makefile
│ │ ├── README.md
│ │ ├── files/
│ │ │ ├── teleproxy-config-refresh.sh
│ │ │ ├── teleproxy.config
│ │ │ ├── teleproxy.defaults
│ │ │ └── teleproxy.init
│ │ └── patches/
│ │ ├── 0001-makefile.patch
│ │ ├── 0002-fix-mips-variable.patch
│ │ ├── 0003-rtds-alternate.patch
│ │ ├── 0004-atomic-32bit-emu.patch
│ │ ├── 0005-makefile-atomic-emu.patch
│ │ └── 0006-fix-mips-musl-sigrtmax.patch
│ ├── torrserver/
│ │ ├── Makefile
│ │ └── files/
│ │ ├── torrserver.config
│ │ └── torrserver.init
│ ├── totd/
│ │ ├── Makefile
│ │ └── root/
│ │ └── etc/
│ │ ├── config/
│ │ │ └── totd
│ │ └── init.d/
│ │ └── totd
│ ├── tun2socks/
│ │ ├── Makefile
│ │ ├── README.md
│ │ └── root/
│ │ └── lib/
│ │ └── netifd/
│ │ └── proto/
│ │ └── t2s.sh
│ ├── xmm-modem/
│ │ ├── LICENSE
│ │ ├── Makefile
│ │ ├── README.md
│ │ └── root/
│ │ ├── etc/
│ │ │ ├── gcom/
│ │ │ │ ├── fm350-auth.gcom
│ │ │ │ ├── fm350-config.gcom
│ │ │ │ ├── fm350-connect.gcom
│ │ │ │ ├── probeport.gcom
│ │ │ │ ├── xmm-auth.gcom
│ │ │ │ ├── xmm-config.gcom
│ │ │ │ ├── xmm-connect.gcom
│ │ │ │ └── xmm-disconnect.gcom
│ │ │ └── hotplug.d/
│ │ │ └── usb/
│ │ │ └── 01_xmm.sh
│ │ └── lib/
│ │ └── netifd/
│ │ └── proto/
│ │ └── xmm.sh
│ ├── xt-tls/
│ │ └── Makefile
│ └── xtables-wgobfs/
│ └── Makefile
├── telephony/
│ ├── asterisk-chan-quectel/
│ │ ├── Makefile
│ │ └── patches/
│ │ └── 100-openwrtIconvMysql.patch
│ ├── atinout/
│ │ └── Makefile
│ ├── hl-atcmd/
│ │ └── Makefile
│ ├── imei_generator/
│ │ ├── Makefile
│ │ └── src/
│ │ └── imei_generator.c
│ ├── qtools/
│ │ ├── Makefile
│ │ ├── README.md
│ │ └── patches/
│ │ ├── 0001-makefile-install.patch
│ │ └── 0002-fix-qbadblock-int.patch
│ └── ttymux/
│ ├── Makefile
│ └── patches/
│ └── 0001-makefile.patch
└── utils/
├── flash-fox/
│ └── Makefile
├── qmbimat/
│ ├── Makefile
│ └── patches/
│ ├── 0001-cc.patch
│ └── 0002-qmbimat_more_fixes.patch
└── qminfo/
├── Makefile
└── src/
├── Makefile
└── qminfo.c
SYMBOL INDEX (72 symbols across 7 files)
FILE: luci/applications/luci-app-cellled/htdocs/luci-static/resources/view/cellled.js
function getModemList (line 10) | function getModemList() {
FILE: luci/applications/luci-app-modeminfo/htdocs/luci-static/resources/modem-indicator.js
function getSignalColor (line 7) | function getSignalColor(percent) {
function getSignalState (line 37) | function getSignalState(percent) {
function isUciIndexTwo (line 45) | function isUciIndexTwo() {
function updateIndicator (line 55) | function updateIndicator() {
FILE: luci/applications/luci-app-modeminfo/htdocs/luci-static/resources/view/modem/hw.js
function getEl (line 27) | function getEl(id) {
function setCell (line 40) | function setCell(id, value, suffix) {
constant MODEM_FIELDS (line 49) | const MODEM_FIELDS = [
FILE: luci/applications/luci-app-modeminfo/htdocs/luci-static/resources/view/modem/main.js
constant REGISTERED_STATUSES (line 20) | const REGISTERED_STATUSES = [1, 6, 9];
constant ROAMING_STATUSES (line 21) | const ROAMING_STATUSES = [3, 5, 7, 10];
constant SIGNAL_ICONS (line 24) | const SIGNAL_ICONS = [
constant REG_STATUSES (line 33) | const REG_STATUSES = new Map([
constant PROGRESS_CONFIG (line 44) | const PROGRESS_CONFIG = {
constant LTE_BANDS (line 78) | const LTE_BANDS = [
constant NON_LTE_BANDS (line 95) | const NON_LTE_BANDS = [
constant UMTS_MODES (line 118) | const UMTS_MODES = /(HS|3G|UMTS|WCDMA)/i;
function getEl (line 127) | function getEl(id) {
function setRowVisible (line 136) | function setRowVisible(el, show) {
function updateProgressBar (line 148) | function updateProgressBar(type, value, max, idx) {
function formatDistance (line 169) | function formatDistance(dist) {
function formatModemStatus (line 181) | function formatModemStatus(modem, icon, reg) {
function resolveSignalIcon (line 209) | function resolveSignalIcon(pct) {
function calcLteBand (line 219) | function calcLteBand(rfcn) {
function calcNonLteBand (line 232) | function calcNonLteBand(rfcn) {
function buildCellId (line 242) | function buildCellId(modem) {
function buildModeInfo (line 274) | function buildModeInfo(modem, netmode, band, bw) {
function setText (line 325) | function setText(id, text) {
function setHtml (line 335) | function setHtml(id, html) {
function updateSignalBar (line 349) | function updateSignalBar(elId, idx, rawVal, unit, type, boundary) {
FILE: luci/protocols/luci-proto-openvpn/htdocs/luci-static/resources/protocol/openvpn.js
function renderOpenVPNOptions (line 1612) | function renderOpenVPNOptions(s, tabId) {
function attachDragDrop (line 1773) | function attachDragDrop(sid) {
FILE: packages/telephony/imei_generator/src/imei_generator.c
function gen_imei (line 20) | void gen_imei(int imei[]) {
function calc_check (line 44) | void calc_check(int imei[]) {
function printUsage (line 75) | void printUsage() {
function main (line 79) | int main(int argc, const char *argv[]) {
FILE: packages/utils/qminfo/src/qminfo.c
type ModemInfo (line 29) | typedef struct {
type DeviceMode (line 92) | typedef enum {
function guint32 (line 105) | static guint32 bw_index_to_khz(guint8 bw)
function csq_to_percent (line 111) | static int csq_to_percent(int csq)
function ta_to_km (line 117) | static float ta_to_km(guint32 ta)
function guint (line 150) | static guint active_band_to_lte_band(QmiNasActiveBand band)
function jstr (line 207) | static void jstr(char *dst, size_t sz, const char *src)
function read_usb_id (line 221) | static void read_usb_id(const char *dev_name, char *manufacturer, size_t...
function on_device_closed (line 260) | static void on_device_closed(QmiDevice *dev, GAsyncResult *res, gpointer...
function do_close_device (line 269) | static void do_close_device(void)
function on_nas_released (line 275) | static void on_nas_released(QmiDevice *dev, GAsyncResult *res, gpointer ud)
function on_dms_released (line 288) | static void on_dms_released(QmiDevice *dev, GAsyncResult *res, gpointer ud)
function do_release_clients (line 309) | static void do_release_clients(void)
function emit_results (line 329) | static void emit_results(void)
function check_done (line 456) | static void check_done(void)
function on_signal_strength (line 468) | static void on_signal_strength(QmiClientNas *client, GAsyncResult *res, ...
function on_cell_location (line 495) | static void on_cell_location(QmiClientNas *client, GAsyncResult *res, gp...
function on_lte_ca (line 548) | static void on_lte_ca(QmiClientNas *client, GAsyncResult *res, gpointer ud)
function on_signal_info (line 636) | static void on_signal_info(QmiClientNas *client, GAsyncResult *res, gpoi...
function on_rf_band_info (line 687) | static void on_rf_band_info(QmiClientNas *client, GAsyncResult *res, gpo...
function on_serving_system (line 725) | static void on_serving_system(QmiClientNas *client, GAsyncResult *res, g...
function on_imsi (line 781) | static void on_imsi(QmiClientDms *client, GAsyncResult *res, gpointer ud)
function on_iccid (line 803) | static void on_iccid(QmiClientDms *client, GAsyncResult *res, gpointer ud)
function on_temp (line 825) | static void on_temp(QmiClientDms *client, GAsyncResult *res, gpointer ud)
function on_firmware (line 858) | static void on_firmware(QmiClientDms *client, GAsyncResult *res, gpointe...
function fire_all_requests (line 883) | static void fire_all_requests(void)
function on_manufacturer (line 915) | static void on_manufacturer(QmiClientDms *client, GAsyncResult *res, gpo...
function on_model (line 941) | static void on_model(QmiClientDms *client, GAsyncResult *res, gpointer ud)
function on_ids (line 994) | static void on_ids(QmiClientDms *client, GAsyncResult *res, gpointer ud)
function start_dms_chain (line 1021) | static void start_dms_chain(void)
function on_nas_client (line 1030) | static void on_nas_client(QmiDevice *dev, GAsyncResult *res, gpointer ud)
function on_dms_client (line 1045) | static void on_dms_client(QmiDevice *dev, GAsyncResult *res, gpointer ud)
function on_device_open (line 1068) | static void on_device_open(QmiDevice *dev, GAsyncResult *res, gpointer ud)
function try_open_device (line 1098) | static void try_open_device(void)
function on_device_new (line 1129) | static void on_device_new(GObject *src, GAsyncResult *res, gpointer ud)
function log_silent (line 1146) | static void log_silent(const gchar *domain,
function main (line 1158) | int main(int argc, char *argv[])
Condensed preview — 387 files, each showing path, character count, and a content snippet. Download the .json file or copy for the full structured content (1,436K chars).
[
{
"path": ".gitmodules",
"chars": 334,
"preview": "[submodule \"luci/applications/luci-app-gpoint\"]\n\tpath = luci/applications/luci-app-gpoint\n\turl = https://github.com/Kodo"
},
{
"path": "README.md",
"chars": 1487,
"preview": "# modemfeed\n\nIs a repository for OpenWrt firmware worked by with LTE cellular modems.\n\nIncluded next packages:\n\n|Package"
},
{
"path": "luci/applications/luci-app-3proxy/Makefile",
"chars": 224,
"preview": "include $(TOPDIR)/rules.mk\n\nLUCI_TITLE:=3proxy simple webUI\nLUCI_DEPENDS:=+3proxy\nPKG_LICENSE:=GPLv3\nPKG_VERSION:=0.1.1\n"
},
{
"path": "luci/applications/luci-app-3proxy/README.md",
"chars": 55,
"preview": "# luci-app-3proxy\nSimple webUI OpenWrt Luci for 3proxy\n"
},
{
"path": "luci/applications/luci-app-3proxy/htdocs/luci-static/resources/view/proxy/3proxy.js",
"chars": 2995,
"preview": "'use strict';\n'require fs';\n'require view';\n'require ui';\n'require uci';\n\n\nreturn view.extend({\n\tload: function() {\n\t\tre"
},
{
"path": "luci/applications/luci-app-3proxy/po/ru/3proxy.po",
"chars": 766,
"preview": "\"Language: ru\\n\"\n\"Content-Type: text/plain; charset=UTF-8\\n\"\n\"Content-Transfer-Encoding: 8bit\\n\"\n\"Last-Translator: Konst"
},
{
"path": "luci/applications/luci-app-3proxy/root/usr/share/luci/menu.d/luci-app-3proxy.json",
"chars": 355,
"preview": "{\n\t\"admin/services/3proxy\": {\n\t\t\"title\": \"3proxy\",\n\t\t\"action\": {\n\t\t\"type\": \"alias\",\n\t\t\t\"path\": \"admin/services/3proxy/co"
},
{
"path": "luci/applications/luci-app-3proxy/root/usr/share/rpcd/acl.d/luci-app-3proxy.json",
"chars": 311,
"preview": "{\n\t\"luci-app-3proxy\": {\n\t\t\"description\": \"Grant UCI access for luci-app-3proxy\",\n\t\t\"read\": {\n\t\t\t\"file\": {\n\t\t\t\t\"/etc/3pro"
},
{
"path": "luci/applications/luci-app-atinout/LICENSE",
"chars": 35149,
"preview": " GNU GENERAL PUBLIC LICENSE\n Version 3, 29 June 2007\n\n Copyright (C) 2007 Free "
},
{
"path": "luci/applications/luci-app-atinout/Makefile",
"chars": 547,
"preview": "#\n# Copyright 2022-2023 Rafał Wabik - IceG - From eko.one.pl forum\n#\n# Licensed to the GNU General Public License v3.0.\n"
},
{
"path": "luci/applications/luci-app-atinout/README.md",
"chars": 148,
"preview": "# luci-app-atinout\n\nWeb UI AT-commands using atinout for OpenWrt.\n\n/rules.mk\n\nPKG_NAME:=luci-app-cellled\nLUCI_DEPENDS:=+cellled\nPKG_VERSION:=0.1.0\nPKG_RELEASE:=2\nLUCI_TIT"
},
{
"path": "luci/applications/luci-app-cellled/htdocs/luci-static/resources/view/cellled.js",
"chars": 6293,
"preview": "'use strict';\n'require form';\n'require view';\n'require uci';\n'require rpc';\n'require fs';\n'require tools.widgets as widg"
},
{
"path": "luci/applications/luci-app-cellled/po/ru/cellled.po",
"chars": 995,
"preview": "\"Language: ru\\n\"\n\"Content-Type: text/plain; charset=UTF-8\\n\"\n\"Content-Transfer-Encoding: 8bit\\n\"\n\"Last-Translator: Konst"
},
{
"path": "luci/applications/luci-app-cellled/root/usr/share/luci/menu.d/luci-app-cellled.json",
"chars": 410,
"preview": "{\n \"admin/modem\": {\n \"title\": \"Modem\",\n\t\t\"order\": 45,\n \"action\": {\n "
},
{
"path": "luci/applications/luci-app-cellled/root/usr/share/rpcd/acl.d/luci-app-cellled.json",
"chars": 222,
"preview": "{\n\t\"luci-app-cellled\": {\n\t\t\"description\": \"Grant UCI access for luci-app-cellled\",\n\t\t\"read\": {\n\t\t\t\"file\": {\n\t\t\t\t\"/usr/bi"
},
{
"path": "luci/applications/luci-app-mmconfig/LICENSE",
"chars": 34523,
"preview": " GNU AFFERO GENERAL PUBLIC LICENSE\n Version 3, 19 November 2007\n\n Copyright (C)"
},
{
"path": "luci/applications/luci-app-mmconfig/Makefile",
"chars": 282,
"preview": "include $(TOPDIR)/rules.mk\n\nLUCI_TITLE:=Configrure modem bands via mmcli utility\nLUCI_DEPENDS:=+luci-proto-modemmanager "
},
{
"path": "luci/applications/luci-app-mmconfig/README.md",
"chars": 209,
"preview": "# luci-app-mmconfig\nThe OpenWrt Luci app configure modem cellular bands via mmcli utility\n\n{\n\tfor m in $(mmcli -L | awk '{print $1}'); do\n\t d"
},
{
"path": "luci/applications/luci-app-mmconfig/root/etc/uci-defaults/70_luci-app-mmconfig",
"chars": 241,
"preview": "#!/bin/sh\n\n# disable mode setting to any in modemnanager proto\n[ -f /lib/netifd/proto/modemmanager.sh ] && {\n\tsed -i '/^"
},
{
"path": "luci/applications/luci-app-mmconfig/root/usr/share/luci/menu.d/luci-app-mmconfig.json",
"chars": 360,
"preview": "{\n\t\"admin/modem/main\": {\n\t\t\"title\": \"Modeminfo\",\n\t\t\"order\": 10,\n\t\t\"action\": {\n\t\t\t\"type\": \"alias\",\n\t\t\t\"path\": \"admin/mode"
},
{
"path": "luci/applications/luci-app-mmconfig/root/usr/share/modeminfo/mmconfig",
"chars": 1252,
"preview": "#!/bin/sh\n\n. /lib/functions.sh\n\n# get vars\n\nget_mm_config(){\n\tlocal device bands preffer\n\tconfig_get device $1 device\n\tc"
},
{
"path": "luci/applications/luci-app-mmconfig/root/usr/share/rpcd/acl.d/luci-app-mmconfig.json",
"chars": 478,
"preview": "{\n\t\"luci-app-mmconfig\": {\n\t\t\"description\": \"Grant access to mmconfig configuration\",\n\t\t\"read\": {\n\t\t\t\"file\": {\n\t\t\t\t\"/etc/"
},
{
"path": "luci/applications/luci-app-modeminfo/Makefile",
"chars": 247,
"preview": "include $(TOPDIR)/rules.mk\n\nLUCI_TITLE:=Information dashboard for 3G/LTE dongle\nLUCI_DEPENDS:=+modeminfo\nPKG_LICENSE:=GP"
},
{
"path": "luci/applications/luci-app-modeminfo/README.md",
"chars": 2510,
"preview": "# luci-app-modeminfo\n3G/LTE dongle information for OpenWrt LuCi\n\n\nluci-app-modeminfo is fork from https://github.com/Ice"
},
{
"path": "luci/applications/luci-app-modeminfo/htdocs/luci-static/resources/modem-indicator.js",
"chars": 3091,
"preview": "'use strict';\n'require ui';\n'require poll';\n'require fs';\n'require uci';\n\nfunction getSignalColor(percent) {\n if (per"
},
{
"path": "luci/applications/luci-app-modeminfo/htdocs/luci-static/resources/preload/modem-indicator.js",
"chars": 110,
"preview": "'use strict';\n'require modem-indicator';\n\nreturn L.Class.extend({\n __name__: 'preload.modem-indicator'\n});\n"
},
{
"path": "luci/applications/luci-app-modeminfo/htdocs/luci-static/resources/view/modem/hw.js",
"chars": 5081,
"preview": "'use strict';\n'require baseclass';\n'require form';\n'require fs';\n'require view';\n'require ui';\n'require uci';\n'require p"
},
{
"path": "luci/applications/luci-app-modeminfo/htdocs/luci-static/resources/view/modem/main.js",
"chars": 17845,
"preview": "'use strict';\n'require baseclass';\n'require form';\n'require fs';\n'require view';\n'require ui';\n'require uci';\n'require p"
},
{
"path": "luci/applications/luci-app-modeminfo/htdocs/luci-static/resources/view/modem/setup.js",
"chars": 4604,
"preview": "'use strict';\n'require form';\n'require rpc';\n'require fs';\n'require view';\n'require uci';\n'require ui';\n'require tools.w"
},
{
"path": "luci/applications/luci-app-modeminfo/htdocs/luci-static/resources/view/status/include/26_modeminfo.js",
"chars": 3133,
"preview": "'use strict';\n'require baseclass';\n'require form';\n'require fs';\n'require ui';\n'require uci';\n\n/*\n\tWritten by Konstantin"
},
{
"path": "luci/applications/luci-app-modeminfo/po/ru/modeminfo.po",
"chars": 3558,
"preview": "\"Language: ru\\n\"\n\"Content-Type: text/plain; charset=UTF-8\\n\"\n\"Content-Transfer-Encoding: 8bit\\n\"\n\"Last-Translator: Konst"
},
{
"path": "luci/applications/luci-app-modeminfo/po/zh_Hans/modeminfo.po",
"chars": 1926,
"preview": "msgid \"\"\nmsgstr \"Content-Type: text/plain; charset=UTF-8\"\n\nmsgid \"Modem\"\nmsgstr \"移动网络\"\n\nmsgid \"Modeminfo\"\nmsgstr \"调制解调器信"
},
{
"path": "luci/applications/luci-app-modeminfo/root/usr/share/luci/menu.d/luci-app-modeminfo.json",
"chars": 743,
"preview": "{\n\t\"admin/modem\": {\n\t\t\"title\": \"Modem\",\n\t\t\"order\": 45,\n\t\t\"action\": {\n\t\t\t\"type\": \"firstchild\",\n\t\t\t\"recurse\": true\n\t\t}\n\t},"
},
{
"path": "luci/applications/luci-app-modeminfo/root/usr/share/rpcd/acl.d/luci-app-modeminfo.json",
"chars": 444,
"preview": "{\n\t\"luci-app-modeminfo\": {\n\t\t\"description\": \"Grant access to modeminfo configuration\",\n\t\t\"read\": {\n\t\t\t\"ubus\": {\n\t\t\t\t\"fil"
},
{
"path": "luci/applications/luci-app-mwan3-ledhelper/Makefile",
"chars": 258,
"preview": "include $(TOPDIR)/rules.mk\n\nLUCI_TITLE:=MWAN3 Ledhelper simple webUI\nLUCI_DEPENDS:=+luci-app-mwan3 +mwan3-ledhelper\nPKG_"
},
{
"path": "luci/applications/luci-app-mwan3-ledhelper/htdocs/luci-static/resources/view/mwan3/network/led.js",
"chars": 3490,
"preview": "'use strict';\n'require form';\n'require fs';\n'require view';\n'require uci';\n'require rpc';\n'require ui';\n'require network"
},
{
"path": "luci/applications/luci-app-mwan3-ledhelper/po/ru/mwan3-ledhelper.po",
"chars": 443,
"preview": "\"Language: ru\\n\"\n\"Content-Type: text/plain; charset=UTF-8\\n\"\n\"Content-Transfer-Encoding: 8bit\\n\"\n\"Last-Translator: Konst"
},
{
"path": "luci/applications/luci-app-mwan3-ledhelper/root/usr/share/luci/menu.d/luci-app-mwan3-ledhelper.json",
"chars": 138,
"preview": "{\n\t\"admin/network/mwan3/led\": {\n\t\t\"title\": \"LED\",\n\t\t\"order\": 55,\n\t\t\"action\": {\n\t\t\t\"type\": \"view\",\n\t\t\t\"path\": \"mwan3/netw"
},
{
"path": "luci/applications/luci-app-mwan3-ledhelper/root/usr/share/rpcd/acl.d/luci-app-mwan3-ledhelper.json",
"chars": 520,
"preview": "{\n\t\"luci-app-mwan3-ledhelper\": {\n\t\t\"description\": \"Grant access to MWAN3 LED configuration\",\n\t\t\"read\": {\n\t\t\t\"file\": {\n\t\t"
},
{
"path": "luci/applications/luci-app-ota/Makefile",
"chars": 401,
"preview": "#\n# Copyright (C) 2008-2014 The LuCI Team <luci@lists.subsignal.org>\n#\n# This is free software, licensed under the Apach"
},
{
"path": "luci/applications/luci-app-ota/htdocs/luci-static/resources/view/system/ota.js",
"chars": 9742,
"preview": "'use strict';\n'require dom';\n'require fs';\n'require ui';\n'require view';\n\n/*\n * OTA Update Application\n */\n\nreturn view."
},
{
"path": "luci/applications/luci-app-ota/po/ru/ota.po",
"chars": 1028,
"preview": "\"Language: ru\\n\"\n\"Content-Type: text/plain; charset=UTF-8\\n\"\n\"Content-Transfer-Encoding: 8bit\\n\"\n\"Last-Translator: Konst"
},
{
"path": "luci/applications/luci-app-ota/root/etc/config/ota",
"chars": 72,
"preview": "config ota\n\toption url 'https://openwrt.132lan.ru/releases_cell/latest'\n"
},
{
"path": "luci/applications/luci-app-ota/root/usr/share/luci/menu.d/luci-app-ota.json",
"chars": 285,
"preview": "{\n \"admin/system/ota\": {\n \"title\": \"OTA Update\",\n \"order\": 70,\n \"act"
},
{
"path": "luci/applications/luci-app-ota/root/usr/share/ota.sh",
"chars": 5138,
"preview": "#!/bin/sh\n\n# simple update firmware script for 132lan.ru site\n# by Konstantine Shevlakov (c) 2025\n# for correct OTA upgr"
},
{
"path": "luci/applications/luci-app-ota/root/usr/share/rpcd/acl.d/luci-app-ota.json",
"chars": 295,
"preview": "{\n\t\"luci-app-ota\": {\n\t\"description\": \"OTA Update access\",\n\t\"read\": {\n\t\"file\": {\n\t\t\t\"/usr/share/ota.sh\": [\"exec\"],\n\t\t\t\"/t"
},
{
"path": "luci/applications/luci-app-pingcontrol/Makefile",
"chars": 249,
"preview": "include $(TOPDIR)/rules.mk\n\nPKG_NAME:=luci-app-pingcontrol\nLUCI_DEPENDS:=+pingcontrol\nPKG_VERSION:=1\nPKG_RELEASE:=3\n\nLUC"
},
{
"path": "luci/applications/luci-app-pingcontrol/htdocs/luci-static/resources/view/pingcontrol/pingcontrol.js",
"chars": 2579,
"preview": "'use strict';\n'require form';\n'require view';\n'require uci';\n'require rpc';\n'require tools.widgets as widgets';\n\nreturn "
},
{
"path": "luci/applications/luci-app-pingcontrol/po/en/pingcontrol.po",
"chars": 499,
"preview": "msgid \"Server availability check\"\nmsgstr \"Server availability check\"\n\nmsgid \"Period of check, sec\"\nmsgstr \"Period of che"
},
{
"path": "luci/applications/luci-app-pingcontrol/po/ru/pingcontrol.po",
"chars": 1039,
"preview": "msgid \"Server availability check\"\nmsgstr \"Проверка доступности сервера\"\n\nmsgid \"Period of check, sec\"\nmsgstr \"Период про"
},
{
"path": "luci/applications/luci-app-pingcontrol/root/usr/share/luci/menu.d/luci-app-pingcontrol.json",
"chars": 400,
"preview": "{\n \"admin/services/pingcontrol\": {\n \"title\": \"Pingcontrol\",\n \"action\": {\n "
},
{
"path": "luci/applications/luci-app-pingcontrol/root/usr/share/rpcd/acl.d/luci-app-pingcontrol.json",
"chars": 186,
"preview": "{\n\t\"luci-app-pingcontrol\": {\n\t\t\"description\": \"Grant UCI access for luci-app-pingcontrol\",\n\t\t\"read\": {\n\t\t\t\"uci\": [ \"ping"
},
{
"path": "luci/applications/luci-app-rtorrent/LICENSE",
"chars": 35147,
"preview": " GNU GENERAL PUBLIC LICENSE\n Version 3, 29 June 2007\n\n Copyright (C) 2007 Free "
},
{
"path": "luci/applications/luci-app-rtorrent/Makefile",
"chars": 715,
"preview": "#\n# Copyright (C) 2008-2014 The LuCI Team <luci@lists.subsignal.org>\n#\n# This is free software, licensed under the Apach"
},
{
"path": "luci/applications/luci-app-rtorrent/README.md",
"chars": 2893,
"preview": "# luci-app-rtorrent\nrTorrent client for OpenWrt's LuCI web interface\n\n## Features\n- List all torrent downloads\n- Add new"
},
{
"path": "luci/applications/luci-app-rtorrent/htdocs/cgi-bin/rtorrent",
"chars": 102,
"preview": "#!/usr/bin/lua\nlocal rtorrent = require \"rtorrent\"\nio.write(rtorrent.rpc(io.read(\"*all\")))\nio.flush()\n"
},
{
"path": "luci/applications/luci-app-rtorrent/luasrc/controller/rtorrent.lua",
"chars": 1756,
"preview": "-- Copyright 2014-2018 Sandor Balazsi <sandor.balazsi@gmail.com>\n-- Licensed to the public under the GNU General Public "
},
{
"path": "luci/applications/luci-app-rtorrent/luasrc/model/cbi/rtorrent/add.lua",
"chars": 2431,
"preview": "-- Copyright 2014-2018 Sandor Balazsi <sandor.balazsi@gmail.com>\n-- Licensed to the public under the GNU General Public "
},
{
"path": "luci/applications/luci-app-rtorrent/luasrc/model/cbi/rtorrent/admin/rss.lua",
"chars": 1315,
"preview": "-- Copyright 2014-2018 Sandor Balazsi <sandor.balazsi@gmail.com>\n-- Licensed to the public under the GNU General Public "
},
{
"path": "luci/applications/luci-app-rtorrent/luasrc/model/cbi/rtorrent/admin/rtorrent.lua",
"chars": 4833,
"preview": "-- Copyright 2014-2018 Sandor Balazsi <sandor.balazsi@gmail.com>\n-- Licensed to the public under the GNU General Public "
},
{
"path": "luci/applications/luci-app-rtorrent/luasrc/model/cbi/rtorrent/common.lua",
"chars": 3800,
"preview": "-- Copyright 2014-2018 Sandor Balazsi <sandor.balazsi@gmail.com>\n-- Licensed to the public under the GNU General Public "
},
{
"path": "luci/applications/luci-app-rtorrent/luasrc/model/cbi/rtorrent/download.lua",
"chars": 2009,
"preview": "-- Copyright 2014-2018 Sandor Balazsi <sandor.balazsi@gmail.com>\n-- Licensed to the public under the GNU General Public "
},
{
"path": "luci/applications/luci-app-rtorrent/luasrc/model/cbi/rtorrent/main.lua",
"chars": 9047,
"preview": "-- Copyright 2014-2018 Sandor Balazsi <sandor.balazsi@gmail.com>\n-- Licensed to the public under the GNU General Public "
},
{
"path": "luci/applications/luci-app-rtorrent/luasrc/model/cbi/rtorrent/rss-rule.lua",
"chars": 1378,
"preview": "-- Copyright 2014-2018 Sandor Balazsi <sandor.balazsi@gmail.com>\n-- Licensed to the public under the GNU General Public "
},
{
"path": "luci/applications/luci-app-rtorrent/luasrc/model/cbi/rtorrent/rss.lua",
"chars": 1018,
"preview": "-- Copyright 2014-2018 Sandor Balazsi <sandor.balazsi@gmail.com>\n-- Licensed to the public under the GNU General Public "
},
{
"path": "luci/applications/luci-app-rtorrent/luasrc/model/cbi/rtorrent/string.lua",
"chars": 718,
"preview": "-- Copyright 2014-2018 Sandor Balazsi <sandor.balazsi@gmail.com>\n-- Licensed to the public under the GNU General Public "
},
{
"path": "luci/applications/luci-app-rtorrent/luasrc/model/cbi/rtorrent/torrent/files.lua",
"chars": 4321,
"preview": "-- Copyright 2014-2018 Sandor Balazsi <sandor.balazsi@gmail.com>\n-- Licensed to the public under the GNU General Public "
},
{
"path": "luci/applications/luci-app-rtorrent/luasrc/model/cbi/rtorrent/torrent/info.lua",
"chars": 1498,
"preview": "-- Copyright 2014-2018 Sandor Balazsi <sandor.balazsi@gmail.com>\n-- Licensed to the public under the GNU General Public "
},
{
"path": "luci/applications/luci-app-rtorrent/luasrc/model/cbi/rtorrent/torrent/peers.lua",
"chars": 4421,
"preview": "-- Copyright 2014-2018 Sandor Balazsi <sandor.balazsi@gmail.com>\n-- Licensed to the public under the GNU General Public "
},
{
"path": "luci/applications/luci-app-rtorrent/luasrc/model/cbi/rtorrent/torrent/trackers.lua",
"chars": 2902,
"preview": "-- Copyright 2014-2018 Sandor Balazsi <sandor.balazsi@gmail.com>\n-- Licensed to the public under the GNU General Public "
},
{
"path": "luci/applications/luci-app-rtorrent/luasrc/view/rtorrent/button.htm",
"chars": 279,
"preview": "<%+cbi/valueheader%>\n<input class=\"cbi-button cbi-button-<%=self.inputstyle or \"button\" %>\" type=\"submit\"<%= attr(\"name\""
},
{
"path": "luci/applications/luci-app-rtorrent/luasrc/view/rtorrent/buttonsection.htm",
"chars": 292,
"preview": "<fieldset class=\"cbi-section\" style=\"padding-top: 0\">\n\t<div class=\"cbi-section-node\" id=\"cbi-<%=self.config%>-<%=tostrin"
},
{
"path": "luci/applications/luci-app-rtorrent/luasrc/view/rtorrent/empty.htm",
"chars": 1,
"preview": "\n"
},
{
"path": "luci/applications/luci-app-rtorrent/luasrc/view/rtorrent/fvalue.htm",
"chars": 556,
"preview": "<%+cbi/valueheader%>\n\t<% if not self:cfgvalue(section) or self:cfgvalue(section) ~= \"%hidden%\" then -%>\n\t<input type=\"hi"
},
{
"path": "luci/applications/luci-app-rtorrent/luasrc/view/rtorrent/list.htm",
"chars": 1774,
"preview": "<%-\nlocal rowcnt = 1\nfunction rowstyle()\n\trowcnt = rowcnt + 1\n\treturn (rowcnt % 2) + 1\nend\n-%>\n\n<style type=\"text/css\">\n"
},
{
"path": "luci/applications/luci-app-rtorrent/luasrc/view/rtorrent/lvalue.htm",
"chars": 1216,
"preview": "<%+cbi/valueheader%>\n<% if not self:cfgvalue(section) or self:cfgvalue(section) ~= \"%hidden%\" then -%>\n<% if self.widget"
},
{
"path": "luci/applications/luci-app-rtorrent/luasrc/view/rtorrent/rss_addrule.htm",
"chars": 296,
"preview": "<table>\n\t<tr>\n\t\t<td style=\"width:130px\">\n\t\t\t<input type=\"text\" class=\"cbi-input-text\" id=\"_newrule.name\" name=\"_newrule."
},
{
"path": "luci/applications/luci-app-rtorrent/luasrc/view/rtorrent/tabmenu.htm",
"chars": 386,
"preview": "<ul class=\"cbi-tabmenu\" style=\"margin: 9px 0px 0px 0px;\">\n\t<%- for i, k in ipairs(self.pages) do -%>\n\t\t<%- if k.name:low"
},
{
"path": "luci/applications/luci-app-rtorrent/luasrc/view/rtorrent/tvalue.htm",
"chars": 124,
"preview": "<style type=\"text/css\">\n\t.cbi-value-error textarea {\n\t\tborder-color: #ff0000;\n\t\tcolor: #ff0000;\n\t}\n</style>\n<%+cbi/tvalu"
},
{
"path": "luci/applications/luci-app-rtorrent/po/en/rtorrent.po",
"chars": 8484,
"preview": "msgid \"\"\nmsgstr \"\"\n\"Language: en\\n\"\n\"Content-Type: text/plain; charset=UTF-8\\n\"\n\"Content-Transfer-Encoding: 8bit\\n\"\n\n#: "
},
{
"path": "luci/applications/luci-app-rtorrent/po/ru/rtorrent.po",
"chars": 9749,
"preview": "msgid \"\"\nmsgstr \"\"\n\"Language: ru\\n\"\n\"Content-Type: text/plain; charset=UTF-8\\n\"\n\"Content-Transfer-Encoding: 8bit\\n\"\n\"Las"
},
{
"path": "luci/applications/luci-app-rtorrent/root/etc/config/rtorrent",
"chars": 0,
"preview": ""
},
{
"path": "luci/applications/luci-app-rtorrent/root/etc/cookies.txt",
"chars": 770,
"preview": "# Netscape Cookie File\n\n# From left-to-right, the cookie data consists of the following fields:\n# domain - The domai"
},
{
"path": "luci/applications/luci-app-rtorrent/root/etc/init.d/rtorrent",
"chars": 181,
"preview": "#!/bin/sh /etc/rc.common\n\nSTART=99\nSTOP=99\n\nstart() {\n screen -dmS rtorrent nice -19 rtorrent -n -o import=/etc/rtorren"
},
{
"path": "luci/applications/luci-app-rtorrent/root/etc/rtorrent.conf",
"chars": 2834,
"preview": "# This is an example resource file for rTorrent.\n# Enable/modify the options as needed. Remember to uncomment\n# the opti"
},
{
"path": "luci/applications/luci-app-rtorrent/root/etc/uci-defaults/rtorrent",
"chars": 123,
"preview": "#!/bin/sh\n/etc/init.d/rtorrent enable\n/etc/init.d/rtorrent start\nrm -fr /tmp/luci-indexcache /tmp/luci-modulecache\nexit "
},
{
"path": "luci/applications/luci-app-rtorrent/root/usr/lib/lua/bencode.lua",
"chars": 4137,
"preview": "-- Copyright (c) 2009, 2010, 2011, 2012 by Moritz Wilhelmy\n-- Copyright (c) 2009 by Kristofer Karlsson\n-- Public domain "
},
{
"path": "luci/applications/luci-app-rtorrent/root/usr/lib/lua/rss_downloader.lua",
"chars": 4481,
"preview": "#!/usr/bin/lua\n-- Copyright 2014-2018 Sandor Balazsi <sandor.balazsi@gmail.com>\n-- Licensed to the public under the GNU "
},
{
"path": "luci/applications/luci-app-rtorrent/root/usr/lib/lua/rtorrent.lua",
"chars": 3159,
"preview": "-- Copyright 2014-2018 Sandor Balazsi <sandor.balazsi@gmail.com>\n-- Licensed to the public under the GNU General Public "
},
{
"path": "luci/applications/luci-app-rtorrent/root/usr/lib/lua/xmlrpc/init.lua",
"chars": 19899,
"preview": "-- Copyright 2003-2010 Kepler Project\n-- XML-RPC implementation for Lua.\n\nlocal lxp = require \"lxp\"\nlocal lom = require "
},
{
"path": "luci/applications/luci-app-rtorrent/root/usr/lib/lua/xmlrpc/scgi.lua",
"chars": 2703,
"preview": "-- Copyright 2003-2010 Kepler Project\n-- Copyright 2014-2018 Sandor Balazsi <sandor.balazsi@gmail.com>\n-- XML-RPC over S"
},
{
"path": "luci/applications/luci-app-smstools3/Makefile",
"chars": 316,
"preview": "include $(TOPDIR)/rules.mk\n\nLUCI_TITLE:=Web UI for smstools3\nLUCI_DEPENDS:=+smstools3 +iconv +jq\nPKG_LICENSE:=GPLv3\nPKG_"
},
{
"path": "luci/applications/luci-app-smstools3/README.md",
"chars": 762,
"preview": "# luci-app-smstools3\n\nWeb UI smstools3 for OpenWrt LuCI.\n\nNote: If you use this app with modemmanager, please move or re"
},
{
"path": "luci/applications/luci-app-smstools3/htdocs/luci-static/resources/view/smstools3/cmd.js",
"chars": 1773,
"preview": "'use strict';\n'require form';\n'require rpc';\n'require fs';\n'require view';\n'require uci';\n'require ui';\n'require tools.w"
},
{
"path": "luci/applications/luci-app-smstools3/htdocs/luci-static/resources/view/smstools3/in.js",
"chars": 3498,
"preview": "'use strict';\n'require dom';\n'require form';\n'require fs';\n'require ui';\n'require uci';\n'require view';\n\n/*\n Copy"
},
{
"path": "luci/applications/luci-app-smstools3/htdocs/luci-static/resources/view/smstools3/out.js",
"chars": 4311,
"preview": "'use strict';\n'require dom';\n'require form';\n'require fs';\n'require ui';\n'require uci';\n'require view';\n\n/*\n Copy"
},
{
"path": "luci/applications/luci-app-smstools3/htdocs/luci-static/resources/view/smstools3/pb.js",
"chars": 1081,
"preview": "'use strict';\n'require form';\n'require fs';\n'require view';\n'require uci';\n'require ui';\n'require tools.widgets as widge"
},
{
"path": "luci/applications/luci-app-smstools3/htdocs/luci-static/resources/view/smstools3/script.js",
"chars": 1150,
"preview": "'use strict';\n'require form';\n'require fs';\n'require view';\n'require uci';\n'require ui';\n'require tools.widgets as widge"
},
{
"path": "luci/applications/luci-app-smstools3/htdocs/luci-static/resources/view/smstools3/send.js",
"chars": 10445,
"preview": "'use strict';\n'require dom';\n'require form';\n'require fs';\n'require uci';\n'require ui';\n'require view';\n\n/*\n Copy"
},
{
"path": "luci/applications/luci-app-smstools3/htdocs/luci-static/resources/view/smstools3/setup.js",
"chars": 4512,
"preview": "'use strict';\n'require form';\n'require rpc';\n'require fs';\n'require view';\n'require uci';\n'require ui';\n'require tools.w"
},
{
"path": "luci/applications/luci-app-smstools3/po/ru/smstools3.po",
"chars": 5849,
"preview": "msgid \"\"\nmsgstr \"\"\n\"Language: ru\\n\"\n\"Content-Type: text/plain; charset=UTF-8\\n\"\n\"Content-Transfer-Encoding: 8bit\\n\"\n\"Las"
},
{
"path": "luci/applications/luci-app-smstools3/po/zh_Hans/smstools3.po",
"chars": 4370,
"preview": "msgid \"\"\nmsgstr \"\"\n\"Language: zh_Hans\\n\"\n\"Content-Type: text/plain; charset=UTF-8\\n\"\n\"Content-Transfer-Encoding: 8bit\\n\""
},
{
"path": "luci/applications/luci-app-smstools3/root/etc/init.d/luci-sms",
"chars": 444,
"preview": "#!/bin/sh /etc/rc.common\n\nSTART=99\nUSE_PROCD=1\n\nstart_service(){\n\tsleep 10 && \\\n\t /usr/share/luci-app-smstools3/e"
},
{
"path": "luci/applications/luci-app-smstools3/root/etc/uci-defaults/63_luci-app-smstools3",
"chars": 267,
"preview": "#!/bin/sh\n\nif [ ! -f /etc/config/smstools3 ]; then\n touch /etc/config/smstools3\n\ttouch /etc/smstools3.user\n\ttouch"
},
{
"path": "luci/applications/luci-app-smstools3/root/usr/bin/msg_control",
"chars": 2217,
"preview": "#!/bin/sh\n\nIFS=$'\\n'\n\nfunction send_msg(){\n\tlocal filename=$(basename \"$2\")\n\tmodem=$(echo \"$1\" | awk '/Modem:/{print $2}"
},
{
"path": "luci/applications/luci-app-smstools3/root/usr/bin/send_sms",
"chars": 4892,
"preview": "#!/bin/ash\n# This script send a text sms at the command line by creating\n# a sms file in the outgoing queue.\n\n# $1 is th"
},
{
"path": "luci/applications/luci-app-smstools3/root/usr/share/luci/menu.d/luci-app-smstools3.json",
"chars": 1291,
"preview": "{\n\t\"admin/modem\": {\n\t\t\"title\": \"Modem\",\n\t\t\"order\": 45,\n\t\t\"action\": {\n\t\t\t\"type\": \"firstchild\",\n\t\t\t\"recurse\": true\n\t\t}\n\t},"
},
{
"path": "luci/applications/luci-app-smstools3/root/usr/share/luci-app-smstools3/event.sh",
"chars": 3010,
"preview": "#!/bin/sh\n\nkillall smsd\n\n. /lib/functions.sh\n\n# Modems in system config\nMODEMS=\"\"\nconfig_load smstools3\n\nget_modem_names"
},
{
"path": "luci/applications/luci-app-smstools3/root/usr/share/luci-app-smstools3/led.sh",
"chars": 1205,
"preview": "#!/bin/sh\n\nLED_EN=$(uci -q get smstools3.@sms[0].led_enable)\nLED=$(uci -q get smstools3.@sms[0].led)\n\ncase $1 in\n\toff) \n"
},
{
"path": "luci/applications/luci-app-smstools3/root/usr/share/luci-app-smstools3/smscommand.sh",
"chars": 2076,
"preview": "#!/bin/sh\n\n# luci-app-smstools3 command handler by koshev-msk 2025\n\n#SECTIONS=$(uci show smstools3 | awk -F [\\.][\\]\\[\\@="
},
{
"path": "luci/applications/luci-app-smstools3/root/usr/share/luci-app-smstools3/smstools3.user",
"chars": 615,
"preview": "#!/bin/sh\n\n# Simple resend incoming messages to telegram\n\nROUTER=$(uci -q get system.@system[0].hostname)\nchat_id=$(uci "
},
{
"path": "luci/applications/luci-app-smstools3/root/usr/share/rpcd/acl.d/luci-app-smstools3.json",
"chars": 794,
"preview": "{\n\t\"luci-app-smstools3\": {\n\t\t\"description\": \"Grant UCI access for luci-app-smstools3\",\n\t\t\"read\": {\n\t\t\t\"file\": {\n\t\t\t\t\"/us"
},
{
"path": "luci/applications/luci-app-ssw/Makefile",
"chars": 383,
"preview": "#\n# Copyright (C) 2008-2014 The LuCI Team <luci@lists.subsignal.org>\n#\n# This is free software, licensed under the Apach"
},
{
"path": "luci/applications/luci-app-ssw/htdocs/luci-static/resources/view/modem/ssw.js",
"chars": 2022,
"preview": "'use strict';\n'require form';\n'require fs';\n'require ui';\n'require uci';\n'require view';\n'require poll';\n'require dom';\n"
},
{
"path": "luci/applications/luci-app-ssw/po/ru/ssw.po",
"chars": 1169,
"preview": "msgid \"SSW - SIM Card switch\"\nmsgstr \"SSW - управление SIM картами\"\n\nmsgid \"Enable\"\nmsgstr \"Включить\"\n\nmsgid \"Disable\"\nm"
},
{
"path": "luci/applications/luci-app-ssw/root/usr/share/luci/menu.d/luci-app-ssw.json",
"chars": 347,
"preview": "{\n\t\"admin/modem/main\": {\n\t\t\"title\": \"Modeminfo\",\n\t\t\"order\": 10,\n\t\t\"action\": {\n\t\t\t\"type\": \"alias\",\n\t\t\t\"path\": \"admin/mode"
},
{
"path": "luci/applications/luci-app-ssw/root/usr/share/rpcd/acl.d/luci-app-ssw.json",
"chars": 453,
"preview": "{\n\t\"luci-app-ssw\": {\n\t\t\"description\": \"Grant access to ssw configuration\",\n\t\t\"read\": {\n\t\t\t\"file\": {\n\t\t\t\t\"/etc/init.d/ssw"
},
{
"path": "luci/applications/luci-app-telegrambot/Makefile",
"chars": 234,
"preview": "include $(TOPDIR)/rules.mk\n\nLUCI_TITLE:=TelegramBot simple webUI\nLUCI_DEPENDS:=+telegrambot\nPKG_LICENSE:=GPLv3\nPKG_VERSI"
},
{
"path": "luci/applications/luci-app-telegrambot/README.md",
"chars": 23,
"preview": "# luci-app-telegrambot\n"
},
{
"path": "luci/applications/luci-app-telegrambot/htdocs/luci-static/resources/view/telegrambot.js",
"chars": 1115,
"preview": "'use strict';\n'require form';\n'require fs';\n'require view';\n'require uci';\n'require ui';\n'require tools.widgets as widge"
},
{
"path": "luci/applications/luci-app-telegrambot/po/ru/telegrambot.po",
"chars": 977,
"preview": "\"Language: ru\\n\"\n\"Content-Type: text/plain; charset=UTF-8\\n\"\n\"Content-Transfer-Encoding: 8bit\\n\"\n\"Last-Translator: Konst"
},
{
"path": "luci/applications/luci-app-telegrambot/root/usr/share/luci/menu.d/luci-app-telegrambot.json",
"chars": 235,
"preview": "{\n\t\"admin/services/telegrambot\": {\n\t\t\"title\": \"TelegramBot\",\n\t\t\"order\": 63,\n\t\t\"action\": {\n\t\t\t\"type\": \"view\",\n\t\t\t\"path\": "
},
{
"path": "luci/applications/luci-app-telegrambot/root/usr/share/rpcd/acl.d/luci-app-telegrambot.json",
"chars": 186,
"preview": "{\n\t\"luci-app-telegrambot\": {\n\t\t\"description\": \"Grant UCI access for luci-app-telegrambot\",\n\t\t\"read\": {\n\t\t\t\"uci\": [ \"tele"
},
{
"path": "luci/applications/luci-app-ttl/Makefile",
"chars": 414,
"preview": "#\n# Copyright (C) 2008-2014 The LuCI Team <luci@lists.subsignal.org>\n#\n# This is free software, licensed under the Apach"
},
{
"path": "luci/applications/luci-app-ttl/htdocs/luci-static/resources/view/firewall/ttl.js",
"chars": 2295,
"preview": "'use strict';\n'require view';\n'require ui';\n'require rpc';\n'require uci';\n'require form';\n'require fs';\n'require network"
},
{
"path": "luci/applications/luci-app-ttl/po/ru/ttl.po",
"chars": 1797,
"preview": "msgid \"\"\nmsgstr \"Content-Type: text/plain; charset=UTF-8\"\n\n\"Language: ru\\n\"\n\"Last-Translator: Konstantine Shevlakov <she"
},
{
"path": "luci/applications/luci-app-ttl/root/etc/config/ttl",
"chars": 0,
"preview": ""
},
{
"path": "luci/applications/luci-app-ttl/root/etc/hotplug.d/iface/90-ttl",
"chars": 230,
"preview": ". /lib/functions.sh\n\nhandle_config(){\n\tconfig_get iface \"$1\" iface\n\t[ \"$iface\" = \"$INTERFACE\" ] && {\n\t\trun_ttl=1\n\t}\n}\n\nc"
},
{
"path": "luci/applications/luci-app-ttl/root/etc/init.d/ttl",
"chars": 212,
"preview": "#!/bin/sh /etc/rc.common\n\nSTART=96\nUSE_PROCD=1\n\nstart_service(){\n\t/usr/share/ttl.sh\n\tlogger -t \"TTL\" \"TTL reload\"\n}\n\nrel"
},
{
"path": "luci/applications/luci-app-ttl/root/usr/share/luci/menu.d/luci-app-ttl.json",
"chars": 414,
"preview": "{\n\t\"admin/network/firewall\": {\n\t\t\"title\": \"Firewall\",\n\t\t\"order\": 60,\n\t\t\"action\": {\n\t\t\t\"type\": \"alias\",\n\t\t\t\"path\": \"admin"
},
{
"path": "luci/applications/luci-app-ttl/root/usr/share/rpcd/acl.d/luci-app-ttl.json",
"chars": 491,
"preview": "{\n\t\"luci-app-ttl\": {\n\t\t\"description\": \"Grant access to TTL configuration\",\n\t\t\"read\": {\n\t\t\t\"file\": {\n\t\t\t\t\"/etc/init.d/ttl"
},
{
"path": "luci/applications/luci-app-ttl/root/usr/share/ttl.sh",
"chars": 381,
"preview": "#!/bin/sh\n\n\nSECTIONS=$(echo $(uci show ttl | awk -F [\\]\\[\\@=] '/=ttl/{print $3}'))\n\nget_vars(){\n\tfor v in method advance"
},
{
"path": "luci/applications/luci-app-ttl/root/usr/share/ttlipt.sh",
"chars": 3179,
"preview": "method_ttl(){\n\n\tttl=${ttl:=64}\n\n\t#case $(($ttl % 2)) in\n\t#\t0) TTL_INC=$(($ttl-1)) ;;\n\t#\t*) TTL_INC=$ttl ;;\n\t#esac\n\tTTL_I"
},
{
"path": "luci/applications/luci-app-ttl/root/usr/share/ttlnft.sh",
"chars": 3916,
"preview": "method_ttl(){\n\n ttl=${ttl:=64}\n\n # create mangle table\n nft add table ip mangle 2>/dev/null\n nft add table i"
},
{
"path": "luci/protocols/luci-proto-openvpn/Makefile",
"chars": 325,
"preview": "#\n# Copyright (C) 2026 OpenWRT\n#\n# This is free software, licensed under the Apache License, Version 2.0 .\n#\n\ninclude $("
},
{
"path": "luci/protocols/luci-proto-openvpn/htdocs/luci-static/resources/protocol/openvpn.js",
"chars": 43191,
"preview": "// luci-proto-openvpn: OpenVPN protocol handler for LuCI\n'use strict';\n'require form';\n'require fs';\n'require network';\n"
},
{
"path": "luci/protocols/luci-proto-openvpn/root/usr/share/rpcd/acl.d/luci-proto-openvpn.json",
"chars": 449,
"preview": "{\n\t\"luci-proto-openvpn\": {\n\t\t\"description\": \"Grant access to LuCI openvpn procedures\",\n\t\t\"read\": {\n\t\t\t\"file\": {\n\t\t\t\t\"/bi"
},
{
"path": "luci/protocols/luci-proto-openvpn/root/usr/share/rpcd/ucode/luci.openvpn.uc",
"chars": 2898,
"preview": "#!/usr/bin/env ucode\n\n'use strict';\n\nimport { stdin, access, chmod, dirname, basename, open, popen, glob, lsdir, readfil"
},
{
"path": "luci/protocols/luci-proto-tun2socks/Makefile",
"chars": 324,
"preview": "#\n# Copyright (C) 2008-2014 The LuCI Team <luci@lists.subsignal.org>\n#\n# This is free software, licensed under the Apach"
},
{
"path": "luci/protocols/luci-proto-tun2socks/htdocs/luci-static/resources/protocol/t2s.js",
"chars": 6042,
"preview": "'use strict';\n'require rpc';\n'require form';\n'require network';\n'require validation';\n\nnetwork.registerPatternVirtual(/^"
},
{
"path": "luci/protocols/luci-proto-xmm/Makefile",
"chars": 324,
"preview": "#\n# Copyright (C) 2008-2014 The LuCI Team <luci@lists.subsignal.org>\n#\n# This is free software, licensed under the Apach"
},
{
"path": "luci/protocols/luci-proto-xmm/README.md",
"chars": 521,
"preview": "# luci-proto-xmm\nThe OpenWrt Luci protocol handler to configure Intel cellular XMM modems.\n\n<details>\n <summary>Screen"
},
{
"path": "luci/protocols/luci-proto-xmm/htdocs/luci-static/resources/protocol/xmm.js",
"chars": 3744,
"preview": "'use strict';\n'require rpc';\n'require form';\n'require network';\n\nvar callFileList = rpc.declare({\n\tobject: 'file',\n\tmeth"
},
{
"path": "luci/themes/luci-theme-lightblue/Makefile",
"chars": 361,
"preview": "#\n# Copyright (C) 2008-2014 The LuCI Team <luci@lists.subsignal.org>\n#\n# This is free software, licensed under the Apach"
},
{
"path": "luci/themes/luci-theme-lightblue/htdocs/luci-static/lightblue/cascade.css",
"chars": 48348,
"preview": "/*!\n * LuCI Bootstrap Theme\n * Copyright 2012 Nut & Bolt\n * By David Menting <david@nut-bolt.nl>\n * Based on Bootstrap v"
},
{
"path": "luci/themes/luci-theme-lightblue/htdocs/luci-static/lightblue/mobile.css",
"chars": 8005,
"preview": "header h3 a, header .brand {\n\tdisplay:none !important;\n}\n\n@media screen and (max-device-width: 600px) {\n\t#maincontent.co"
},
{
"path": "luci/themes/luci-theme-lightblue/htdocs/luci-static/resources/menu-lightblue.js",
"chars": 3387,
"preview": "'use strict';\n'require baseclass';\n'require ui';\n\nreturn baseclass.extend({\n\t__init__: function() {\n\t\tui.menu.load().the"
},
{
"path": "luci/themes/luci-theme-lightblue/luasrc/view/themes/lightblue/footer.htm",
"chars": 628,
"preview": "<%#\n Copyright 2008 Steven Barth <steven@midlink.org>\n Copyright 2008 Jo-Philipp Wich <jow@openwrt.org>\n Copyright 2012 "
},
{
"path": "luci/themes/luci-theme-lightblue/luasrc/view/themes/lightblue/header.htm",
"chars": 2649,
"preview": "<%#\n Copyright 2008 Steven Barth <steven@midlink.org>\n Copyright 2008-2016 Jo-Philipp Wich <jow@openwrt.org>\n Copyright "
},
{
"path": "luci/themes/luci-theme-lightblue/root/etc/uci-defaults/30_luci-theme-lightblue",
"chars": 247,
"preview": "#!/bin/sh\n\nif [ \"$PKG_UPGRADE\" != 1 ]; then\n\tuci get luci.themes.Lightblue >/dev/null 2>&1 || \\\n\tuci batch <<-EOF\n\t\tset "
},
{
"path": "luci/themes/luci-theme-merona/Makefile",
"chars": 358,
"preview": "#\n# Copyright (C) 2008-2014 The LuCI Team <luci@lists.subsignal.org>\n#\n# This is free software, licensed under the Apach"
},
{
"path": "luci/themes/luci-theme-merona/htdocs/luci-static/merona/cascade.css",
"chars": 48682,
"preview": "/*!\n * LuCI Bootstrap Theme\n * Copyright 2012 Nut & Bolt\n * By David Menting <david@nut-bolt.nl>\n * Based on Bootstrap v"
},
{
"path": "luci/themes/luci-theme-merona/htdocs/luci-static/merona/checkbox.css",
"chars": 1260,
"preview": "/* Custom checkbox and radio styles for green theme */\ninput[type=\"checkbox\"],\ninput[type=\"radio\"] {\n appearance: non"
},
{
"path": "luci/themes/luci-theme-merona/htdocs/luci-static/merona/mobile.css",
"chars": 8005,
"preview": "header h3 a, header .brand {\n\tdisplay:none !important;\n}\n\n@media screen and (max-device-width: 600px) {\n\t#maincontent.co"
},
{
"path": "luci/themes/luci-theme-merona/htdocs/luci-static/resources/menu-merona.js",
"chars": 3387,
"preview": "'use strict';\n'require baseclass';\n'require ui';\n\nreturn baseclass.extend({\n\t__init__: function() {\n\t\tui.menu.load().the"
},
{
"path": "luci/themes/luci-theme-merona/luasrc/view/themes/merona/footer.htm",
"chars": 625,
"preview": "<%#\n Copyright 2008 Steven Barth <steven@midlink.org>\n Copyright 2008 Jo-Philipp Wich <jow@openwrt.org>\n Copyright 2012 "
},
{
"path": "luci/themes/luci-theme-merona/luasrc/view/themes/merona/header.htm",
"chars": 2712,
"preview": "<%#\n Copyright 2008 Steven Barth <steven@midlink.org>\n Copyright 2008-2016 Jo-Philipp Wich <jow@openwrt.org>\n Copyright "
},
{
"path": "luci/themes/luci-theme-merona/root/etc/uci-defaults/30_luci-theme-merona",
"chars": 235,
"preview": "#!/bin/sh\n\nif [ \"$PKG_UPGRADE\" != 1 ]; then\n\tuci get luci.themes.Merona >/dev/null 2>&1 || \\\n\tuci batch <<-EOF\n\t\tset luc"
},
{
"path": "luci/themes/luci-theme-routerich/Makefile",
"chars": 351,
"preview": "#\n# Copyright (C) 2008-2014 The LuCI Team <luci@lists.subsignal.org>\n#\n# This is free software, licensed under the Apach"
},
{
"path": "luci/themes/luci-theme-routerich/htdocs/luci-static/resources/menu-routerich.js",
"chars": 5058,
"preview": "'use strict';\n'require baseclass';\n'require ui';\n\nreturn baseclass.extend({\n __init__: function () {\n ui.menu.load()"
},
{
"path": "luci/themes/luci-theme-routerich/htdocs/luci-static/routerich/background/README.md",
"chars": 50,
"preview": "Drop background here!\naccept jpg png gif mp4 webm\n"
},
{
"path": "luci/themes/luci-theme-routerich/htdocs/luci-static/routerich/css/cascade.css",
"chars": 170950,
"preview": "/*!\nPure v2.0.3\nCopyright 2013 Yahoo!\nLicensed under the BSD License.\nhttps://github.com/pure-css/pure/blob/master/LICEN"
},
{
"path": "luci/themes/luci-theme-routerich/htdocs/luci-static/routerich/css/dark.css",
"chars": 4,
"preview": "/**/"
},
{
"path": "luci/themes/luci-theme-routerich/htdocs/luci-static/routerich/css/routerich.css",
"chars": 52714,
"preview": "/*\n! tailwindcss v3.4.1 | MIT License | https://tailwindcss.com\n*/\n\n/*\n1. Prevent padding and border from affecting elem"
},
{
"path": "luci/themes/luci-theme-routerich/htdocs/luci-static/routerich/icon/browserconfig.xml",
"chars": 281,
"preview": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<browserconfig><msapplication><tile><square70x70logo src=\"/ms-icon-70x70.png\"/><s"
},
{
"path": "luci/themes/luci-theme-routerich/htdocs/luci-static/routerich/icon/manifest.json",
"chars": 724,
"preview": "{\n\t\"name\": \"Openwrt\",\n\t\"icons\": [\n\t\t{\n\t\t\t\"src\": \"\\/android-icon-36x36.png\",\n\t\t\t\"sizes\": \"36x36\",\n\t\t\t\"type\": \"image\\/png\""
},
{
"path": "luci/themes/luci-theme-routerich/luasrc/view/themes/routerich/footer.htm",
"chars": 1327,
"preview": "<%#\n\tArgon is a clean HTML5 theme for LuCI. It is based on luci-theme-material Argon Template\n\n\tluci-theme-argon\n\tCopyri"
},
{
"path": "luci/themes/luci-theme-routerich/luasrc/view/themes/routerich/footer_login.htm",
"chars": 1152,
"preview": "<%#\n\tArgon is a clean HTML5 theme for LuCI. It is based on luci-theme-material Argon Template\n\n\tluci-theme-argon\n\tCopyri"
},
{
"path": "luci/themes/luci-theme-routerich/luasrc/view/themes/routerich/header.htm",
"chars": 7456,
"preview": "<%#\n\tArgon is a clean HTML5 theme for LuCI. It is based on luci-theme-material Argon Template\n\n\tluci-theme-argon\n\tCopyri"
},
{
"path": "luci/themes/luci-theme-routerich/luasrc/view/themes/routerich/header_login.htm",
"chars": 4683,
"preview": "<%#\n\tArgon is a clean HTML5 theme for LuCI. It is based on luci-theme-material Argon Template\n\n\tluci-theme-argon\n\tCopyri"
},
{
"path": "luci/themes/luci-theme-routerich/luasrc/view/themes/routerich/out_header_login.htm",
"chars": 372,
"preview": "<%#\n Copyright 2008 Steven Barth <steven@midlink.org>\n Copyright 2008-2019 Jo-Philipp Wich <jo@mein.io>\n Licensed to the"
},
{
"path": "luci/themes/luci-theme-routerich/luasrc/view/themes/routerich/sysauth.htm",
"chars": 5028,
"preview": "<%#\n\tArgon is a clean HTML5 theme for LuCI. It is based on luci-theme-bootstrap and MUI and Argon Template\n\n\tluci-theme-"
},
{
"path": "luci/themes/luci-theme-routerich/root/etc/uci-defaults/30_luci-theme-routerich",
"chars": 247,
"preview": "#!/bin/sh\n\nif [ \"$PKG_UPGRADE\" != 1 ]; then\n\tuci get luci.themes.Routerich >/dev/null 2>&1 || \\\n\tuci batch <<-EOF\n\t\tset "
},
{
"path": "luci/themes/luci-theme-teleofis/Makefile",
"chars": 360,
"preview": "#\n# Copyright (C) 2008-2014 The LuCI Team <luci@lists.subsignal.org>\n#\n# This is free software, licensed under the Apach"
},
{
"path": "luci/themes/luci-theme-teleofis/htdocs/luci-static/resources/menu-teleofis.js",
"chars": 3387,
"preview": "'use strict';\n'require baseclass';\n'require ui';\n\nreturn baseclass.extend({\n\t__init__: function() {\n\t\tui.menu.load().the"
},
{
"path": "luci/themes/luci-theme-teleofis/htdocs/luci-static/teleofis/cascade.css",
"chars": 47625,
"preview": "/*!\n * LuCI Bootstrap Theme\n * Copyright 2012 Nut & Bolt\n * By David Menting <david@nut-bolt.nl>\n * Based on Bootstrap v"
},
{
"path": "luci/themes/luci-theme-teleofis/htdocs/luci-static/teleofis/checkbox.css",
"chars": 1263,
"preview": "/* Custom checkbox and radio styles for teleofis theme */\ninput[type=\"checkbox\"],\ninput[type=\"radio\"] {\n appearance: "
},
{
"path": "luci/themes/luci-theme-teleofis/htdocs/luci-static/teleofis/mobile.css",
"chars": 8005,
"preview": "header h3 a, header .brand {\n\tdisplay:none !important;\n}\n\n@media screen and (max-device-width: 600px) {\n\t#maincontent.co"
},
{
"path": "luci/themes/luci-theme-teleofis/luasrc/view/themes/teleofis/footer.htm",
"chars": 588,
"preview": "<%#\n Copyright 2008 Steven Barth <steven@midlink.org>\n Copyright 2008 Jo-Philipp Wich <jow@openwrt.org>\n Copyright 2012 "
},
{
"path": "luci/themes/luci-theme-teleofis/luasrc/view/themes/teleofis/header.htm",
"chars": 2710,
"preview": "<%#\n Copyright 2008 Steven Barth <steven@midlink.org>\n Copyright 2008-2016 Jo-Philipp Wich <jow@openwrt.org>\n Copyright "
},
{
"path": "luci/themes/luci-theme-teleofis/root/etc/uci-defaults/30_luci-theme-teleofis",
"chars": 243,
"preview": "#!/bin/sh\n\nif [ \"$PKG_UPGRADE\" != 1 ]; then\n\tuci get luci.themes.Teleofis >/dev/null 2>&1 || \\\n\tuci batch <<-EOF\n\t\tset l"
},
{
"path": "packages/net/3proxy/Makefile",
"chars": 2317,
"preview": "include $(TOPDIR)/rules.mk\n\nPKG_NAME:=3proxy\nPKG_VERSION:=0.9.5\nPKG_RELEASE:=2\n\nPKG_MAINTAINER:=muziling <lls924@gmail.c"
},
{
"path": "packages/net/3proxy/README.md",
"chars": 269,
"preview": "3proxy running on Openwrt/LEDE\n===\n\n编译/Compile\n---\n\n```bash\ncd openwrt\ngit clone https://github.com/muziling/3proxy-open"
},
{
"path": "packages/net/3proxy/files/etc/3proxy.cfg",
"chars": 32,
"preview": "daemon\nauth strong\nproxy -p3128\n"
},
{
"path": "packages/net/3proxy/files/etc/config/3proxy",
"chars": 47,
"preview": "config 3proxy\n\toption config '/etc/3proxy.cfg'\n"
}
]
// ... and 187 more files (download for full content)
About this extraction
This page contains the full source code of the koshev-msk/modemfeed GitHub repository, extracted and formatted as plain text for AI agents and large language models (LLMs). The extraction includes 387 files (1.2 MB), approximately 434.9k tokens, and a symbol index with 72 extracted functions, classes, methods, constants, and types. Use this with OpenClaw, Claude, ChatGPT, Cursor, Windsurf, or any other AI tool that accepts text input. You can copy the full output to your clipboard or download it as a .txt file.
Extracted by GitExtract — free GitHub repo to text converter for AI. Built by Nikandr Surkov.