├── .github └── workflows │ ├── build-meson-single-openwrt-2305.yml │ ├── build-rockchip-2305.yml │ ├── build-rockchip-2410.yml │ └── build-single-istoreos-rockchip.yml ├── .gitignore ├── Amlogic_USB_ Burning_Tool_setup_v2.1.7.0.7z ├── LICENSE ├── README.md ├── add-sfe-packages.sh ├── add-test-packages.sh ├── after_build.sh ├── archive ├── 0001-dump1.patch ├── ap8220-qosmio │ ├── 0001-qualcommax-add-support-for-Aliyun-AP8220-dts.patch │ ├── 0002-ipq807x-add-support-for-Aliyun-AP8220-mod-for-24.10-.patch │ ├── 0003-kernel-bump-6.6-to-6.6.77.patch │ ├── 0004-qualcommax-fix-qca-mcs-build-error-atomic64_t-uint64.patch │ ├── 0005-ipq-fix-sfe-add-in-nss-patch.patch │ ├── 0006-ap8220-fix-wifi-issues.patch │ ├── 0007-adjust.patch │ ├── 0008-Revert-ipq-fix-sfe-add-in-nss-patch.patch │ ├── 0009-Revert-ap8220-fix-wifi-issues.patch │ └── 0010-ap8220-fix-wifi-init-issue.patch ├── back-meson-515-config ├── cmake-bump │ ├── 1907 │ │ ├── 0001-cmake-Disable-use-of-package-registries.patch │ │ ├── 0001-cmake-Update-to-3.21.7.patch │ │ ├── 0002-build-support-cmake-verbose-for-host-builds.patch │ │ ├── 0003-include-cmake.mk-Fix-the-bug-in-ccache-support.patch │ │ ├── 0004-Revert-tools-cmake-fix-typo-in-parallel-make-patch.patch │ │ ├── 0005-tools-cmake-update-to-3.16.2.patch │ │ ├── 0006-tools-cmake-Update-to-3.16.5.patch │ │ ├── 0007-tools-cmake-update-to-3.17.0.patch │ │ ├── 0008-tools-cmake-fix-typo-in-parallel-make-patch.patch │ │ ├── 0009-tools-cmake-update-to-3.18.2.patch │ │ ├── 0010-tools-cmake-update-to-3.18.5.patch │ │ ├── 0011-tools-cmake-update-to-3.19.1.patch │ │ ├── 0012-tools-cmake-always-use-non-ccache-CC-and-CXX-variabl.patch │ │ ├── 0013-cmake-update-to-version-3.19.8.patch │ │ └── 0014-cmake-Update-to-3.21.7-tools-remove-xxd-package-cmak.patch │ ├── 0001-tools-add-xxd-from-vim.patch │ ├── 0002-build-add-ninja-build-tool-and-make-it-available-for.patch │ ├── 0003-package-fix-cmake-packages-build-with-ninja.patch │ ├── 0004-build-use-ninja-for-cmake-packages-by-default.patch │ ├── 0005-tools-fix-dependencies-of-cmake-packages.patch │ ├── 0006-tools-build-ninja-before-ccache-to-fix-the-build-ord.patch │ ├── 0007-build-do-not-override-DESTDIR-for-cmake-ninja-host-b.patch │ ├── 0008-include-cmake.mk-fix-host-builds-with-CMAKE_BINARY_S.patch │ ├── 0009-include-cmake.mk-add-support-for-overriding-the-host.patch │ ├── 0010-tools-cmake-update-to-3.20.3-build-with-Ninja.patch │ ├── 0011-tools-cmake-update-to-3.21.2.patch │ ├── 0012-tools-cmake-add-MAKE-config-variable.patch │ ├── 0013-tools-cmake-fix-download-url.patch │ ├── 0014-tools-cmake-update-to-3.21.3.patch │ ├── 0015-tools-cmake-update-to-3.21.6.patch │ ├── 0016-tools-ninja-update-to-1.11.0.patch │ ├── 0017-tools-cmake-fix-download-url-with-make-variables.patch │ ├── 0018-cmake-Update-to-3.21.7.patch │ └── 0019-tools-remove-xxd-package.patch ├── istore-patch-1222-elf │ ├── 0001-toolchain-add-support-for-GCC-12-and-default.patch │ ├── 0002-gccvercheck-fix.patch │ ├── 0003-uqmi-Ignore-wrong-maybe-uninitialized-and-dangling-p.patch │ ├── 0004-target-set-default-package.patch │ ├── 0005-remove-default-uboot-rk35xx.patch │ ├── 0006-rockchip-use-LZMA-FIT-for-kernel-image-for-istoreos.patch │ ├── 0007-Trusted-Firmware-A-add-RK3399.patch │ ├── 0008-rockchip-add-r08-fmx1-support.patch │ ├── 0009-elfutils-fix-host-compilation-with-Alpine-Linux.patch │ ├── 0010-elfutils-move-host-build-to-tools.patch │ ├── 0011-elfutils-update-to-0.187.patch │ ├── 0012-elfutils-update-to-1.88.patch │ ├── 0013-elfutils-Ignore-wrong-use-after-free-error.patch │ ├── 0014-elfutils-fix-build-with-GCC-11.patch │ └── 0015-elfutils-update-to-1.89.patch ├── kochiya-test │ ├── openvpn-easy-rsa │ │ ├── Makefile │ │ ├── files │ │ │ ├── openvpn-easy-rsa.profile │ │ │ └── openvpn-easy-rsa.upgrade │ │ └── patches │ │ │ └── 100-Make-package-reproducible.patch │ ├── openvpn │ │ ├── Config-mbedtls.in │ │ ├── Config-openssl.in │ │ ├── Config-wolfssl.in │ │ ├── Makefile │ │ ├── files │ │ │ ├── etc │ │ │ │ ├── hotplug.d │ │ │ │ │ └── openvpn │ │ │ │ │ │ └── 01-user │ │ │ │ └── openvpn.user │ │ │ ├── lib │ │ │ │ └── functions │ │ │ │ │ └── openvpn.sh │ │ │ ├── openvpn.config │ │ │ ├── openvpn.init │ │ │ ├── openvpn.options │ │ │ ├── openvpn.upgrade │ │ │ └── usr │ │ │ │ └── libexec │ │ │ │ └── openvpn-hotplug │ │ ├── patches │ │ │ ├── 100-mbedtls-disable-runtime-version-check.patch │ │ │ ├── 101-Fix-EVP_PKEY_CTX_-compilation-with-wolfSSL.patch │ │ │ ├── 102-Disable-external-ec-key-support-when-building-with-wolfSSL.patch │ │ │ └── 103-define-LN_serialNumber-for-wolfSSL.patch │ │ └── test.sh │ └── ovpn-dco │ │ └── Makefile ├── machine-configs │ └── mt798x-mtk.config ├── meson │ ├── build-meson-burn-openwrt-2305.yml │ └── burn-make.sh ├── mt798x-patch │ └── 001-remove-default.patch ├── package-configs │ ├── mpc1917-common-full.config │ ├── mt798x-common-iptables-lite.config │ ├── mt798x-common-istore.config │ ├── mt798x-common.config │ ├── mt798x-mtk-common.config │ ├── ws1508-common.config │ └── ws1508-istore.config ├── package │ └── openvpn-easy-rsa │ │ ├── Makefile │ │ ├── files │ │ ├── easy-rsa.index │ │ └── easy-rsa.serial │ │ └── patches │ │ ├── 100-run-ootb.patch │ │ └── 103-openssl_1.1.x_compat.patch ├── sh │ ├── diy-istore.sh │ ├── diy-mt798x-mtk.sh │ ├── diy-trunk.sh │ └── diy.sh └── ymls │ ├── build-burn-istoreos.yml │ ├── build-burn-openwrt-2305-custom.yml │ ├── build-burn-openwrt-2305.yml │ ├── build-burn-openwrt-istore.yml │ ├── build-burn-openwrt-trunk.yml │ ├── build-burn-openwrt.yml │ ├── build-mt798x-istore.yml │ ├── build-mt798x-mtk.yml │ ├── build-rockchip-2305.yml │ └── build-rockchip-main.yml ├── diy-2305.sh ├── diy-2410.sh ├── diy-istoreos.sh ├── diy-main.sh ├── env ├── common-rk3399.txt ├── common.txt ├── istoreos-22.03.repo ├── lunatickochiya-2203-s805.repo ├── openwrt-23.05.repo ├── openwrt-24.10.repo └── openwrt-main.repo ├── feeds-packages └── openwrt-23.05 │ └── feeds │ ├── packages │ ├── kernel │ │ └── ovpn-dco │ │ │ └── Makefile │ └── utils │ │ └── cryptsetup │ │ └── Makefile │ └── telephony │ └── libs │ └── dahdi-linux │ ├── Makefile │ ├── files │ └── oslec.h │ └── patches │ ├── 003-fix-oslec-build.patch │ ├── 050-re-enable-ztdummy.patch │ ├── 070-no-firmware-blob-download.patch │ ├── 100-add-support-for-hfc-s-pci.patch │ ├── 110-fix-uaccess_h-include.patch │ ├── 130-DAHLIN-371-pld-linux-math64.patch │ ├── 200-dahdi-use-fallthrough-where-needed.patch │ ├── 205-dahdi-xpp-fix-wrong-printf-to-d.patch │ ├── 206-dahdi_echocan_mg2-rename-ABS-define-to-PARA_ABS.patch │ └── 207-opvxa1200-unused-variable.patch ├── gen-sha256sum.sh ├── machine-configs ├── meson-ipt.config ├── meson-nft.config ├── rockchip-ipt.config ├── rockchip-nft.config └── single │ ├── fmx1-ipt.config │ ├── fmx1-nft.config │ ├── mpc1917-ipt.config │ ├── mpc1917-nft.config │ ├── onecloud-ipt.config │ ├── onecloud-nft.config │ ├── r08-ipt.config │ ├── r08-nft.config │ ├── tpm312-ipt.config │ ├── tpm312-nft.config │ ├── ws1508-ipt.config │ └── ws1508-nft.config ├── openwrt-2203 ├── files-for-istoreos │ ├── package │ │ └── boot │ │ │ └── uboot-rockchip │ │ │ ├── patches │ │ │ └── 900-arm-add-dts-files.patch │ │ │ └── src │ │ │ ├── arch │ │ │ └── arm │ │ │ │ └── dts │ │ │ │ ├── rk3399-chiptrip-fmx1-pro-u-boot.dtsi │ │ │ │ ├── rk3399-chiptrip-fmx1-pro.dts │ │ │ │ ├── rk3399-r08-u-boot.dtsi │ │ │ │ ├── rk3399-r08.dts │ │ │ │ ├── rk3399-tpm312-u-boot.dtsi │ │ │ │ └── rk3399-tpm312.dts │ │ │ └── configs │ │ │ ├── chiptrip-fmx1-pro-rk3399_defconfig │ │ │ ├── r08-rk3399_defconfig │ │ │ └── wesine-tpm312-rk3399_defconfig │ └── target │ │ └── linux │ │ └── rockchip │ │ └── armv8 │ │ ├── files │ │ └── arch │ │ │ └── arm64 │ │ │ └── boot │ │ │ └── dts │ │ │ └── rockchip │ │ │ ├── rk3399-chiptrip-fmx1-pro.dts │ │ │ ├── rk3399-r08.dts │ │ │ └── rk3399-wesine-tpm312.dts │ │ └── patches-5.10 │ │ └── 999-arm64-dts-rockchip-add-rk3399.patch ├── istoreos-luci-patch │ └── 0001-luci-add-more-info.patch ├── istoreos-package-patch │ ├── 0001-update.patch │ ├── 0002-add-rust.patch │ ├── 004-golang122.patch │ └── 3-frr.patch ├── my-package-patch │ ├── 0001-docker-golang-update.patch │ ├── 002-perl-fix-tests.patch │ └── 003-golang121.patch ├── package-for-istoreos │ └── kochiya-istore │ │ ├── cups-bjnp │ │ ├── Makefile │ │ └── patches │ │ │ └── 010-gcc-12.patch │ │ ├── cups │ │ ├── Makefile │ │ ├── files │ │ │ ├── cupsd.init │ │ │ └── etc │ │ │ │ └── cups │ │ │ │ ├── classes.conf │ │ │ │ ├── client.conf │ │ │ │ ├── cupsd.conf │ │ │ │ └── printers.conf │ │ └── patches │ │ │ ├── 100-target.patch │ │ │ ├── 150-64bit_host_fix.patch │ │ │ └── 160-ppdc.patch │ │ ├── libwebsockets │ │ ├── Makefile │ │ └── patches │ │ │ ├── 010-uninit.patch │ │ │ └── 020-gcc12.patch │ │ ├── luci-app-cloudreve │ │ ├── Makefile │ │ ├── luasrc │ │ │ ├── controller │ │ │ │ └── cloudreve.lua │ │ │ ├── model │ │ │ │ └── cbi │ │ │ │ │ └── cloudreve.lua │ │ │ └── view │ │ │ │ └── cloudreve │ │ │ │ └── cloudreve_status.htm │ │ ├── po │ │ │ ├── zh-cn │ │ │ └── zh_Hans │ │ │ │ └── cloudreve.po │ │ └── root │ │ │ ├── etc │ │ │ ├── config │ │ │ │ └── cloudreve │ │ │ ├── init.d │ │ │ │ └── cloudreve │ │ │ └── uci-defaults │ │ │ │ └── cloudreve │ │ │ └── usr │ │ │ └── share │ │ │ └── rpcd │ │ │ └── acl.d │ │ │ └── luci-app-cloudreve.json │ │ ├── luci-app-cupsd │ │ ├── Makefile │ │ ├── luasrc │ │ │ ├── controller │ │ │ │ └── cupsd.lua │ │ │ └── model │ │ │ │ └── cbi │ │ │ │ └── cupsd │ │ │ │ ├── page1.lua │ │ │ │ └── page2.lua │ │ └── root │ │ │ ├── etc │ │ │ ├── config │ │ │ │ └── cupsd │ │ │ └── uci-defaults │ │ │ │ └── luci-cupsd │ │ │ ├── usr │ │ │ └── share │ │ │ │ └── rpcd │ │ │ │ └── acl.d │ │ │ │ └── luci-app-cupsd.json │ │ │ └── www │ │ │ └── cups.pdf │ │ ├── luci-app-diskman │ │ ├── Makefile │ │ ├── luasrc │ │ │ ├── controller │ │ │ │ └── diskman.lua │ │ │ ├── model │ │ │ │ ├── cbi │ │ │ │ │ └── diskman │ │ │ │ │ │ ├── btrfs.lua │ │ │ │ │ │ ├── disks.lua │ │ │ │ │ │ └── partition.lua │ │ │ │ └── diskman.lua │ │ │ └── view │ │ │ │ └── diskman │ │ │ │ ├── cbi │ │ │ │ ├── disabled_button.htm │ │ │ │ ├── format_button.htm │ │ │ │ ├── inlinebutton.htm │ │ │ │ ├── xnullsection.htm │ │ │ │ └── xsimpleform.htm │ │ │ │ ├── disk_info.htm │ │ │ │ ├── partition_info.htm │ │ │ │ └── smart_detail.htm │ │ └── po │ │ │ ├── zh-cn │ │ │ └── diskman.po │ │ │ ├── zh-tw │ │ │ └── diskman.po │ │ │ └── zh_Hans │ │ ├── luci-app-dockerman │ │ ├── Makefile │ │ ├── depends.lst │ │ ├── htdocs │ │ │ └── luci-static │ │ │ │ └── resources │ │ │ │ └── dockerman │ │ │ │ ├── containers.svg │ │ │ │ ├── file-icon.png │ │ │ │ ├── file-manager.css │ │ │ │ ├── folder-icon.png │ │ │ │ ├── images.svg │ │ │ │ ├── link-icon.png │ │ │ │ ├── networks.svg │ │ │ │ ├── tar.min.js │ │ │ │ └── volumes.svg │ │ ├── luasrc │ │ │ ├── controller │ │ │ │ └── dockerman.lua │ │ │ ├── model │ │ │ │ ├── cbi │ │ │ │ │ └── dockerman │ │ │ │ │ │ ├── configuration.lua │ │ │ │ │ │ ├── container.lua │ │ │ │ │ │ ├── containers.lua │ │ │ │ │ │ ├── images.lua │ │ │ │ │ │ ├── networks.lua │ │ │ │ │ │ ├── newcontainer.lua │ │ │ │ │ │ ├── newnetwork.lua │ │ │ │ │ │ ├── overview.lua │ │ │ │ │ │ └── volumes.lua │ │ │ │ └── docker.lua │ │ │ └── view │ │ │ │ └── dockerman │ │ │ │ ├── apply_widget.htm │ │ │ │ ├── cbi │ │ │ │ ├── inlinebutton.htm │ │ │ │ ├── inlinevalue.htm │ │ │ │ ├── namedsection.htm │ │ │ │ └── xfvalue.htm │ │ │ │ ├── container.htm │ │ │ │ ├── container_console.htm │ │ │ │ ├── container_file_manager.htm │ │ │ │ ├── container_stats.htm │ │ │ │ ├── containers_running_stats.htm │ │ │ │ ├── images_import.htm │ │ │ │ ├── images_load.htm │ │ │ │ ├── logs.htm │ │ │ │ ├── newcontainer_resolve.htm │ │ │ │ ├── overview.htm │ │ │ │ └── volume_size.htm │ │ ├── po │ │ │ ├── templates │ │ │ │ └── dockerman.pot │ │ │ ├── zh-cn │ │ │ │ └── dockerman.po │ │ │ └── zh_Hans │ │ ├── postinst │ │ └── root │ │ │ ├── etc │ │ │ ├── init.d │ │ │ │ └── dockerman │ │ │ └── uci-defaults │ │ │ │ └── luci-app-dockerman │ │ │ └── usr │ │ │ └── share │ │ │ └── rpcd │ │ │ └── acl.d │ │ │ └── luci-app-dockerman.json │ │ ├── luci-app-msd_lite │ │ ├── Makefile │ │ ├── htdocs │ │ │ └── luci-static │ │ │ │ └── resources │ │ │ │ └── view │ │ │ │ └── msd_lite.js │ │ ├── po │ │ │ ├── templates │ │ │ │ └── msd_lite.pot │ │ │ ├── zh-cn │ │ │ └── zh_Hans │ │ │ │ └── msd_lite.po │ │ └── root │ │ │ └── usr │ │ │ └── share │ │ │ ├── luci │ │ │ └── menu.d │ │ │ │ └── luci-app-msd_lite.json │ │ │ └── rpcd │ │ │ └── acl.d │ │ │ └── luci-app-msd_lite.json │ │ ├── luci-app-partexp │ │ ├── Makefile │ │ ├── README.md │ │ ├── luasrc │ │ │ ├── controller │ │ │ │ └── partexp.lua │ │ │ ├── model │ │ │ │ ├── cbi │ │ │ │ │ └── partexp │ │ │ │ │ │ └── global.lua │ │ │ │ └── diskmount.lua │ │ │ └── view │ │ │ │ ├── partexp.htm │ │ │ │ └── partexp │ │ │ │ └── log.htm │ │ ├── po │ │ │ ├── zh-cn │ │ │ │ └── partexp.po │ │ │ └── zh_Hans │ │ └── root │ │ │ ├── etc │ │ │ ├── config │ │ │ │ └── partexp │ │ │ ├── init.d │ │ │ │ └── partexp │ │ │ └── uci-defaults │ │ │ │ └── 40_luci-partexp │ │ │ └── usr │ │ │ └── share │ │ │ └── rpcd │ │ │ └── acl.d │ │ │ └── luci-app-partexp.json │ │ ├── luci-app-softethervpn │ │ ├── Makefile │ │ ├── luasrc │ │ │ ├── controller │ │ │ │ └── softethervpn.lua │ │ │ ├── model │ │ │ │ └── cbi │ │ │ │ │ └── softethervpn.lua │ │ │ └── view │ │ │ │ └── softethervpn │ │ │ │ └── softethervpn_status.htm │ │ ├── po │ │ │ ├── zh-cn │ │ │ │ └── softethervpn.po │ │ │ └── zh_Hans │ │ └── root │ │ │ ├── etc │ │ │ ├── config │ │ │ │ └── softethervpn │ │ │ ├── init.d │ │ │ │ └── softethervpn │ │ │ └── uci-defaults │ │ │ │ └── luci-softethervpn │ │ │ └── usr │ │ │ └── share │ │ │ ├── rpcd │ │ │ └── acl.d │ │ │ │ └── luci-app-softethervpn.json │ │ │ └── softethervpn │ │ │ └── firewall.include │ │ ├── luci-app-syncthing │ │ ├── Makefile │ │ ├── luasrc │ │ │ ├── controller │ │ │ │ └── syncthing.lua │ │ │ ├── model │ │ │ │ └── cbi │ │ │ │ │ └── syncthing.lua │ │ │ └── view │ │ │ │ └── syncthing │ │ │ │ └── syncthing_status.htm │ │ ├── po │ │ │ ├── zh-cn │ │ │ └── zh_Hans │ │ │ │ └── syncthing.po │ │ └── root │ │ │ ├── etc │ │ │ ├── config │ │ │ │ └── syncthing │ │ │ └── uci-defaults │ │ │ │ └── luci-syncthing │ │ │ └── usr │ │ │ └── share │ │ │ └── rpcd │ │ │ └── acl.d │ │ │ └── luci-app-syncthing.json │ │ ├── luci-app-tcpdump │ │ ├── LICENSE │ │ ├── Makefile │ │ ├── README.md │ │ ├── luasrc │ │ │ ├── controller │ │ │ │ └── tcpdump.lua │ │ │ └── view │ │ │ │ └── tcpdump.htm │ │ └── po │ │ │ ├── zh-cn │ │ │ └── tcpdump.po │ │ │ └── zh_Hans │ │ ├── luci-app-usb-printer │ │ ├── Makefile │ │ ├── ipkg │ │ │ └── postinst │ │ ├── luasrc │ │ │ ├── controller │ │ │ │ └── usb_printer.lua │ │ │ └── model │ │ │ │ └── cbi │ │ │ │ └── usb_printer.lua │ │ ├── po │ │ │ ├── zh-cn │ │ │ │ └── usb-printer.po │ │ │ └── zh_Hans │ │ └── root │ │ │ ├── etc │ │ │ ├── config │ │ │ │ └── usb_printer │ │ │ ├── hotplug.d │ │ │ │ └── usb │ │ │ │ │ └── 10-usb_printer │ │ │ ├── init.d │ │ │ │ └── usb_printer │ │ │ └── uci-defaults │ │ │ │ └── luci-usb-printer │ │ │ └── usr │ │ │ ├── bin │ │ │ ├── detectlp │ │ │ └── usb_printer_hotplug │ │ │ └── share │ │ │ └── rpcd │ │ │ └── acl.d │ │ │ └── luci-app-usb-printer.json │ │ ├── luci-app-vsftpd │ │ ├── Makefile │ │ ├── luasrc │ │ │ ├── controller │ │ │ │ └── vsftpd.lua │ │ │ └── model │ │ │ │ └── cbi │ │ │ │ └── vsftpd │ │ │ │ ├── anonymous.lua │ │ │ │ ├── general.lua │ │ │ │ ├── item.lua │ │ │ │ ├── log.lua │ │ │ │ └── users.lua │ │ ├── po │ │ │ ├── zh-cn │ │ │ │ └── vsftpd.po │ │ │ └── zh_Hans │ │ └── root │ │ │ └── etc │ │ │ └── uci-defaults │ │ │ └── luci-vsftpd │ │ ├── luci-app-zerotier │ │ ├── Makefile │ │ ├── htdocs │ │ │ └── luci-static │ │ │ │ └── resources │ │ │ │ └── view │ │ │ │ └── zerotier │ │ │ │ ├── base.js │ │ │ │ └── interface.js │ │ ├── po │ │ │ ├── templates │ │ │ │ └── zerotier.pot │ │ │ ├── zh-cn │ │ │ ├── zh_Hans │ │ │ │ └── zerotier.po │ │ │ └── zh_Hant │ │ │ │ └── zerotier.po │ │ └── root │ │ │ ├── etc │ │ │ ├── hotplug.d │ │ │ │ └── iface │ │ │ │ │ └── 40-zerotier │ │ │ ├── init.d │ │ │ │ └── zerotier │ │ │ ├── uci-defaults │ │ │ │ └── 40_luci-zerotier │ │ │ ├── zerotier.start │ │ │ └── zerotier │ │ │ │ └── zerotier.log │ │ │ └── usr │ │ │ └── share │ │ │ ├── luci │ │ │ └── menu.d │ │ │ │ └── luci-app-zerotier.json │ │ │ └── rpcd │ │ │ └── acl.d │ │ │ └── luci-app-zerotier.json │ │ ├── msd_lite │ │ ├── Makefile │ │ ├── files │ │ │ ├── msd_lite.config │ │ │ ├── msd_lite.init │ │ │ └── msd_lite.sample │ │ └── patches │ │ │ └── 010-Add-rejoin-option-as-ugly-hack-to-allow-send-IGMP-MLD-lea.patch │ │ ├── ntfs3-mount │ │ ├── Makefile │ │ └── files │ │ │ └── mount.ntfs │ │ ├── pcre2 │ │ ├── Config.in │ │ └── Makefile │ │ ├── ruby │ │ ├── Makefile │ │ ├── files │ │ │ └── ruby │ │ ├── patches │ │ │ └── 010-fix-riscv64-build.patch │ │ ├── ruby_find_pkgsdeps │ │ └── ruby_missingfiles │ │ ├── shadowsocksr-libev │ │ ├── Makefile │ │ ├── patches │ │ │ ├── 0001-Add-ss-server-and-ss-check.patch │ │ │ ├── 0002-Revert-verify_simple-and-auth_simple.patch │ │ │ ├── 0003-Refine-Usage.patch │ │ │ ├── 100-fix-gcc-10.patch │ │ │ ├── 101-Fix-Werror-sizeof-pointer-memaccess.patch │ │ │ ├── 102-Read-listening-mode-from-config.patch │ │ │ └── 103-Add-TPROXY-support-for-TCP-ssr-redir.patch │ │ └── src │ │ │ └── server │ │ │ ├── Makefile.am │ │ │ ├── Makefile.in │ │ │ ├── README.md │ │ │ ├── acl.c │ │ │ ├── acl.h │ │ │ ├── auth.c │ │ │ ├── auth.h │ │ │ ├── base64.c │ │ │ ├── base64.h │ │ │ ├── cache.c │ │ │ ├── cache.h │ │ │ ├── check.c │ │ │ ├── common.h │ │ │ ├── crc32.c │ │ │ ├── encrypt.c │ │ │ ├── encrypt.h │ │ │ ├── http.c │ │ │ ├── http.h │ │ │ ├── http_simple.c │ │ │ ├── http_simple.h │ │ │ ├── jconf.c │ │ │ ├── jconf.h │ │ │ ├── json.c │ │ │ ├── json.h │ │ │ ├── list.c │ │ │ ├── list.h │ │ │ ├── netutils.c │ │ │ ├── netutils.h │ │ │ ├── obfs.c │ │ │ ├── obfs.h │ │ │ ├── obfsutil.c │ │ │ ├── protocol.h │ │ │ ├── resolv.c │ │ │ ├── resolv.h │ │ │ ├── rule.c │ │ │ ├── rule.h │ │ │ ├── server.c │ │ │ ├── server.h │ │ │ ├── tls.c │ │ │ ├── tls.h │ │ │ ├── tls1.2_ticket.c │ │ │ ├── tls1.2_ticket.h │ │ │ ├── udprelay.c │ │ │ ├── udprelay.h │ │ │ ├── uthash.h │ │ │ ├── utils.c │ │ │ ├── utils.h │ │ │ ├── verify.c │ │ │ └── verify.h │ │ ├── syncthing │ │ ├── Makefile │ │ ├── files │ │ │ ├── stdiscosrv.conf │ │ │ ├── stdiscosrv.init │ │ │ ├── strelaysrv.conf │ │ │ ├── strelaysrv.init │ │ │ ├── syncthing-sysctl.conf │ │ │ ├── syncthing.conf │ │ │ └── syncthing.init │ │ └── test.sh │ │ ├── vsftpd-alt │ │ ├── Makefile │ │ ├── files │ │ │ ├── vsftpd-uci.init │ │ │ ├── vsftpd.conf │ │ │ ├── vsftpd.init │ │ │ ├── vsftpd.uci │ │ │ ├── vsftpd_prepare │ │ │ └── vsftpd_wrapper │ │ └── patches │ │ │ ├── 001-destdir.patch │ │ │ ├── 002-find_libs.patch │ │ │ ├── 003-chroot.patch │ │ │ ├── 004-disable-capabilities.patch │ │ │ ├── 005-disable-pam.patch │ │ │ ├── 006-musl-compatibility.patch │ │ │ ├── 007-CVE-2015-1419.patch │ │ │ ├── 010-openssl-deprecated.patch │ │ │ ├── 100-add-uci-auth-support.patch │ │ │ ├── 101-enable-chroot-on-writable-dir.patch │ │ │ └── 102-keep-local-user-rights.patch │ │ └── yaml │ │ └── Makefile └── patch-istoreos-rockchip-ipt │ ├── 0001-toolchain-add-support-for-GCC-12-and-default.patch │ ├── 0002-gccvercheck-fix.patch │ ├── 0003-uqmi-Ignore-wrong-maybe-uninitialized-and-dangling-p.patch │ ├── 0004-target-set-default-package.patch │ ├── 0005-remove-default-uboot-rk35xx.patch │ ├── 0006-rockchip-use-LZMA-FIT-for-kernel-image-for-istoreos.patch │ ├── 0007-Trusted-Firmware-A-add-RK3399.patch │ ├── 0008-rockchip-add-r08-fmx1-support.patch │ ├── 0010-elfutils-move-host-build-to-tools.patch │ ├── 0011-elfutils-update-to-1.89.patch │ ├── 0012-tools-elfutils-update-to-1.89.patch │ └── 0013-rockchip-add-support-tpm312.patch ├── openwrt-2305 ├── K61 │ ├── packages │ │ ├── 006-feeds-packages-6.1-bump-fix.patch │ │ ├── 007-dmx-usb-module-6-6-fix1.patch │ │ ├── 008-dmx-usb-module-6-6-fix2.patch │ │ ├── 010-xr_usb_serial_common-606.patch │ │ ├── 011-libpfring.patch │ │ └── 015-xtables-addons-6-6.patch │ └── tele │ │ └── 0001-feeds-telep-fix-kernel-6.1.patch ├── bcmfullcone │ ├── a-0001-bcm-fullcone-nat-patch.patch │ └── b-0001-bcm-fullcone-nat-patch.patch ├── feeds-package-patch-2305 │ ├── 0001-mdnsreponder-update-to-2200.100.94.0.2.patch │ ├── 0001-miniupnpd.patch │ ├── 002-perl-fix-tests.patch │ ├── 003-golang123.patch │ ├── 004-golang-123-optmize.patch │ ├── 005-rust-link-1-85-0.patch │ ├── 006-golang-124.patch │ └── 1-aria2.patch ├── feeds-package-patch-23055 │ ├── 0001-mdnsreponder-update-to-2200.100.94.0.2.patch │ ├── 0001-miniupnpd.patch │ ├── 002-perl-fix-tests.patch │ ├── 003-golang123.patch │ ├── 004-easyrsa313.patch │ ├── 004-golang-123-optmize.patch │ ├── 005-rust-link-1-85-0.patch │ ├── 006-golang-124.patch │ └── 1-aria2.patch ├── gcc13 │ ├── core │ │ └── 0001-toolchain-gcc-switch-default-to-13.patch │ └── packages-feeds │ │ ├── 007-libwebsockets-gcc13-fix.patch │ │ └── 008-nginx-util-gcc13-fix.patch ├── luci-patch-2305 │ ├── 0001-modules-show-cputemp-cpuusage-cpuinfo-cpubench-in-in.patch │ ├── 0002-luci-app-firewall-add-fullcone.patch │ ├── 0003-luci-mod-network-add-dhcp-wifi-options-for-23.05.patch │ ├── 0004-Revert-luci-app-firewall-add-fullcone.patch │ └── 0005-luci-app-upnp-add-force-directing.patch ├── lunatic7-revert │ ├── 0007-revert-advanced-plus.patch │ └── kodbox.patch ├── mypatch-2305-meson-ipt │ ├── 0004-fix.patch │ └── 005-fix-ipt-default.patch ├── mypatch-2305-meson-nft │ ├── 0004-fix.patch │ └── 005-fix-nft-default.patch ├── mypatch-2305-rockchip-ipt │ ├── 000-z-ipt-fullcone-target.patch │ ├── 0004-fix.patch │ └── 005-fix-ipt-default.patch ├── mypatch-2305-rockchip-nft │ ├── 0004-fix.patch │ └── 005-fix-nft-default.patch ├── mypatch-2305 │ └── 0001-mac80211-mt76-hostapd-add-support-for-256-QAM.patch ├── mypatch-bbr-v3 │ ├── 0010-kernel-update-TCP-BBR-to-v3.patch │ ├── 0011-iproute2-ss-output-TCP-BBRv3-diag-information.patch │ └── 0015-iproute2-build-quirk.patch └── target │ └── linux │ ├── meson510 │ ├── Makefile │ ├── base-files │ │ ├── etc │ │ │ └── inittab │ │ └── lib │ │ │ ├── preinit │ │ │ └── 79_move_config │ │ │ └── upgrade │ │ │ └── platform.sh │ ├── files │ │ └── arch │ │ │ └── arm │ │ │ └── boot │ │ │ └── dts │ │ │ ├── meson8b-onecloud.dts │ │ │ └── meson8b-ws1508.dts │ ├── image │ │ ├── Makefile │ │ ├── gen_aml_sdcard_img.sh │ │ ├── mmc.bootscript │ │ ├── mmc.bootscript.universal │ │ ├── onecloud.bootscript │ │ ├── onecloud.bootscript.universal │ │ ├── ws1508.bootscript │ │ └── ws1508.bootscript.universal │ ├── meson8b │ │ ├── config-5.10 │ │ └── target.mk │ ├── mesongx │ │ ├── config-5.10 │ │ └── target.mk │ └── patches-5.10 │ │ ├── 001-v5.12-ARM-dts-meson-move-iio-hwmon-for-the-SoC.patch │ │ ├── 002-v5.12-ARM-dts-meson-add-the-ADC-thermal-sensor.patch │ │ ├── 003-v5.12-ARM-dts-meson8b-add-the-thermal-zones-with.patch │ │ ├── 004-Revert-mmc-core-Set-HS-clock-speed-before-sending-HS-CMD13.patch │ │ ├── 005-usb-disable-ACA-check.patch │ │ ├── 901-arm-boot-add-dts-files.patch │ │ └── 902-use-system-LED-for-OpenWrt.patch │ ├── meson515 │ ├── Makefile │ ├── base-files │ │ ├── etc │ │ │ └── inittab │ │ └── lib │ │ │ ├── preinit │ │ │ └── 79_move_config │ │ │ └── upgrade │ │ │ └── platform.sh │ ├── files │ │ └── arch │ │ │ └── arm │ │ │ └── boot │ │ │ └── dts │ │ │ ├── meson8b-onecloud.dts │ │ │ └── meson8b-ws1508.dts │ ├── image │ │ ├── Makefile │ │ ├── gen_aml_sdcard_img.sh │ │ ├── mmc.bootscript │ │ ├── mmc.bootscript.universal │ │ ├── onecloud.bootscript │ │ ├── onecloud.bootscript.universal │ │ ├── ws1508.bootscript │ │ └── ws1508.bootscript.universal │ ├── meson8b │ │ ├── config-5.15 │ │ ├── config-6.1 │ │ └── target.mk │ ├── mesongx │ │ ├── config-5.15 │ │ └── target.mk │ ├── patches-5.15 │ │ ├── 004-Revert-mmc-core-Set-HS-clock-speed-before-sending-HS-CMD13.patch │ │ ├── 005-usb-disable-ACA-check.patch │ │ ├── 901-arm-boot-add-dts-files.patch │ │ └── 902-use-system-LED-for-OpenWrt.patch │ └── patches-6.1 │ │ ├── 004-Revert-mmc-core-Set-HS-clock-speed-before-sending-HS-CMD13.patch │ │ ├── 005-usb-disable-ACA-check.patch │ │ ├── 901-arm-boot-add-dts-files.patch │ │ ├── 902-use-system-LED-for-OpenWrt.patch │ │ └── 904-Revert-pwm-meson-modify-and-simplify-calculation-in-.patch │ └── meson61 │ ├── Makefile │ ├── base-files │ ├── etc │ │ └── inittab │ └── lib │ │ ├── preinit │ │ └── 79_move_config │ │ └── upgrade │ │ └── platform.sh │ ├── files │ └── arch │ │ └── arm │ │ └── boot │ │ └── dts │ │ ├── meson8b-onecloud.dts │ │ └── meson8b-ws1508.dts │ ├── image │ ├── Makefile │ ├── gen_aml_sdcard_img.sh │ ├── mmc.bootscript │ ├── mmc.bootscript.universal │ ├── onecloud.bootscript │ ├── onecloud.bootscript.universal │ ├── ws1508.bootscript │ └── ws1508.bootscript.universal │ ├── meson8b │ ├── config-5.15 │ ├── config-6.1 │ └── target.mk │ ├── mesongx │ ├── config-5.15 │ └── target.mk │ └── patches-6.1 │ ├── 004-Revert-mmc-core-Set-HS-clock-speed-before-sending-HS-CMD13.patch │ ├── 005-usb-disable-ACA-check.patch │ ├── 901-arm-boot-add-dts-files.patch │ ├── 902-use-system-LED-for-OpenWrt.patch │ └── 904-Revert-pwm-meson-modify-and-simplify-calculation-in-.patch ├── openwrt-2410 ├── bcmfullcone │ ├── a-0001-bcm-fullcone-nat-patch.patch │ ├── a-0002-iptables-add-fullcone-patch.patch │ └── b-0001-bcm-fullcone-nat-patch.patch ├── feeds-package-patch-2410 │ ├── 0001-colect-fix-configure.ac.patch │ ├── 006-golang-124.patch │ ├── 2-miniupnp.patch │ ├── 3-miniupnp.patch │ └── a-0001-xtables-addons-bump-to-3.27.patch ├── luci-patch-2410 │ ├── 0001-luci-add-more-info.patch │ ├── 0002-luci-app-firewall-add-fullcone.patch │ ├── 0003-luci-mod-network-add-more-dhcp-and-wifi-options.patch │ ├── 0004-Revert-luci-app-firewall-add-fullcone.patch │ └── 0005-luci-app-upnp-add-force-directing.patch ├── lunatic7-revert │ ├── 0007-revert-advanced-plus.patch │ └── kodbox.patch ├── my-patch-ag71xx-fix │ ├── 0011-ath79-append-okli-kernel-support.patch │ ├── 0012-ath79-enable-ramoops-support.patch │ ├── 0012-ath79-rearrange-ag71xx-structs-to-remove-holes.patch │ ├── 0013-ath79-ag71xx-remove-unnecessary-MTU-reservation.patch │ └── 0014-ag71xx-fix-SGMII-invalid-fixup-execution.patch ├── mypatch-2410-rockchip-ipt │ ├── 000-z-ipt-fullcone-target.patch │ └── 005-fix-ipt-default.patch ├── mypatch-2410-rockchip-nft │ └── 005-fix-nft-default.patch ├── mypatch-2410 │ ├── 0001-mac80211-mt76-hostapd-add-support-for-256-QAM.patch │ ├── 0006-target-prefer-openssl-and-mesh.patch │ └── 0007-package-opkg-supports-curl-as-http-client.patch ├── mypatch-bbr-v3 │ ├── 0010-kernel-update-TCP-BBR-to-v3.patch │ ├── 0011-iproute2-ss-output-TCP-BBRv3-diag-information.patch │ └── 0015-iproute2-build-quirk.patch ├── openssl-bump-34 │ ├── 0001-openssl-update-3.4.0.patch │ └── 0002-openssl-update-3.4.1.patch ├── openssl-bump │ └── 0001-openssl-Update-to-3.5.0.patch └── package-for-2410 │ └── kochiya │ ├── pcre │ ├── Config.in │ └── Makefile │ └── smartdns │ ├── Makefile │ └── patches │ └── 0001-feature-support-fallback-dns-server.patch ├── openwrt-main ├── luci-patch │ └── 001-add-luci-info.patch └── lunatic7-revert │ ├── kodbox.patch │ └── luci-app-store.patch ├── package-configs ├── kmod_exclude_list.config ├── kmod_exclude_list_istoreos.config ├── kmod_exclude_list_kernel66.config ├── meson-ipt-2305.config ├── meson-nft-2305.config ├── mpc1917-istoreos.config ├── rockchip-ipt-2305.config ├── rockchip-nft-2305.config └── single │ ├── fmx1-ipt.config │ ├── fmx1-istore-ipt.config │ ├── fmx1-nft.config │ ├── mpc1917-ipt.config │ ├── mpc1917-nft.config │ ├── onecloud-ipt.config │ ├── onecloud-nft.config │ ├── r08-ipt.config │ ├── r08-istore-ipt.config │ ├── r08-nft.config │ ├── tpm312-ipt.config │ ├── tpm312-istore-ipt.config │ ├── tpm312-nft.config │ ├── ws1508-ipt.config │ └── ws1508-nft.config ├── package └── kochiya │ ├── autoset │ ├── Makefile │ └── files │ │ ├── 60-autoset-reload-rpcd │ │ ├── 998-wireless-set-ar71xx │ │ ├── arm │ │ ├── tempinfo │ │ └── usage │ │ ├── cpuinfo │ │ ├── cpuinfo-immo │ │ ├── def_uci │ │ ├── 998-wireless-set │ │ ├── zzz-autoset-ar71xx │ │ ├── zzz-autoset-ath79 │ │ ├── zzz-autoset-ipq │ │ ├── zzz-autoset-mediatek │ │ ├── zzz-autoset-meson │ │ ├── zzz-autoset-oneport │ │ ├── zzz-autoset-ramips │ │ ├── zzz-autoset-rockchip │ │ └── zzz-autoset-rockchip-siderouter │ │ ├── fix-emmc.sh │ │ ├── generic │ │ ├── 21_ethinfo.js │ │ ├── 60-autocore-reload-rpcd │ │ ├── cpuinfo │ │ ├── ethinfo │ │ └── luci-mod-status-autocore.json │ │ ├── luci-mod-status-autoset.json │ │ ├── resize.sh │ │ └── tempinfo │ ├── brlaser │ ├── Makefile │ └── files │ │ └── brlaser-set-cups-filter-permission │ ├── brook │ ├── Makefile │ └── patches │ │ ├── 010-update-iploc-to-fix-build-for-riscv64.patch │ │ └── 020-Bump-quic-go-to-v0.37.4-for-Go-1.21-and-1.20-support.patch │ ├── convert_translation.sh │ ├── coremark │ ├── Makefile │ ├── coremark │ └── coremark.sh │ ├── generate_ucitrack.sh │ ├── luci-app-banmac-ipt │ ├── Makefile │ ├── files │ │ ├── banmac.conf │ │ ├── banmac │ │ │ ├── ban.sh │ │ │ └── unban.sh │ │ └── banmaclog │ └── luasrc │ │ ├── controller │ │ └── banmac.lua │ │ └── model │ │ └── cbi │ │ └── banmac.lua │ ├── luci-app-banmac-nft │ ├── Makefile │ ├── files │ │ ├── banmac.conf │ │ ├── banmac │ │ │ ├── ban.sh │ │ │ └── unban.sh │ │ └── banmaclog │ └── luasrc │ │ ├── controller │ │ └── banmac.lua │ │ └── model │ │ └── cbi │ │ └── banmac.lua │ ├── luci-app-modechange │ ├── Makefile │ └── files │ │ ├── modechange │ │ ├── port-mode-core │ │ └── usr │ │ └── lib │ │ └── lua │ │ └── luci │ │ ├── controller │ │ └── modechange.lua │ │ └── model │ │ └── cbi │ │ └── modechange.lua │ ├── luci-app-nvr │ ├── Makefile │ ├── files │ │ ├── nvr.conf │ │ ├── nvr.init │ │ └── nvr │ │ │ ├── nvrcommon │ │ │ ├── nvrpush │ │ │ ├── nvrrecord │ │ │ ├── nvrstart │ │ │ └── nvrstop │ ├── luasrc │ │ ├── controller │ │ │ └── nvr.lua │ │ ├── i18n │ │ │ └── nvr.zh-cn.lmo │ │ ├── model │ │ │ └── cbi │ │ │ │ └── nvr.lua │ │ └── view │ │ │ └── nvr_status.htm │ └── nvr.zh-cn.po │ ├── luci-app-openvpn-server-client │ ├── Makefile │ ├── luasrc │ │ ├── controller │ │ │ └── openvpn-server.lua │ │ ├── model │ │ │ └── cbi │ │ │ │ └── openvpn-server │ │ │ │ ├── openvpn-server.lua │ │ │ │ ├── openvpn-server_ovpn.lua │ │ │ │ └── openvpn-server_run_log.lua │ │ └── view │ │ │ └── openvpn │ │ │ └── openvpn_status.htm │ ├── po │ │ ├── zh-cn │ │ │ └── openvpn-server.po │ │ └── zh_Hans │ └── root │ │ ├── etc │ │ ├── config │ │ │ └── openvpn │ │ ├── easy-rsa │ │ │ ├── keys │ │ │ │ ├── index.txt │ │ │ │ └── serial │ │ │ └── vars │ │ ├── genovpn.sh │ │ ├── openvpn │ │ │ ├── client │ │ │ │ ├── delclient.sh │ │ │ │ ├── startclient.sh │ │ │ │ └── stopclient.sh │ │ │ └── server │ │ │ │ ├── checkpsw.sh │ │ │ │ └── psw-file │ │ ├── openvpncert.sh │ │ ├── ovpnadd.conf │ │ └── uci-defaults │ │ │ └── openvpn │ │ └── usr │ │ └── share │ │ └── ucitrack │ │ └── luci-app-openvpn-server-client.json │ ├── luci-app-openvpn-server │ ├── Makefile │ ├── luasrc │ │ ├── controller │ │ │ └── openvpn-server.lua │ │ ├── model │ │ │ └── cbi │ │ │ │ └── openvpn-server │ │ │ │ ├── openvpn-server.lua │ │ │ │ ├── openvpn-server_pass_log.lua │ │ │ │ └── openvpn-server_run_log.lua │ │ └── view │ │ │ └── openvpn │ │ │ └── openvpn_status.htm │ ├── po │ │ ├── zh-cn │ │ │ └── openvpn-server.po │ │ └── zh_Hans │ └── root │ │ ├── etc │ │ ├── config │ │ │ └── openvpn │ │ ├── easy-rsa │ │ │ └── vars │ │ ├── genovpn.sh │ │ ├── openvpn │ │ │ └── server │ │ │ │ ├── checkpsw.sh │ │ │ │ └── psw-file │ │ ├── openvpncert.sh │ │ ├── ovpnadd.conf │ │ └── uci-defaults │ │ │ └── openvpn │ │ └── usr │ │ └── share │ │ └── ucitrack │ │ └── luci-app-openvpn-server.json │ ├── luci-app-turboacc-ipt │ ├── Makefile │ ├── luasrc │ │ ├── controller │ │ │ └── turboacc.lua │ │ ├── model │ │ │ └── cbi │ │ │ │ └── turboacc.lua │ │ └── view │ │ │ └── turboacc │ │ │ └── turboacc_status.htm │ ├── po │ │ ├── zh-cn │ │ │ └── turboacc.po │ │ └── zh_Hans │ └── root │ │ ├── etc │ │ ├── config │ │ │ └── turboacc │ │ ├── init.d │ │ │ └── turboacc │ │ └── uci-defaults │ │ │ └── luci-turboacc │ │ └── usr │ │ └── share │ │ └── ucitrack │ │ └── luci-app-turboacc.json │ ├── luci-app-wizard │ ├── Makefile │ ├── README.md │ ├── luasrc │ │ ├── controller │ │ │ └── netwizard.lua │ │ └── model │ │ │ └── cbi │ │ │ └── netwizard │ │ │ └── netwizard.lua │ ├── po │ │ ├── zh-cn │ │ ├── zh_Hans │ │ │ └── netwizard.po │ │ └── zh_cn │ └── root │ │ ├── etc │ │ ├── config │ │ │ └── netwizard │ │ ├── init.d │ │ │ └── netwizard │ │ └── uci-defaults │ │ │ ├── luci-netwizard │ │ │ └── luci-netwizard-defaults │ │ └── usr │ │ └── share │ │ └── ucitrack │ │ └── luci-app-wizard.json │ ├── n2n-offcial │ ├── Makefile │ ├── README.md │ └── etc │ │ └── init.d │ │ ├── edge │ │ └── supernode │ ├── trojan-go │ ├── Makefile │ └── test.sh │ └── trojan-plus │ └── Makefile └── refineconfig.sh /.gitignore: -------------------------------------------------------------------------------- 1 | /autoset*.tar.gz 2 | -------------------------------------------------------------------------------- /Amlogic_USB_ Burning_Tool_setup_v2.1.7.0.7z: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lunatickochiya/Matrix-Action-Openwrt/03a181a84e12a8024a08d82cd0433164c2eae5d0/Amlogic_USB_ Burning_Tool_setup_v2.1.7.0.7z -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2019 P3TERX 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /after_build.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | #================================================= 3 | # this script is from https://github.com/lunatickochiya/Lunatic-s805-rockchip-Action 4 | # Written By lunatickochiya 5 | # QQ group :286754582 https://jq.qq.com/?_wv=1027&k=5QgVYsC 6 | #================================================= 7 | 8 | 9 | #cd openwrt 10 | #mkdir bin/out2 11 | #mkdir kernelipks 12 | #mkdir ipks 13 | #mkdir sdk 14 | #rm -rf build_dir/target* build_dir/toolchain* staging_dir/target* staging_dir/toolchain* 15 | #cp -u -f bin/targets/*/*/packages/* kernelipks/ 16 | #cp -u -f bin/targets/*/*/* bin/out2/ 17 | #cp -u -f -r bin/packages/* ipks/ 18 | #zip -qq -r kernelipks.zip kernelipks 19 | #zip -qq -r out.zip bin/out2 20 | #zip -qq -r ipks.zip ipks 21 | #echo "Copy Zip Success!" 22 | 23 | #cp -f kernelipks.zip bin/targets/*/ 24 | #cp -f ipks.zip bin/targets/*/*/ 25 | # Enter your commands here, e.g. 26 | #echo "Copy IPK Success!" 27 | 28 | cd openwrt 29 | mkdir kernelipks 30 | mkdir ipks 31 | cp -u -f bin/targets/*/*/packages/* kernelipks/ 32 | cp -u -f -r bin/packages/* ipks/ 33 | zip -qq -r kernelipks.zip kernelipks 34 | zip -qq -r ipks.zip ipks 35 | echo "Copy ipk 2 Zip Success!" 36 | -------------------------------------------------------------------------------- /archive/ap8220-qosmio/0007-adjust.patch: -------------------------------------------------------------------------------- 1 | From b6f477a873c7f0e1df0e89aba5b28cc2a1a50ac2 Mon Sep 17 00:00:00 2001 2 | From: lunatickochiya <125438787@qq.com> 3 | Date: Thu, 27 Feb 2025 14:25:39 +0800 4 | Subject: [PATCH 07/10] adjust 5 | 6 | --- 7 | .gitignore | 4 ++++ 8 | feeds.conf.default | 1 + 9 | 2 files changed, 5 insertions(+) 10 | 11 | diff --git a/.gitignore b/.gitignore 12 | index ad04755919..6a8df8152f 100644 13 | --- a/.gitignore 14 | +++ b/.gitignore 15 | @@ -35,3 +35,7 @@ git-src 16 | .cproject 17 | .ccache 18 | .vscode* 19 | +package/kochiya/* 20 | +/feeds.conf.default 21 | +/compile.log 22 | +.config-* 23 | diff --git a/feeds.conf.default b/feeds.conf.default 24 | index 5dac9fa682..e0718ba113 100644 25 | --- a/feeds.conf.default 26 | +++ b/feeds.conf.default 27 | @@ -4,3 +4,4 @@ src-git routing https://git.openwrt.org/feed/routing.git;openwrt-24.10 28 | src-git telephony https://git.openwrt.org/feed/telephony.git;openwrt-24.10 29 | src-git nss_packages https://github.com/qosmio/nss-packages.git;NSS-12.5-K6.x 30 | src-git sqm_scripts_nss https://github.com/qosmio/sqm-scripts-nss.git 31 | +src-git lunatic7 https://github.com/lunatickochiya/actionbased-openwrt-packages.git 32 | -- 33 | 2.34.1 34 | 35 | -------------------------------------------------------------------------------- /archive/cmake-bump/0007-build-do-not-override-DESTDIR-for-cmake-ninja-host-b.patch: -------------------------------------------------------------------------------- 1 | From 097f28dc54c98373bda0eb4f22aa8da67ba5fdc8 Mon Sep 17 00:00:00 2001 2 | From: Felix Fietkau 3 | Date: Sat, 12 Jun 2021 14:32:41 +0200 4 | Subject: [PATCH 07/19] build: do not override DESTDIR for cmake ninja host 5 | builds 6 | 7 | The full prefix is already passed to cmake 8 | 9 | Signed-off-by: Felix Fietkau 10 | (cherry picked from commit 18430a34e6a287aaf6f13a110a3202dcac3b3d1a) 11 | --- 12 | include/cmake.mk | 4 ++-- 13 | 1 file changed, 2 insertions(+), 2 deletions(-) 14 | 15 | diff --git a/include/cmake.mk b/include/cmake.mk 16 | index 7ccd872365..b38d440039 100644 17 | --- a/include/cmake.mk 18 | +++ b/include/cmake.mk 19 | @@ -60,11 +60,11 @@ ifeq ($(HOST_USE_NINJA),1) 20 | endef 21 | 22 | define Host/Install/Default 23 | - +DESTDIR="$(HOST_INSTALL_DIR)" $(NINJA) -C $(HOST_BUILD_DIR) install 24 | + +$(NINJA) -C $(HOST_BUILD_DIR) install 25 | endef 26 | 27 | define Host/Uninstall/Default 28 | - +DESTDIR="$(HOST_INSTALL_DIR)" $(NINJA) -C $(HOST_BUILD_DIR) uninstall 29 | + +$(NINJA) -C $(HOST_BUILD_DIR) uninstall 30 | endef 31 | endif 32 | 33 | -- 34 | 2.34.1 35 | 36 | -------------------------------------------------------------------------------- /archive/cmake-bump/0012-tools-cmake-add-MAKE-config-variable.patch: -------------------------------------------------------------------------------- 1 | From 65e02eddd8244b766000dfb7ea515fb421378c03 Mon Sep 17 00:00:00 2001 2 | From: Rosen Penev 3 | Date: Wed, 9 Feb 2022 17:15:14 -0800 4 | Subject: [PATCH 12/19] tools/cmake: add MAKE config variable 5 | 6 | Makes sure that Ninja from staging_dir is used and nowhere else. 7 | 8 | Reported by reproducible builds project. Builds have been failing ever 9 | since tools/cmake started using Ninja. 10 | 11 | Signed-off-by: Rosen Penev 12 | (cherry picked from commit 0d25db7f17efbf5ab539508dd0a5d1eb739a1c43) 13 | --- 14 | tools/cmake/Makefile | 3 ++- 15 | 1 file changed, 2 insertions(+), 1 deletion(-) 16 | 17 | diff --git a/tools/cmake/Makefile b/tools/cmake/Makefile 18 | index 49dc61ee34..b749a8eb3d 100644 19 | --- a/tools/cmake/Makefile 20 | +++ b/tools/cmake/Makefile 21 | @@ -25,7 +25,8 @@ HOST_CONFIGURE_VARS += \ 22 | CC="$(HOSTCC_NOCACHE)" \ 23 | CXX="$(HOSTCXX_NOCACHE)" \ 24 | MAKEFLAGS="$(HOST_JOBS)" \ 25 | - CXXFLAGS="$(HOST_CFLAGS)" 26 | + CXXFLAGS="$(HOST_CFLAGS)" \ 27 | + MAKE="$(STAGING_DIR_HOST)/bin/ninja" 28 | 29 | HOST_CONFIGURE_ARGS := \ 30 | $(if $(MAKE_JOBSERVER),--parallel="$(MAKE_JOBSERVER)") \ 31 | -- 32 | 2.34.1 33 | 34 | -------------------------------------------------------------------------------- /archive/cmake-bump/0013-tools-cmake-fix-download-url.patch: -------------------------------------------------------------------------------- 1 | From 916de7d7f7f1ab437aeaf1eb27b98ef2a39e34f1 Mon Sep 17 00:00:00 2001 2 | From: leo chung 3 | Date: Thu, 31 Mar 2022 10:58:29 +0800 4 | Subject: [PATCH 13/19] tools/cmake: fix download url 5 | 6 | fix the cmake.org download url 7 | 8 | Signed-off-by: leo chung 9 | (cherry picked from commit 56f091d4677feb693d37959a3fa4af845dcce82e) 10 | --- 11 | tools/cmake/Makefile | 2 +- 12 | 1 file changed, 1 insertion(+), 1 deletion(-) 13 | 14 | diff --git a/tools/cmake/Makefile b/tools/cmake/Makefile 15 | index b749a8eb3d..1cd622063f 100644 16 | --- a/tools/cmake/Makefile 17 | +++ b/tools/cmake/Makefile 18 | @@ -13,7 +13,7 @@ PKG_CPE_ID:=cpe:/a:kitware:cmake 19 | 20 | PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz 21 | PKG_SOURCE_URL:=https://github.com/Kitware/CMake/releases/download/v$(PKG_VERSION)/ \ 22 | - https://cmake.org/files/v3.19/ 23 | + https://cmake.org/files/v3.21/ 24 | PKG_HASH:=94275e0b61c84bb42710f5320a23c6dcb2c6ee032ae7d2a616f53f68b3d21659 25 | 26 | HOST_BUILD_PARALLEL:=1 27 | -- 28 | 2.34.1 29 | 30 | -------------------------------------------------------------------------------- /archive/cmake-bump/1907/0002-build-support-cmake-verbose-for-host-builds.patch: -------------------------------------------------------------------------------- 1 | From 38993c9fd5ce968a9d4d7f0e7df25c32cce68e39 Mon Sep 17 00:00:00 2001 2 | From: Felix Fietkau 3 | Date: Sat, 14 Nov 2020 14:34:30 +0100 4 | Subject: [PATCH 02/14] build: support cmake verbose for host builds 5 | 6 | Signed-off-by: Felix Fietkau 7 | --- 8 | include/cmake.mk | 1 + 9 | 1 file changed, 1 insertion(+) 10 | 11 | diff --git a/include/cmake.mk b/include/cmake.mk 12 | index 1481546d41..0a20530a16 100644 13 | --- a/include/cmake.mk 14 | +++ b/include/cmake.mk 15 | @@ -4,6 +4,7 @@ PKG_INSTALL:=1 16 | 17 | ifneq ($(findstring c,$(OPENWRT_VERBOSE)),) 18 | MAKE_FLAGS+=VERBOSE=1 19 | + HOST_MAKE_FLAGS+=VERBOSE=1 20 | endif 21 | 22 | CMAKE_BINARY_DIR = $(PKG_BUILD_DIR)$(if $(CMAKE_BINARY_SUBDIR),/$(CMAKE_BINARY_SUBDIR)) 23 | -- 24 | 2.34.1 25 | 26 | -------------------------------------------------------------------------------- /archive/cmake-bump/1907/0006-tools-cmake-Update-to-3.16.5.patch: -------------------------------------------------------------------------------- 1 | From cfc679c0a65fcfade737aa3de62570f9009bc7b5 Mon Sep 17 00:00:00 2001 2 | From: Yufei Miao 3 | Date: Wed, 11 Mar 2020 13:38:53 +0800 4 | Subject: [PATCH 06/14] tools/cmake: Update to 3.16.5 5 | 6 | Update cmake to 3.16.5 7 | 8 | Signed-off-by: Yufei Miao 9 | --- 10 | tools/cmake/Makefile | 4 ++-- 11 | 1 file changed, 2 insertions(+), 2 deletions(-) 12 | 13 | diff --git a/tools/cmake/Makefile b/tools/cmake/Makefile 14 | index c8a36b0dba..336db5dd1f 100644 15 | --- a/tools/cmake/Makefile 16 | +++ b/tools/cmake/Makefile 17 | @@ -7,13 +7,13 @@ 18 | include $(TOPDIR)/rules.mk 19 | 20 | PKG_NAME:=cmake 21 | -PKG_VERSION:=3.16.2 22 | +PKG_VERSION:=3.16.5 23 | PKG_CPE_ID:=cpe:/a:kitware:cmake 24 | 25 | PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz 26 | PKG_SOURCE_URL:=https://github.com/Kitware/CMake/releases/download/v$(PKG_VERSION)/ \ 27 | https://cmake.org/files/v3.16/ 28 | -PKG_HASH:=8c09786ec60ca2be354c29829072c38113de9184f29928eb9da8446a5f2ce6a9 29 | +PKG_HASH:=5f760b50b8ecc9c0c37135fae5fbf00a2fef617059aa9d61c1bb91653e5a8bfc 30 | 31 | HOST_BUILD_PARALLEL:=1 32 | HOST_CONFIGURE_PARALLEL:=1 33 | -- 34 | 2.34.1 35 | 36 | -------------------------------------------------------------------------------- /archive/istore-patch-1222-elf/0004-target-set-default-package.patch: -------------------------------------------------------------------------------- 1 | From fc332c28e183a44faed09fa64477818913d91509 Mon Sep 17 00:00:00 2001 2 | From: lunatickochiya <125438787@qq.com> 3 | Date: Fri, 20 Dec 2024 22:00:35 +0800 4 | Subject: [PATCH 04/15] target:set default package 5 | 6 | --- 7 | include/target.mk | 8 ++++---- 8 | 1 file changed, 4 insertions(+), 4 deletions(-) 9 | 10 | diff --git a/include/target.mk b/include/target.mk 11 | index f8dae3a273..905bbd17ee 100644 12 | --- a/include/target.mk 13 | +++ b/include/target.mk 14 | @@ -17,7 +17,7 @@ DEFAULT_PACKAGES:=\ 15 | fstools \ 16 | libc \ 17 | libgcc \ 18 | - libustream-wolfssl \ 19 | + libustream-openssl \ 20 | logd \ 21 | mtd \ 22 | netifd \ 23 | @@ -54,10 +54,10 @@ DEFAULT_PACKAGES.nas:=\ 24 | mdadm 25 | # For router targets 26 | DEFAULT_PACKAGES.router:=\ 27 | - dnsmasq \ 28 | + dnsmasq-full \ 29 | firewall \ 30 | - ip6tables \ 31 | - iptables \ 32 | + iptables-zz-legacy \ 33 | + ip6tables-zz-legacy \ 34 | odhcp6c \ 35 | odhcpd-ipv6only \ 36 | ppp \ 37 | -- 38 | 2.34.1 39 | 40 | -------------------------------------------------------------------------------- /archive/istore-patch-1222-elf/0005-remove-default-uboot-rk35xx.patch: -------------------------------------------------------------------------------- 1 | From 1036c51264b484b444fe7cab8654ac3b8d4b2967 Mon Sep 17 00:00:00 2001 2 | From: lunatickochiya <125438787@qq.com> 3 | Date: Fri, 20 Dec 2024 22:02:06 +0800 4 | Subject: [PATCH 05/15] remove default uboot-rk35xx 5 | 6 | --- 7 | package/boot/uboot-rk35xx/Makefile | 1 - 8 | 1 file changed, 1 deletion(-) 9 | 10 | diff --git a/package/boot/uboot-rk35xx/Makefile b/package/boot/uboot-rk35xx/Makefile 11 | index 9de0d65618..9c1067cbd7 100644 12 | --- a/package/boot/uboot-rk35xx/Makefile 13 | +++ b/package/boot/uboot-rk35xx/Makefile 14 | @@ -29,7 +29,6 @@ define U-Boot/Default 15 | UENV:=default 16 | HIDDEN:=1 17 | BUILD_SUBTARGET:=rk35xx 18 | - DEFAULT:=y 19 | PKG_BUILD_DEPENDS:=arm-trusted-firmware-rockchip-vendor 20 | endef 21 | 22 | -- 23 | 2.34.1 24 | 25 | -------------------------------------------------------------------------------- /archive/kochiya-test/openvpn-easy-rsa/files/openvpn-easy-rsa.profile: -------------------------------------------------------------------------------- 1 | # default PKI dir 2 | #export EASYRSA=${EASYRSA:-/etc/easy-rsa} 3 | #export EASYRSA_PKI=${EASYRSA_PKI:-$EASYRSA/pki} 4 | #export EASYRSA_VARS_FILE=${EASYRSA_VARS_FILE:-$EASYRSA/vars} 5 | export EASYRSA_TEMP_DIR=${EASYRSA_TEMP_DIR:-${TMPDIR:-/tmp/}} 6 | -------------------------------------------------------------------------------- /archive/kochiya-test/openvpn-easy-rsa/files/openvpn-easy-rsa.upgrade: -------------------------------------------------------------------------------- 1 | /etc/easy-rsa/pki/ 2 | -------------------------------------------------------------------------------- /archive/kochiya-test/openvpn/files/etc/hotplug.d/openvpn/01-user: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | [ -e "/etc/openvpn.user" ] && { 4 | env -i ACTION="$ACTION" INSTANCE="$INSTANCE" \ 5 | /bin/sh \ 6 | /etc/openvpn.user \ 7 | $* 8 | } 9 | 10 | # Wrap user defined scripts on up/down/route-up/route-pre-down/ipchange events 11 | # Scriptp set with up/down/route-up/route-pre-down/ipchange in the openvpn config are also executed with the command=user_xxxx 12 | case "$ACTION" in 13 | up) command=$user_up ;; 14 | down) command=$user_down ;; 15 | route-up) command=$user_route_up ;; 16 | route-pre-down) command=$user_route_pre_down ;; 17 | ipchange) command=$user_ipchange ;; 18 | *) command= ;; 19 | esac 20 | 21 | if [ -n "$command" ]; then 22 | shift 23 | exec /bin/sh -c "$command $*" 24 | fi 25 | 26 | exit 0 27 | 28 | -------------------------------------------------------------------------------- /archive/kochiya-test/openvpn/files/etc/openvpn.user: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | # 3 | # This file is interpreted as shell script. 4 | # Put your custom openvpn action here, they will 5 | # be executed with each opevnp event. 6 | # 7 | # $ACTION 8 | # down action is generated after the TUN/TAP device is closed 9 | # up action is generated after the TUN/TAP device is opened 10 | # $INSTANCE Name of the openvpn instance which went up or down 11 | 12 | -------------------------------------------------------------------------------- /archive/kochiya-test/openvpn/files/lib/functions/openvpn.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | get_openvpn_option() { 4 | local config="$1" 5 | local variable="$2" 6 | local option="$3" 7 | 8 | local value="$(sed -rne 's/^[ \t]*'"$option"'[ \t]+'"'([^']+)'"'[ \t]*$/\1/p' "$config" | tail -n1)" 9 | [ -n "$value" ] || value="$(sed -rne 's/^[ \t]*'"$option"'[ \t]+"(([^"\\]|\\.)+)"[ \t]*$/\1/p' "$config" | tail -n1 | sed -re 's/\\(.)/\1/g')" 10 | [ -n "$value" ] || value="$(sed -rne 's/^[ \t]*'"$option"'[ \t]+(([^ \t\\]|\\.)+)[ \t]*$/\1/p' "$config" | tail -n1 | sed -re 's/\\(.)/\1/g')" 11 | [ -n "$value" ] || return 1 12 | 13 | export -n "$variable=$value" 14 | return 0 15 | } 16 | 17 | -------------------------------------------------------------------------------- /archive/kochiya-test/openvpn/files/openvpn.upgrade: -------------------------------------------------------------------------------- 1 | /etc/openvpn/ 2 | -------------------------------------------------------------------------------- /archive/kochiya-test/openvpn/files/usr/libexec/openvpn-hotplug: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | ACTION=$1 4 | shift 5 | INSTANCE=$1 6 | shift 7 | 8 | export ACTION=$ACTION 9 | export INSTANCE=$INSTANCE 10 | exec /sbin/hotplug-call openvpn "$@" 11 | -------------------------------------------------------------------------------- /archive/kochiya-test/openvpn/patches/100-mbedtls-disable-runtime-version-check.patch: -------------------------------------------------------------------------------- 1 | --- a/src/openvpn/ssl_mbedtls.c 2 | +++ b/src/openvpn/ssl_mbedtls.c 3 | @@ -1612,7 +1612,7 @@ const char * 4 | get_ssl_library_version(void) 5 | { 6 | static char mbedtls_version[30]; 7 | - unsigned int pv = mbedtls_version_get_number(); 8 | + unsigned int pv = MBEDTLS_VERSION_NUMBER; 9 | sprintf( mbedtls_version, "mbed TLS %d.%d.%d", 10 | (pv>>24)&0xff, (pv>>16)&0xff, (pv>>8)&0xff ); 11 | return mbedtls_version; 12 | -------------------------------------------------------------------------------- /archive/kochiya-test/openvpn/patches/101-Fix-EVP_PKEY_CTX_-compilation-with-wolfSSL.patch: -------------------------------------------------------------------------------- 1 | --- a/src/openvpn/crypto_openssl.c 2 | +++ b/src/openvpn/crypto_openssl.c 3 | @@ -49,7 +49,7 @@ 4 | #include 5 | #include 6 | 7 | -#if (OPENSSL_VERSION_NUMBER >= 0x10100000L) && !defined(LIBRESSL_VERSION_NUMBER) 8 | +#if (OPENSSL_VERSION_NUMBER >= 0x10100000L) && !defined(ENABLE_CRYPTO_WOLFSSL) && !defined(LIBRESSL_VERSION_NUMBER) 9 | #include 10 | #endif 11 | #if OPENSSL_VERSION_NUMBER >= 0x30000000L 12 | @@ -1374,7 +1374,7 @@ memcmp_constant_time(const void *a, cons 13 | return CRYPTO_memcmp(a, b, size); 14 | } 15 | 16 | -#if (OPENSSL_VERSION_NUMBER >= 0x10100000L) && !defined(LIBRESSL_VERSION_NUMBER) 17 | +#if (OPENSSL_VERSION_NUMBER >= 0x10100000L) && !defined(ENABLE_CRYPTO_WOLFSSL) && !defined(LIBRESSL_VERSION_NUMBER) 18 | bool 19 | ssl_tls1_PRF(const uint8_t *seed, int seed_len, const uint8_t *secret, 20 | int secret_len, uint8_t *output, int output_len) 21 | -------------------------------------------------------------------------------- /archive/kochiya-test/openvpn/patches/102-Disable-external-ec-key-support-when-building-with-wolfSSL.patch: -------------------------------------------------------------------------------- 1 | --- a/src/openvpn/ssl_openssl.c 2 | +++ b/src/openvpn/ssl_openssl.c 3 | @@ -1347,7 +1347,7 @@ err: 4 | return 0; 5 | } 6 | 7 | -#if OPENSSL_VERSION_NUMBER > 0x10100000L && !defined(OPENSSL_NO_EC) 8 | +#if OPENSSL_VERSION_NUMBER > 0x10100000L && !defined(OPENSSL_NO_EC) && !defined(ENABLE_CRYPTO_WOLFSSL) 9 | 10 | /* called when EC_KEY is destroyed */ 11 | static void 12 | @@ -1508,7 +1508,7 @@ tls_ctx_use_management_external_key(stru 13 | goto cleanup; 14 | } 15 | } 16 | -#if (OPENSSL_VERSION_NUMBER > 0x10100000L) && !defined(OPENSSL_NO_EC) 17 | +#if (OPENSSL_VERSION_NUMBER > 0x10100000L) && !defined(OPENSSL_NO_EC) && !defined(ENABLE_CRYPTO_WOLFSSL) 18 | #if OPENSSL_VERSION_NUMBER < 0x30000000L 19 | else if (EVP_PKEY_id(pkey) == EVP_PKEY_EC) 20 | #else /* OPENSSL_VERSION_NUMBER < 0x30000000L */ 21 | -------------------------------------------------------------------------------- /archive/kochiya-test/openvpn/patches/103-define-LN_serialNumber-for-wolfSSL.patch: -------------------------------------------------------------------------------- 1 | --- a/src/openvpn/ssl_verify_openssl.c 2 | +++ b/src/openvpn/ssl_verify_openssl.c 3 | @@ -267,6 +267,9 @@ backend_x509_get_username(char *common_n 4 | return FAILURE; 5 | } 6 | } 7 | +#if defined(ENABLE_CRYPTO_WOLFSSL) 8 | + #define LN_serialNumber "serialNumber" 9 | +#endif 10 | else if (strcmp(LN_serialNumber, x509_username_field) == 0) 11 | { 12 | ASN1_INTEGER *asn1_i = X509_get_serialNumber(peer_cert); 13 | -------------------------------------------------------------------------------- /archive/kochiya-test/openvpn/test.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | case "$1" in 4 | "openvpn-mbedtls") 5 | openvpn --version | grep "$2.*SSL (mbed TLS)" 6 | ;; 7 | "openvpn-openssl"|"openvpn-wolfssl") 8 | openvpn --version | grep "$2.*SSL (OpenSSL)" 9 | ;; 10 | esac 11 | -------------------------------------------------------------------------------- /archive/package/openvpn-easy-rsa/files/easy-rsa.index: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lunatickochiya/Matrix-Action-Openwrt/03a181a84e12a8024a08d82cd0433164c2eae5d0/archive/package/openvpn-easy-rsa/files/easy-rsa.index -------------------------------------------------------------------------------- /archive/package/openvpn-easy-rsa/files/easy-rsa.serial: -------------------------------------------------------------------------------- 1 | 01 2 | -------------------------------------------------------------------------------- /archive/package/openvpn-easy-rsa/patches/103-openssl_1.1.x_compat.patch: -------------------------------------------------------------------------------- 1 | --- a/easy-rsa/2.0/openssl-1.0.0.cnf 2 | +++ b/easy-rsa/2.0/openssl-1.0.0.cnf 3 | @@ -1,9 +1,8 @@ 4 | -# For use with easy-rsa version 2.0 and OpenSSL 1.0.0* 5 | +# For use with easy-rsa version 2.0 and OpenSSL 1.1.* 6 | 7 | # This definition stops the following lines choking if HOME isn't 8 | # defined. 9 | HOME = . 10 | -RANDFILE = $ENV::HOME/.rnd 11 | openssl_conf = openssl_init 12 | 13 | [ openssl_init ] 14 | --- a/easy-rsa/2.0/whichopensslcnf 15 | +++ b/easy-rsa/2.0/whichopensslcnf 16 | @@ -9,6 +9,8 @@ 17 | cnf="$1/openssl-0.9.8.cnf" 18 | elif $OPENSSL version | grep -E "1\.0\.[[:digit:]][[:alnum:]]?" > /dev/null; then 19 | cnf="$1/openssl-1.0.0.cnf" 20 | + elif $OPENSSL version | grep -E "1\.1\.[[:digit:]][[:alnum:]]?" > /dev/null; then 21 | + cnf="$1/openssl-1.1.0.cnf" 22 | else 23 | cnf="$1/openssl.cnf" 24 | fi 25 | -------------------------------------------------------------------------------- /env/common-rk3399.txt: -------------------------------------------------------------------------------- 1 | USE_Cache="true" 2 | UPLOAD_BIN_DIR="false" 3 | UPLOAD_IPK_DIR="true" 4 | UPLOAD_FIRMWARE="true" 5 | UPLOAD_COWTRANSFER="false" 6 | UPLOAD_WETRANSFER="false" 7 | UPLOAD_RELEASE="false" 8 | UPLOAD_ALLKMOD="true" 9 | UPLOAD_SYSUPGRADE="true" 10 | -------------------------------------------------------------------------------- /env/common.txt: -------------------------------------------------------------------------------- 1 | USE_Cache="true" 2 | UPLOAD_BIN_DIR="false" 3 | UPLOAD_FIRMWARE="true" 4 | UPLOAD_COWTRANSFER="false" 5 | UPLOAD_WETRANSFER="false" 6 | UPLOAD_RELEASE="true" 7 | UPLOAD_IPK_DIR="true" 8 | UPLOAD_ALLKMOD="true" 9 | UPLOAD_SYSUPGRADE="true" 10 | -------------------------------------------------------------------------------- /env/istoreos-22.03.repo: -------------------------------------------------------------------------------- 1 | REPO_URL="https://github.com/istoreos/istoreos" 2 | REPO_BRANCH="istoreos-22.03" 3 | DIY_SH="diy-istoreos.sh" 4 | DIY_SH_AFB="after_build.sh" 5 | DIY_SH_RFC="refineconfig.sh" 6 | -------------------------------------------------------------------------------- /env/lunatickochiya-2203-s805.repo: -------------------------------------------------------------------------------- 1 | REPO_URL="https://github.com/lunatickochiya/openwrt-22.03-s805" 2 | REPO_BRANCH="openwrt-22.03.5" 3 | DIY_SH="diy.sh" 4 | DIY_SH_AFB="after_build.sh" 5 | DIY_SH_RFC="refineconfig.sh" 6 | BURN_UBOOT_IMG_URL="https://raw.githubusercontent.com/syb999/uboot-onecloud/main/prebuild/eMMC.burn.img" 7 | AMLIMG_TOOL_URL="https://github.com/hzyitc/AmlImg/releases/download/v0.3.1/AmlImg_v0.3.1_linux_amd64" 8 | -------------------------------------------------------------------------------- /env/openwrt-23.05.repo: -------------------------------------------------------------------------------- 1 | REPO_URL="https://github.com/openwrt/openwrt" 2 | REPO_BRANCH="openwrt-23.05" 3 | DIY_SH="diy-2305.sh" 4 | DIY_SH_AFB="after_build.sh" 5 | DIY_SH_RFC="refineconfig.sh" 6 | BURN_UBOOT_IMG_URL="https://raw.githubusercontent.com/syb999/uboot-onecloud/main/prebuild/eMMC.burn.img" 7 | AMLIMG_TOOL_URL="https://github.com/hzyitc/AmlImg/releases/download/v0.3.1/AmlImg_v0.3.1_linux_amd64" 8 | -------------------------------------------------------------------------------- /env/openwrt-24.10.repo: -------------------------------------------------------------------------------- 1 | REPO_URL="https://github.com/openwrt/openwrt" 2 | REPO_BRANCH="openwrt-24.10" 3 | DIY_SH="diy-2410.sh" 4 | DIY_SH_AFB="after_build.sh" 5 | DIY_SH_RFC="refineconfig.sh" 6 | BURN_UBOOT_IMG_URL="https://raw.githubusercontent.com/syb999/uboot-onecloud/main/prebuild/eMMC.burn.img" 7 | AMLIMG_TOOL_URL="https://github.com/hzyitc/AmlImg/releases/download/v0.3.1/AmlImg_v0.3.1_linux_amd64" 8 | -------------------------------------------------------------------------------- /env/openwrt-main.repo: -------------------------------------------------------------------------------- 1 | REPO_URL="https://github.com/openwrt/openwrt" 2 | REPO_BRANCH="main" 3 | DIY_SH="diy-main.sh" 4 | DIY_SH_AFB="after_build.sh" 5 | DIY_SH_RFC="refineconfig.sh" 6 | BURN_UBOOT_IMG_URL="https://raw.githubusercontent.com/syb999/uboot-onecloud/main/prebuild/eMMC.burn.img" 7 | AMLIMG_TOOL_URL="https://github.com/hzyitc/AmlImg/releases/download/v0.3.1/AmlImg_v0.3.1_linux_amd64" 8 | -------------------------------------------------------------------------------- /feeds-packages/openwrt-23.05/feeds/telephony/libs/dahdi-linux/patches/003-fix-oslec-build.patch: -------------------------------------------------------------------------------- 1 | --- a/drivers/dahdi/Kbuild 2 | +++ b/drivers/dahdi/Kbuild 3 | @@ -72,9 +72,8 @@ obj-m += $(DAHDI_MODULES_EXTRA) 4 | # If you want to build OSLEC, include the code in the standard location: 5 | # drivers/staging/echo . The DAHDI OSLEC echo canceller will be built as 6 | # well: 7 | -ifneq (,$(wildcard $(src)/../staging/echo/echo.c)) 8 | +ifneq (,$(wildcard $(src)/../staging/echo/oslec.h)) 9 | obj-m += dahdi_echocan_oslec.o 10 | -obj-m += ../staging/echo/echo.o 11 | endif 12 | 13 | CFLAGS_MODULE += -I$(DAHDI_INCLUDE) -I$(src) -Wno-format-truncation 14 | -------------------------------------------------------------------------------- /feeds-packages/openwrt-23.05/feeds/telephony/libs/dahdi-linux/patches/050-re-enable-ztdummy.patch: -------------------------------------------------------------------------------- 1 | --- a/drivers/dahdi/Kbuild 2 | +++ b/drivers/dahdi/Kbuild 3 | @@ -1,5 +1,5 @@ 4 | obj-$(DAHDI_BUILD_ALL)$(CONFIG_DAHDI) += dahdi.o 5 | -#obj-$(DAHDI_BUILD_ALL)$(CONFIG_DAHDI_DUMMY) += dahdi_dummy.o 6 | +obj-$(DAHDI_BUILD_ALL)$(CONFIG_DAHDI_DUMMY) += dahdi_dummy.o 7 | obj-$(DAHDI_BUILD_ALL)$(CONFIG_DAHDI_DYNAMIC) += dahdi_dynamic.o 8 | obj-$(DAHDI_BUILD_ALL)$(CONFIG_DAHDI_DYNAMIC_LOC) += dahdi_dynamic_loc.o 9 | obj-$(DAHDI_BUILD_ALL)$(CONFIG_DAHDI_DYNAMIC_ETH) += dahdi_dynamic_eth.o 10 | -------------------------------------------------------------------------------- /feeds-packages/openwrt-23.05/feeds/telephony/libs/dahdi-linux/patches/070-no-firmware-blob-download.patch: -------------------------------------------------------------------------------- 1 | --- a/Makefile 2 | +++ b/Makefile 3 | @@ -80,12 +80,12 @@ include/dahdi/version.h: FORCE 4 | fi 5 | @rm -f $@.tmp 6 | 7 | -prereq: include/dahdi/version.h firmware-loaders 8 | +prereq: include/dahdi/version.h 9 | 10 | stackcheck: $(CHECKSTACK) modules 11 | objdump -d drivers/dahdi/*.ko drivers/dahdi/*/*.ko | $(CHECKSTACK) 12 | 13 | -install: all install-modules install-include install-firmware install-xpp-firm 14 | +install: all install-modules install-include 15 | @echo "###################################################" 16 | @echo "###" 17 | @echo "### DAHDI installed successfully." 18 | -------------------------------------------------------------------------------- /feeds-packages/openwrt-23.05/feeds/telephony/libs/dahdi-linux/patches/200-dahdi-use-fallthrough-where-needed.patch: -------------------------------------------------------------------------------- 1 | From f9bc391e1cd830c830b3b4fb5fd46a59b41de373 Mon Sep 17 00:00:00 2001 2 | From: Christian Marangi 3 | Date: Fri, 12 May 2023 20:18:13 +0200 4 | Subject: [PATCH 1/6] dahdi: use fallthrough where needed 5 | 6 | Use fallthrough instead of comment to fix compilation warning. 7 | 8 | Signed-off-by: Christian Marangi 9 | --- 10 | drivers/dahdi/dahdi-base.c | 2 +- 11 | 1 file changed, 1 insertion(+), 1 deletion(-) 12 | 13 | --- a/drivers/dahdi/dahdi-base.c 14 | +++ b/drivers/dahdi/dahdi-base.c 15 | @@ -8645,7 +8645,7 @@ void dahdi_rbsbits(struct dahdi_chan *ch 16 | break; 17 | case DAHDI_SIG_FXSKS: /* FXS Kewlstart */ 18 | case DAHDI_SIG_FXSGS: /* FXS Groundstart */ 19 | - /* Fall through */ 20 | + fallthrough; 21 | case DAHDI_SIG_FXSLS: 22 | if (!(cursig & DAHDI_BBIT)) { 23 | /* Check for ringing first */ 24 | -------------------------------------------------------------------------------- /feeds-packages/openwrt-23.05/feeds/telephony/libs/dahdi-linux/patches/207-opvxa1200-unused-variable.patch: -------------------------------------------------------------------------------- 1 | --- a/drivers/dahdi/opvxa1200/Kbuild 2 | +++ b/drivers/dahdi/opvxa1200/Kbuild 3 | @@ -1,6 +1,6 @@ 4 | obj-$(DAHDI_BUILD_ALL)$(CONFIG_DAHDI_OPVXA1200) += opvxa1200.o 5 | 6 | -EXTRA_CFLAGS += -I$(src)/.. -Wno-undef 7 | +EXTRA_CFLAGS += -I$(src)/.. -Wno-undef -Wno-error=unused-variable 8 | 9 | opvxa1200-objs := base.o 10 | 11 | -------------------------------------------------------------------------------- /machine-configs/meson-ipt.config: -------------------------------------------------------------------------------- 1 | CONFIG_TARGET_meson=y 2 | CONFIG_TARGET_meson_meson8b=y 3 | CONFIG_TARGET_MULTI_PROFILE=y 4 | CONFIG_TARGET_DEVICE_meson_meson8b_DEVICE_thunder-onecloud=y 5 | CONFIG_TARGET_DEVICE_meson_meson8b_DEVICE_thunder-ws1508=y 6 | CONFIG_KERNEL_BUILD_USER="LunaticKochiya" 7 | CONFIG_KERNEL_BUILD_DOMAIN="Github" 8 | -------------------------------------------------------------------------------- /machine-configs/meson-nft.config: -------------------------------------------------------------------------------- 1 | CONFIG_TARGET_meson=y 2 | CONFIG_TARGET_meson_meson8b=y 3 | CONFIG_TARGET_MULTI_PROFILE=y 4 | CONFIG_TARGET_DEVICE_meson_meson8b_DEVICE_thunder-onecloud=y 5 | CONFIG_TARGET_DEVICE_meson_meson8b_DEVICE_thunder-ws1508=y 6 | CONFIG_KERNEL_BUILD_USER="LunaticKochiya" 7 | CONFIG_KERNEL_BUILD_DOMAIN="Github" 8 | -------------------------------------------------------------------------------- /machine-configs/rockchip-ipt.config: -------------------------------------------------------------------------------- 1 | CONFIG_TARGET_rockchip=y 2 | CONFIG_TARGET_rockchip_armv8=y 3 | CONFIG_TARGET_rockchip_armv8_DEVICE_rocktech-mpc1917=y 4 | CONFIG_KERNEL_BUILD_USER="LunaticKochiya" 5 | CONFIG_KERNEL_BUILD_DOMAIN="Github" 6 | -------------------------------------------------------------------------------- /machine-configs/rockchip-nft.config: -------------------------------------------------------------------------------- 1 | CONFIG_TARGET_rockchip=y 2 | CONFIG_TARGET_rockchip_armv8=y 3 | CONFIG_TARGET_rockchip_armv8_DEVICE_rocktech-mpc1917=y 4 | CONFIG_KERNEL_BUILD_USER="LunaticKochiya" 5 | CONFIG_KERNEL_BUILD_DOMAIN="Github" 6 | -------------------------------------------------------------------------------- /machine-configs/single/fmx1-ipt.config: -------------------------------------------------------------------------------- 1 | CONFIG_TARGET_rockchip=y 2 | CONFIG_TARGET_rockchip_armv8=y 3 | CONFIG_TARGET_rockchip_armv8_DEVICE_chiptrip-fmx1-pro=y 4 | CONFIG_KERNEL_BUILD_USER="LunaticKochiya" 5 | CONFIG_KERNEL_BUILD_DOMAIN="Github" 6 | -------------------------------------------------------------------------------- /machine-configs/single/fmx1-nft.config: -------------------------------------------------------------------------------- 1 | CONFIG_TARGET_rockchip=y 2 | CONFIG_TARGET_rockchip_armv8=y 3 | CONFIG_TARGET_rockchip_armv8_DEVICE_chiptrip-fmx1-pro=y 4 | CONFIG_KERNEL_BUILD_USER="LunaticKochiya" 5 | CONFIG_KERNEL_BUILD_DOMAIN="Github" 6 | -------------------------------------------------------------------------------- /machine-configs/single/mpc1917-ipt.config: -------------------------------------------------------------------------------- 1 | CONFIG_TARGET_rockchip=y 2 | CONFIG_TARGET_rockchip_armv8=y 3 | CONFIG_TARGET_rockchip_armv8_DEVICE_rocktech-mpc1917=y 4 | CONFIG_KERNEL_BUILD_USER="LunaticKochiya" 5 | CONFIG_KERNEL_BUILD_DOMAIN="Github" 6 | -------------------------------------------------------------------------------- /machine-configs/single/mpc1917-nft.config: -------------------------------------------------------------------------------- 1 | CONFIG_TARGET_rockchip=y 2 | CONFIG_TARGET_rockchip_armv8=y 3 | CONFIG_TARGET_rockchip_armv8_DEVICE_rocktech-mpc1917=y 4 | CONFIG_KERNEL_BUILD_USER="LunaticKochiya" 5 | CONFIG_KERNEL_BUILD_DOMAIN="Github" 6 | -------------------------------------------------------------------------------- /machine-configs/single/onecloud-ipt.config: -------------------------------------------------------------------------------- 1 | CONFIG_TARGET_meson=y 2 | CONFIG_TARGET_meson_meson8b=y 3 | 4 | CONFIG_TARGET_meson_meson8b_DEVICE_thunder-onecloud=y 5 | 6 | CONFIG_KERNEL_BUILD_USER="LunaticKochiya" 7 | CONFIG_KERNEL_BUILD_DOMAIN="Github" 8 | -------------------------------------------------------------------------------- /machine-configs/single/onecloud-nft.config: -------------------------------------------------------------------------------- 1 | CONFIG_TARGET_meson=y 2 | CONFIG_TARGET_meson_meson8b=y 3 | 4 | CONFIG_TARGET_meson_meson8b_DEVICE_thunder-onecloud=y 5 | 6 | CONFIG_KERNEL_BUILD_USER="LunaticKochiya" 7 | CONFIG_KERNEL_BUILD_DOMAIN="Github" 8 | -------------------------------------------------------------------------------- /machine-configs/single/r08-ipt.config: -------------------------------------------------------------------------------- 1 | CONFIG_TARGET_rockchip=y 2 | CONFIG_TARGET_rockchip_armv8=y 3 | CONFIG_TARGET_rockchip_armv8_DEVICE_r08=y 4 | CONFIG_KERNEL_BUILD_USER="LunaticKochiya" 5 | CONFIG_KERNEL_BUILD_DOMAIN="Github" 6 | -------------------------------------------------------------------------------- /machine-configs/single/r08-nft.config: -------------------------------------------------------------------------------- 1 | CONFIG_TARGET_rockchip=y 2 | CONFIG_TARGET_rockchip_armv8=y 3 | CONFIG_TARGET_rockchip_armv8_DEVICE_r08=y 4 | CONFIG_KERNEL_BUILD_USER="LunaticKochiya" 5 | CONFIG_KERNEL_BUILD_DOMAIN="Github" 6 | -------------------------------------------------------------------------------- /machine-configs/single/tpm312-ipt.config: -------------------------------------------------------------------------------- 1 | CONFIG_TARGET_rockchip=y 2 | CONFIG_TARGET_rockchip_armv8=y 3 | CONFIG_TARGET_rockchip_armv8_DEVICE_wesine-tpm312=y 4 | CONFIG_KERNEL_BUILD_USER="LunaticKochiya" 5 | CONFIG_KERNEL_BUILD_DOMAIN="Github" 6 | -------------------------------------------------------------------------------- /machine-configs/single/tpm312-nft.config: -------------------------------------------------------------------------------- 1 | CONFIG_TARGET_rockchip=y 2 | CONFIG_TARGET_rockchip_armv8=y 3 | CONFIG_TARGET_rockchip_armv8_DEVICE_wesine-tpm312=y 4 | CONFIG_KERNEL_BUILD_USER="LunaticKochiya" 5 | CONFIG_KERNEL_BUILD_DOMAIN="Github" 6 | -------------------------------------------------------------------------------- /machine-configs/single/ws1508-ipt.config: -------------------------------------------------------------------------------- 1 | CONFIG_TARGET_meson=y 2 | CONFIG_TARGET_meson_meson8b=y 3 | 4 | CONFIG_TARGET_meson_meson8b_DEVICE_thunder-ws1508=y 5 | 6 | CONFIG_KERNEL_BUILD_USER="LunaticKochiya" 7 | CONFIG_KERNEL_BUILD_DOMAIN="Github" 8 | -------------------------------------------------------------------------------- /machine-configs/single/ws1508-nft.config: -------------------------------------------------------------------------------- 1 | CONFIG_TARGET_meson=y 2 | CONFIG_TARGET_meson_meson8b=y 3 | 4 | CONFIG_TARGET_meson_meson8b_DEVICE_thunder-ws1508=y 5 | 6 | CONFIG_KERNEL_BUILD_USER="LunaticKochiya" 7 | CONFIG_KERNEL_BUILD_DOMAIN="Github" 8 | -------------------------------------------------------------------------------- /openwrt-2203/files-for-istoreos/package/boot/uboot-rockchip/patches/900-arm-add-dts-files.patch: -------------------------------------------------------------------------------- 1 | --- a/arch/arm/dts/Makefile 2 | +++ b/arch/arm/dts/Makefile 3 | @@ -134,6 +134,9 @@ 4 | rk3399-nanopi-neo4.dtb \ 5 | rk3399-nanopi-r4s.dtb \ 6 | rk3399-nanopi-r4se.dtb \ 7 | + rk3399-r08.dtb \ 8 | + rk3399-tpm312.dtb \ 9 | + rk3399-chiptrip-fmx1-pro.dtb \ 10 | rk3399-orangepi.dtb \ 11 | rk3399-pinebook-pro.dtb \ 12 | rk3399-puma-haikou.dtb \ 13 | 14 | -------------------------------------------------------------------------------- /openwrt-2203/files-for-istoreos/package/boot/uboot-rockchip/src/arch/arm/dts/rk3399-chiptrip-fmx1-pro-u-boot.dtsi: -------------------------------------------------------------------------------- 1 | // SPDX-License-Identifier: GPL-2.0+ 2 | #include "rk3399-u-boot.dtsi" 3 | 4 | #include "rk3399-sdram-lpddr3-4GB-1600.dtsi" 5 | / { 6 | chosen { 7 | u-boot,spl-boot-order = "same-as-spl", &sdhci, &sdmmc; 8 | }; 9 | }; 10 | 11 | &vdd_log { 12 | regulator-init-microvolt = <950000>; 13 | }; 14 | -------------------------------------------------------------------------------- /openwrt-2203/files-for-istoreos/package/boot/uboot-rockchip/src/arch/arm/dts/rk3399-r08-u-boot.dtsi: -------------------------------------------------------------------------------- 1 | // SPDX-License-Identifier: GPL-2.0+ 2 | #include "rk3399-u-boot.dtsi" 3 | #include "rk3399-sdram-lpddr4-100.dtsi" 4 | 5 | / { 6 | chosen { 7 | u-boot,spl-boot-order = "same-as-spl", &sdhci, &sdmmc; 8 | }; 9 | }; 10 | 11 | &vdd_log { 12 | regulator-init-microvolt = <950000>; 13 | }; 14 | -------------------------------------------------------------------------------- /openwrt-2203/files-for-istoreos/package/boot/uboot-rockchip/src/arch/arm/dts/rk3399-tpm312-u-boot.dtsi: -------------------------------------------------------------------------------- 1 | // SPDX-License-Identifier: GPL-2.0+ 2 | #include "rk3399-u-boot.dtsi" 3 | #include "rk3399-sdram-lpddr4-100.dtsi" 4 | 5 | / { 6 | chosen { 7 | u-boot,spl-boot-order = "same-as-spl", &sdhci; 8 | }; 9 | }; 10 | 11 | &vdd_log { 12 | regulator-init-microvolt = <950000>; 13 | }; 14 | -------------------------------------------------------------------------------- /openwrt-2203/files-for-istoreos/target/linux/rockchip/armv8/patches-5.10/999-arm64-dts-rockchip-add-rk3399.patch: -------------------------------------------------------------------------------- 1 | --- a/arch/arm64/boot/dts/rockchip/Makefile 2 | +++ b/arch/arm64/boot/dts/rockchip/Makefile 3 | @@ -49,6 +49,9 @@ 4 | dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3399-rock960.dtb 5 | dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3399-rockpro64-v2.dtb 6 | dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3399-rockpro64.dtb 7 | +dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3399-chiptrip-fmx1-pro.dtb 8 | +dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3399-r08.dtb 9 | +dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3399-wesine-tpm312.dtb 10 | dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3399-sapphire.dtb 11 | dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3399-sapphire-excavator.dtb 12 | dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3399pro-rock-pi-n10.dtb 13 | -------------------------------------------------------------------------------- /openwrt-2203/istoreos-package-patch/3-frr.patch: -------------------------------------------------------------------------------- 1 | diff --git a/net/frr/Makefile b/net/frr/Makefile 2 | index 22682084e..19e5d5db7 100644 3 | --- a/net/frr/Makefile 4 | +++ b/net/frr/Makefile 5 | @@ -60,7 +60,7 @@ PKG_BUILD_PARALLEL:=1 6 | PKG_INSTALL:=1 7 | 8 | PKG_BUILD_DEPENDS:=frr/host 9 | -HOST_BUILD_DEPENDS:=python3/host elfutils/host 10 | +HOST_BUILD_DEPENDS:=python3/host 11 | 12 | include $(INCLUDE_DIR)/package.mk 13 | include $(INCLUDE_DIR)/host-build.mk 14 | -------------------------------------------------------------------------------- /openwrt-2203/package-for-istoreos/kochiya-istore/cups-bjnp/patches/010-gcc-12.patch: -------------------------------------------------------------------------------- 1 | --- a/bjnp-commands.c 2 | +++ b/bjnp-commands.c 3 | @@ -185,10 +185,8 @@ get_printer_id(http_addr_t *addr, char * 4 | 5 | /* set IEEE1284_id */ 6 | 7 | - if (printer_id != NULL) { 8 | strncpy(printer_id, id.udp_identity_response.id, id_len); 9 | printer_id[id_len] = '\0'; 10 | - } 11 | 12 | bjnp_debug(LOG_INFO, "Identity = %s\n", printer_id); 13 | 14 | -------------------------------------------------------------------------------- /openwrt-2203/package-for-istoreos/kochiya-istore/cups/files/cupsd.init: -------------------------------------------------------------------------------- 1 | #!/bin/sh /etc/rc.common 2 | # Copyright (C) 2006-2011 OpenWrt.org 3 | 4 | START=50 5 | 6 | start() { 7 | mkdir -m 0755 -p /var/cache/cups 8 | mkdir -m 0755 -p /var/cups 9 | mkdir -m 0755 -p /var/spool/cups/tmp 10 | service_start /usr/sbin/cupsd 11 | } 12 | 13 | stop() { 14 | service_stop /usr/sbin/cupsd 15 | } 16 | 17 | reload() { 18 | service_reload /usr/sbin/cupsd 19 | } 20 | -------------------------------------------------------------------------------- /openwrt-2203/package-for-istoreos/kochiya-istore/cups/files/etc/cups/classes.conf: -------------------------------------------------------------------------------- 1 | ######################################################################## 2 | # # 3 | # This is a sample class configuration file. This file is included # 4 | # from the main configuration file (cups.conf) and lists all of the # 5 | # printer classes known to the system. # 6 | # # 7 | ######################################################################## 8 | -------------------------------------------------------------------------------- /openwrt-2203/package-for-istoreos/kochiya-istore/cups/files/etc/cups/client.conf: -------------------------------------------------------------------------------- 1 | ######################################################################## 2 | # # 3 | # This is the CUPS client configuration file. This file is used to # 4 | # define client-specific parameters, such as the default server or # 5 | # default encryption settings. # 6 | # # 7 | ######################################################################## 8 | 9 | Encryption Never 10 | -------------------------------------------------------------------------------- /openwrt-2203/package-for-istoreos/kochiya-istore/cups/files/etc/cups/printers.conf: -------------------------------------------------------------------------------- 1 | 2 | Info USB Printer 3 | Location 4 | DeviceURI usb:/dev/usb/lp0 5 | State Idle 6 | Accepting Yes 7 | JobSheets none none 8 | QuotaPeriod 0 9 | PageLimit 0 10 | KLimit 0 11 | 12 | 13 | 14 | Info Parallel Port Printer 15 | Location 16 | DeviceURI parallel:/dev/printers/0 17 | State Idle 18 | Accepting Yes 19 | JobSheets none none 20 | QuotaPeriod 0 21 | PageLimit 0 22 | KLimit 0 23 | 24 | -------------------------------------------------------------------------------- /openwrt-2203/package-for-istoreos/kochiya-istore/cups/patches/100-target.patch: -------------------------------------------------------------------------------- 1 | --- a/configure 2 | +++ b/configure 3 | @@ -6025,7 +6025,7 @@ LIBHEADERSPRIV="\$(COREHEADERSPRIV) \$(D 4 | 5 | case "$COMPONENTS" in 6 | all) 7 | - BUILDDIRS="tools filter backend berkeley cgi-bin monitor notifier ppdc scheduler systemv conf data desktop locale man doc examples templates" 8 | + BUILDDIRS="tools filter backend berkeley cgi-bin monitor ppdc scheduler systemv conf data desktop locale man doc examples templates" 9 | ;; 10 | 11 | core) 12 | -------------------------------------------------------------------------------- /openwrt-2203/package-for-istoreos/kochiya-istore/cups/patches/150-64bit_host_fix.patch: -------------------------------------------------------------------------------- 1 | --- a/config-scripts/cups-directories.m4 2 | +++ b/config-scripts/cups-directories.m4 3 | @@ -98,7 +98,7 @@ if test "$libdir" = "\${exec_prefix}/lib 4 | case "$host_os_name" in 5 | linux*) 6 | if test -d /usr/lib64 -a ! -d /usr/lib64/fakeroot; then 7 | - libdir="$exec_prefix/lib64" 8 | + libdir="$exec_prefix/lib" 9 | fi 10 | ;; 11 | esac 12 | --- a/configure 13 | +++ b/configure 14 | @@ -6155,7 +6155,7 @@ if test "$libdir" = "\${exec_prefix}/lib 15 | case "$host_os_name" in 16 | linux*) 17 | if test -d /usr/lib64 -a ! -d /usr/lib64/fakeroot; then 18 | - libdir="$exec_prefix/lib64" 19 | + libdir="$exec_prefix/lib" 20 | fi 21 | ;; 22 | esac 23 | --- a/cups-config.in 24 | +++ b/cups-config.in 25 | @@ -43,7 +43,7 @@ else 26 | CFLAGS="$CFLAGS -I$includedir" 27 | fi 28 | 29 | - if test $libdir != /usr/lib -a $libdir != /usr/lib32 -a $libdir != /usr/lib64; then 30 | + if test $libdir != /usr/lib -a $libdir != /usr/lib -a $libdir != /usr/lib; then 31 | LDFLAGS="$LDFLAGS -L$libdir" 32 | fi 33 | fi 34 | -------------------------------------------------------------------------------- /openwrt-2203/package-for-istoreos/kochiya-istore/cups/patches/160-ppdc.patch: -------------------------------------------------------------------------------- 1 | --- a/ppdc/Makefile 2 | +++ b/ppdc/Makefile 3 | @@ -182,13 +182,7 @@ local: genstrings 4 | 5 | genstrings: genstrings.o libcupsppdc.a ../cups/$(LIBCUPSSTATIC) \ 6 | sample.drv ../data/media.defs 7 | - echo Linking $@... 8 | - $(LD_CXX) $(ARCHFLAGS) $(ALL_LDFLAGS) -o genstrings genstrings.o \ 9 | - libcupsppdc.a $(LINKCUPSSTATIC) 10 | - $(CODE_SIGN) -s "$(CODE_SIGN_IDENTITY)" $@ 11 | - echo Generating localization strings... 12 | - ./genstrings >sample.c 13 | - 14 | + echo Not Linking $@... 15 | 16 | # 17 | # ppdc, the PPD compiler. 18 | -------------------------------------------------------------------------------- /openwrt-2203/package-for-istoreos/kochiya-istore/libwebsockets/patches/010-uninit.patch: -------------------------------------------------------------------------------- 1 | From 1f9925b44379941065690f0dce8ca0c79414b9f1 Mon Sep 17 00:00:00 2001 2 | From: Rosen Penev 3 | Date: Tue, 1 Feb 2022 09:13:11 +0000 4 | Subject: [PATCH] genec: show correct nid when not allowed 5 | 6 | As noticed by gcc11 warning 7 | 8 | https://github.com/warmcat/libwebsockets/pull/2551 9 | --- 10 | lib/tls/lws-genec-common.c | 2 +- 11 | 1 file changed, 1 insertion(+), 1 deletion(-) 12 | 13 | --- a/lib/tls/lws-genec-common.c 14 | +++ b/lib/tls/lws-genec-common.c 15 | @@ -94,7 +94,7 @@ lws_genec_confirm_curve_allowed_by_tls_i 16 | } 17 | } while (e > 0); 18 | 19 | - lwsl_err("%s: unsupported curve group nid %d\n", __func__, n); 20 | + lwsl_err("%s: unsupported curve group nid %d\n", __func__, id); 21 | 22 | return -1; 23 | } 24 | -------------------------------------------------------------------------------- /openwrt-2203/package-for-istoreos/kochiya-istore/libwebsockets/patches/020-gcc12.patch: -------------------------------------------------------------------------------- 1 | From 6352fee2194a41179a808e9e2b805e0f5c86f8cf Mon Sep 17 00:00:00 2001 2 | From: Andy Green 3 | Date: Sun, 16 Jan 2022 06:49:38 +0000 4 | Subject: [PATCH] sort-dns: fix scope comparison 5 | 6 | https://github.com/warmcat/libwebsockets/issues/2537 7 | --- 8 | lib/core-net/client/sort-dns.c | 2 +- 9 | 1 file changed, 1 insertion(+), 1 deletion(-) 10 | 11 | --- a/lib/core-net/client/sort-dns.c 12 | +++ b/lib/core-net/client/sort-dns.c 13 | @@ -406,7 +406,7 @@ lws_sort_dns_dcomp(const lws_dns_sort_t 14 | */ 15 | 16 | scopea = lws_ipv6_unicast_scope(to_v6_sa(&da->dest)); 17 | - scopeb = lws_ipv6_unicast_scope(to_v6_sa(&db)); 18 | + scopeb = lws_ipv6_unicast_scope(to_v6_sa(&db->dest)); 19 | scope_srca = lws_ipv6_unicast_scope(to_v6_sa(&da->source)); 20 | scope_srcb = lws_ipv6_unicast_scope(to_v6_sa(&db->source)); 21 | 22 | -------------------------------------------------------------------------------- /openwrt-2203/package-for-istoreos/kochiya-istore/luci-app-cloudreve/Makefile: -------------------------------------------------------------------------------- 1 | # Copyright (C) 2019 Openwrt.org 2 | # 3 | # This is a free software, use it under Apache Licene 2.0 & GNU General Public License v3.0. 4 | # 5 | 6 | include $(TOPDIR)/rules.mk 7 | 8 | LUCI_TITLE:=Cloudreve for LuCI 9 | LUCI_DEPENDS:=@(aarch64||arm||i386||i686||x86_64) 10 | LUCI_PKGARCH:=all 11 | 12 | PKG_NAME:=luci-app-cloudreve 13 | 14 | define Package/luci-app-cloudreve/conffiles 15 | /etc/config/cloudreve 16 | /etc/cloudreve/ 17 | endef 18 | 19 | include $(TOPDIR)/feeds/luci/luci.mk 20 | 21 | # call BuildPackage - OpenWrt buildroot signature 22 | -------------------------------------------------------------------------------- /openwrt-2203/package-for-istoreos/kochiya-istore/luci-app-cloudreve/luasrc/controller/cloudreve.lua: -------------------------------------------------------------------------------- 1 | module("luci.controller.cloudreve",package.seeall) 2 | 3 | function index() 4 | entry({"admin", "nas"}, firstchild(), _("NAS") , 45).dependent = false 5 | if not nixio.fs.access("/etc/config/cloudreve")then 6 | return 7 | end 8 | entry({"admin","nas","cloudreve"},cbi("cloudreve"),_("Cloudreve")).acl_depends = { "luci-app-cloudreve" } 9 | entry({"admin","nas","cloudreve","status"},call("act_status")).leaf=true 10 | end 11 | 12 | function act_status() 13 | local e={} 14 | e.running=luci.sys.call("pgrep cloudreve >/dev/null")==0 15 | luci.http.prepare_content("application/json") 16 | luci.http.write_json(e) 17 | end 18 | -------------------------------------------------------------------------------- /openwrt-2203/package-for-istoreos/kochiya-istore/luci-app-cloudreve/luasrc/model/cbi/cloudreve.lua: -------------------------------------------------------------------------------- 1 | m = Map("cloudreve", translate("Cloudreve"), translate("Self-hosted file management and sharing system, supports multiple storage providers.").."
"..translate("Default login username: admin@cloudreve.org, password: password.")) 2 | 3 | m:section(SimpleSection).template="cloudreve/cloudreve_status" 4 | 5 | s = m:section(TypedSection, "cloudreve") 6 | s.anonymous=true 7 | 8 | enabled = s:option(Flag, "enabled", translate("Enable")) 9 | enabled.rmempty = false 10 | 11 | port = s:option(Value,"port",translate("Port")) 12 | port.default = "8052" 13 | port.placeholder = "8052" 14 | port.rmempty = false 15 | 16 | return m 17 | -------------------------------------------------------------------------------- /openwrt-2203/package-for-istoreos/kochiya-istore/luci-app-cloudreve/luasrc/view/cloudreve/cloudreve_status.htm: -------------------------------------------------------------------------------- 1 | 22 | 23 |
24 |

25 | <%:Collecting data...%> 26 |

27 |
28 | -------------------------------------------------------------------------------- /openwrt-2203/package-for-istoreos/kochiya-istore/luci-app-cloudreve/po/zh-cn: -------------------------------------------------------------------------------- 1 | zh_Hans -------------------------------------------------------------------------------- /openwrt-2203/package-for-istoreos/kochiya-istore/luci-app-cloudreve/po/zh_Hans/cloudreve.po: -------------------------------------------------------------------------------- 1 | msgid "Cloudreve" 2 | msgstr "Cloudreve" 3 | 4 | msgid "Self-hosted file management and sharing system, supports multiple storage providers." 5 | msgstr "Cloudreve 可助你即刻构建出兼备自用或公用的网盘服务,通过多种存储策略的支持、虚拟文件系统等特性实现灵活的文件管理体验。" 6 | 7 | msgid "Default login username: admin@cloudreve.org, password: password." 8 | msgstr "默认登录用户名:admin@cloudreve.org,密码:password。" 9 | 10 | msgid "Open Web Interface" 11 | msgstr "打开Web界面" 12 | 13 | msgid "Cloudreve Run Status" 14 | msgstr "Cloudreve 运行状态" 15 | 16 | msgid "Running" 17 | msgstr "运行中" 18 | 19 | msgid "Not running" 20 | msgstr "未运行" 21 | 22 | msgid "Enable" 23 | msgstr "启用" 24 | 25 | msgid "Port" 26 | msgstr "端口" 27 | 28 | -------------------------------------------------------------------------------- /openwrt-2203/package-for-istoreos/kochiya-istore/luci-app-cloudreve/root/etc/config/cloudreve: -------------------------------------------------------------------------------- 1 | 2 | config cloudreve 3 | option enabled '0' 4 | option port '8052' 5 | -------------------------------------------------------------------------------- /openwrt-2203/package-for-istoreos/kochiya-istore/luci-app-cloudreve/root/etc/init.d/cloudreve: -------------------------------------------------------------------------------- 1 | #!/bin/sh /etc/rc.common 2 | 3 | START=99 4 | USE_PROCD=1 5 | 6 | homedir="/etc/cloudreve" 7 | 8 | get_config() { 9 | config_get_bool enabled $1 enabled 0 10 | config_get port $1 port 8052 11 | } 12 | 13 | start_service() { 14 | config_load cloudreve 15 | config_foreach get_config cloudreve 16 | [ $enabled != 1 ] && return 1 17 | mkdir -p "$homedir" 18 | if [ -f "$homedir/cloudreve.ini" ]; then 19 | sed -i "s/Listen = :[0-9]*/Listen = :$port/g" "$homedir/cloudreve.ini" 20 | else 21 | cat >"$homedir/cloudreve.ini"</dev/null 4 | delete ucitrack.@cloudreve[-1] 5 | add ucitrack cloudreve 6 | set ucitrack.@cloudreve[-1].init=cloudreve 7 | commit ucitrack 8 | EOF 9 | 10 | chmod +x /etc/init.d/cloudreve >/dev/null 2>&1 11 | 12 | rm -f /tmp/luci-indexcache 13 | exit 0 14 | -------------------------------------------------------------------------------- /openwrt-2203/package-for-istoreos/kochiya-istore/luci-app-cloudreve/root/usr/share/rpcd/acl.d/luci-app-cloudreve.json: -------------------------------------------------------------------------------- 1 | { 2 | "luci-app-cloudreve": { 3 | "description": "Grant UCI access for luci-app-cloudreve", 4 | "read": { 5 | "uci": [ "cloudreve" ] 6 | }, 7 | "write": { 8 | "uci": [ "cloudreve" ] 9 | } 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /openwrt-2203/package-for-istoreos/kochiya-istore/luci-app-cupsd/Makefile: -------------------------------------------------------------------------------- 1 | # 2 | #-- Copyright (C) 2018 dz 3 | # 4 | # This is free software, licensed under the Apache License, Version 2.0 . 5 | # 6 | 7 | include $(TOPDIR)/rules.mk 8 | 9 | LUCI_TITLE:=LuCI Support for cupsd 10 | LUCI_DEPENDS:= +cups 11 | 12 | include $(TOPDIR)/feeds/luci/luci.mk 13 | 14 | # call BuildPackage - OpenWrt buildroot signature 15 | -------------------------------------------------------------------------------- /openwrt-2203/package-for-istoreos/kochiya-istore/luci-app-cupsd/luasrc/controller/cupsd.lua: -------------------------------------------------------------------------------- 1 | #-- Copyright (C) 2018 dz 2 | 3 | module("luci.controller.cupsd", package.seeall) 4 | 5 | function index() 6 | if not nixio.fs.access("/etc/config/cupsd") then 7 | return 8 | end 9 | 10 | local page 11 | 12 | 13 | entry({"admin", "services", "cupsd"},alias("admin", "services", "cupsd","page1"),_("CUPS 打印服务器"),60).dependent = true 14 | entry({"admin", "services", "cupsd","page1"}, cbi("cupsd/page1"),_("设置"),10).leaf = true 15 | entry({"admin", "services", "cupsd","page2"}, cbi("cupsd/page2"),_("高级"),20).leaf = true 16 | end 17 | 18 | -------------------------------------------------------------------------------- /openwrt-2203/package-for-istoreos/kochiya-istore/luci-app-cupsd/luasrc/model/cbi/cupsd/page2.lua: -------------------------------------------------------------------------------- 1 | local fs = require "nixio.fs" 2 | local sys = require "luci.sys" 3 | 4 | m = Map("samba", translate("CUPS高级配置"), translate("此处修改的是/etc/cups/cupsd.conf文件。")) 5 | s = m:section(TypedSection, "samba") 6 | s.anonymous=true 7 | 8 | o = s:option(TextValue, "/etc/cups/cupsd.conf") 9 | o.rows = 20 10 | o.wrap = "off" 11 | function o.cfgvalue(self, section) 12 | return fs.readfile("/etc/cups/cupsd.conf") or "" 13 | end 14 | 15 | function o.write(self, section, value) 16 | if value then 17 | value = value:gsub("\r\n?", "\n") 18 | fs.writefile("/tmp/cupsd.conf", value) 19 | if (luci.sys.call("cmp -s /tmp/cupsd.conf /etc/cups/cupsd.conf") == 1) then 20 | fs.writefile("/etc/cups/cupsd.conf", value) 21 | luci.sys.call("/etc/init.d/cupsd reload >/dev/null") 22 | end 23 | fs.remove("/tmp/cupsd.conf") 24 | end 25 | end 26 | 27 | return m 28 | 29 | 30 | -------------------------------------------------------------------------------- /openwrt-2203/package-for-istoreos/kochiya-istore/luci-app-cupsd/root/etc/config/cupsd: -------------------------------------------------------------------------------- 1 | 2 | config cupsd 'config' 3 | option enabled '0' 4 | option port '631' 5 | -------------------------------------------------------------------------------- /openwrt-2203/package-for-istoreos/kochiya-istore/luci-app-cupsd/root/etc/uci-defaults/luci-cupsd: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | uci -q batch <<-EOF >/dev/null 4 | delete ucitrack.@cupsd[-1] 5 | add ucitrack cupsd 6 | set ucitrack.@cupsd[-1].init=cupsd 7 | commit ucitrack 8 | EOF 9 | 10 | 11 | /etc/init.d/cupsd stop 12 | 13 | rm -f /tmp/luci-indexcache 14 | exit 0 15 | -------------------------------------------------------------------------------- /openwrt-2203/package-for-istoreos/kochiya-istore/luci-app-cupsd/root/usr/share/rpcd/acl.d/luci-app-cupsd.json: -------------------------------------------------------------------------------- 1 | { 2 | "luci-app-cupsd": { 3 | "description": "Grant UCI access for luci-app-cupsd", 4 | "read": { 5 | "uci": [ "cupsd" ] 6 | }, 7 | "write": { 8 | "uci": [ "cupsd" ] 9 | } 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /openwrt-2203/package-for-istoreos/kochiya-istore/luci-app-cupsd/root/www/cups.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lunatickochiya/Matrix-Action-Openwrt/03a181a84e12a8024a08d82cd0433164c2eae5d0/openwrt-2203/package-for-istoreos/kochiya-istore/luci-app-cupsd/root/www/cups.pdf -------------------------------------------------------------------------------- /openwrt-2203/package-for-istoreos/kochiya-istore/luci-app-diskman/luasrc/view/diskman/cbi/disabled_button.htm: -------------------------------------------------------------------------------- 1 | <%+cbi/valueheader%> 2 | <% if self:cfgvalue(section) ~= false then %> 3 | " type="submit"<%= attr("name", cbid) .. attr("id", cbid) .. attr("value", self.inputtitle or self.title)%> <% if self.view_disabled then %> disabled <% end %>/> 4 | <% else %> 5 | - 6 | <% end %> 7 | <%+cbi/valuefooter%> -------------------------------------------------------------------------------- /openwrt-2203/package-for-istoreos/kochiya-istore/luci-app-diskman/luasrc/view/diskman/cbi/format_button.htm: -------------------------------------------------------------------------------- 1 | <%+cbi/valueheader%> 2 | <% if self:cfgvalue(section) ~= false then %> 3 | " onclick="event.preventDefault();partition_format('<%=self.partitions[section].name%>', '<%=self.format_cmd%>', '<%=self.inputtitle%>');" type="submit"<%= attr("name", cbid) .. attr("id", cbid) .. attr("value", self.inputtitle or self.title)%> <% if self.view_disabled then %> disabled <% end %>/> 4 | <% else %> 5 | - 6 | <% end %> 7 | <%+cbi/valuefooter%> 8 | -------------------------------------------------------------------------------- /openwrt-2203/package-for-istoreos/kochiya-istore/luci-app-diskman/luasrc/view/diskman/cbi/inlinebutton.htm: -------------------------------------------------------------------------------- 1 |
2 | <% if self:cfgvalue(section) ~= false then %> 3 | " type="submit"" <% if self.disable then %>disabled <% end %><%= attr("name", cbid) .. attr("id", cbid) .. attr("value", self.inputtitle or self.title)%> /> 4 | <% else %> 5 | - 6 | <% end %> 7 |
8 | -------------------------------------------------------------------------------- /openwrt-2203/package-for-istoreos/kochiya-istore/luci-app-diskman/po/zh_Hans: -------------------------------------------------------------------------------- 1 | zh-cn -------------------------------------------------------------------------------- /openwrt-2203/package-for-istoreos/kochiya-istore/luci-app-dockerman/Makefile: -------------------------------------------------------------------------------- 1 | include $(TOPDIR)/rules.mk 2 | 3 | LUCI_TITLE:=LuCI Support for docker 4 | LUCI_DEPENDS:=@(aarch64||arm||x86_64) \ 5 | +luci-compat \ 6 | +luci-lib-docker \ 7 | +luci-lib-ip \ 8 | +docker +dockerd \ 9 | +dockerd \ 10 | +ttyd 11 | LUCI_PKGARCH:=all 12 | 13 | PKG_LICENSE:=AGPL-3.0 14 | PKG_MAINTAINER:=lisaac \ 15 | Florian Eckert 16 | 17 | PKG_VERSION:=v0.5.26 18 | PKG_RELEASE:=4 19 | 20 | include $(TOPDIR)/feeds/luci/luci.mk 21 | 22 | # call BuildPackage - OpenWrt buildroot signature 23 | -------------------------------------------------------------------------------- /openwrt-2203/package-for-istoreos/kochiya-istore/luci-app-dockerman/depends.lst: -------------------------------------------------------------------------------- 1 | ttyd docker-cli -------------------------------------------------------------------------------- /openwrt-2203/package-for-istoreos/kochiya-istore/luci-app-dockerman/htdocs/luci-static/resources/dockerman/containers.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | Docker icon 6 | 7 | 8 | -------------------------------------------------------------------------------- /openwrt-2203/package-for-istoreos/kochiya-istore/luci-app-dockerman/htdocs/luci-static/resources/dockerman/file-icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lunatickochiya/Matrix-Action-Openwrt/03a181a84e12a8024a08d82cd0433164c2eae5d0/openwrt-2203/package-for-istoreos/kochiya-istore/luci-app-dockerman/htdocs/luci-static/resources/dockerman/file-icon.png -------------------------------------------------------------------------------- /openwrt-2203/package-for-istoreos/kochiya-istore/luci-app-dockerman/htdocs/luci-static/resources/dockerman/folder-icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lunatickochiya/Matrix-Action-Openwrt/03a181a84e12a8024a08d82cd0433164c2eae5d0/openwrt-2203/package-for-istoreos/kochiya-istore/luci-app-dockerman/htdocs/luci-static/resources/dockerman/folder-icon.png -------------------------------------------------------------------------------- /openwrt-2203/package-for-istoreos/kochiya-istore/luci-app-dockerman/htdocs/luci-static/resources/dockerman/link-icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lunatickochiya/Matrix-Action-Openwrt/03a181a84e12a8024a08d82cd0433164c2eae5d0/openwrt-2203/package-for-istoreos/kochiya-istore/luci-app-dockerman/htdocs/luci-static/resources/dockerman/link-icon.png -------------------------------------------------------------------------------- /openwrt-2203/package-for-istoreos/kochiya-istore/luci-app-dockerman/luasrc/view/dockerman/cbi/inlinebutton.htm: -------------------------------------------------------------------------------- 1 |
2 | <% if self:cfgvalue(section) ~= false then %> 3 | " type="submit"" <% if self.disable then %>disabled <% end %><%= attr("name", cbid) .. attr("id", cbid) .. attr("value", self.inputtitle or self.title)%> /> 4 | <% else %> 5 | - 6 | <% end %> 7 |
8 | -------------------------------------------------------------------------------- /openwrt-2203/package-for-istoreos/kochiya-istore/luci-app-dockerman/luasrc/view/dockerman/cbi/namedsection.htm: -------------------------------------------------------------------------------- 1 | <% if self:cfgvalue(self.section) then section = self.section %> 2 |
3 | <%+cbi/tabmenu%> 4 |
5 | <%+cbi/ucisection%> 6 |
7 |
8 | <% end %> 9 | 10 | -------------------------------------------------------------------------------- /openwrt-2203/package-for-istoreos/kochiya-istore/luci-app-dockerman/luasrc/view/dockerman/cbi/xfvalue.htm: -------------------------------------------------------------------------------- 1 | <%+cbi/valueheader%> 2 | /> 5 | disabled <% end %><%= 6 | attr("id", cbid) .. attr("name", cbid) .. attr("value", self.enabled or 1) .. 7 | ifattr((self:cfgvalue(section) or self.default) == self.enabled, "checked", "checked") 8 | %> /> 9 | > 10 | <%+cbi/valuefooter%> 11 | -------------------------------------------------------------------------------- /openwrt-2203/package-for-istoreos/kochiya-istore/luci-app-dockerman/luasrc/view/dockerman/container_console.htm: -------------------------------------------------------------------------------- 1 |
2 | 3 |
4 | 7 | -------------------------------------------------------------------------------- /openwrt-2203/package-for-istoreos/kochiya-istore/luci-app-dockerman/luasrc/view/dockerman/logs.htm: -------------------------------------------------------------------------------- 1 | <% if self.title == "Events" then %> 2 | <%+header%> 3 |

<%:Docker - Events%>

4 |
5 |

<%:Events%>

6 | <% end %> 7 |
8 | 9 |
10 | <% if self.title == "Events" then %> 11 |
12 | <%+footer%> 13 | <% end %> 14 | -------------------------------------------------------------------------------- /openwrt-2203/package-for-istoreos/kochiya-istore/luci-app-dockerman/luasrc/view/dockerman/volume_size.htm: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /openwrt-2203/package-for-istoreos/kochiya-istore/luci-app-dockerman/po/zh_Hans: -------------------------------------------------------------------------------- 1 | zh-cn -------------------------------------------------------------------------------- /openwrt-2203/package-for-istoreos/kochiya-istore/luci-app-dockerman/postinst: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | /init.sh env 4 | touch /etc/config/dockerd 5 | uci set dockerd.dockerman=dockerman 6 | uci set dockerd.dockerman.socket_path=`uci get dockerd.dockerman.socket_path 2&> /dev/null || echo '/var/run/docker.sock'` 7 | uci set dockerd.dockerman.status_path=`uci get dockerd.dockerman.status_path 2&> /dev/null || echo '/tmp/.docker_action_status'` 8 | uci set dockerd.dockerman.debug=`uci get dockerd.dockerman.debug 2&> /dev/null || echo 'false'` 9 | uci set dockerd.dockerman.debug_path=`uci get dockerd.dockerman.debug_path 2&> /dev/null || echo '/tmp/.docker_debug'` 10 | uci set dockerd.dockerman.remote_port=`uci get dockerd.dockerman.remote_port 2&> /dev/null || echo '2375'` 11 | uci set dockerd.dockerman.remote_endpoint=`uci get dockerd.dockerman.remote_endpoint 2&> /dev/null || echo '0'` 12 | uci del_list dockerd.dockerman.ac_allowed_interface='br-lan' 13 | uci add_list dockerd.dockerman.ac_allowed_interface='br-lan' 14 | uci commit dockerd -------------------------------------------------------------------------------- /openwrt-2203/package-for-istoreos/kochiya-istore/luci-app-dockerman/root/usr/share/rpcd/acl.d/luci-app-dockerman.json: -------------------------------------------------------------------------------- 1 | { 2 | "luci-app-dockerman": { 3 | "description": "Grant UCI access for luci-app-dockerman", 4 | "read": { 5 | "uci": [ "dockerd" ] 6 | }, 7 | "write": { 8 | "uci": [ "dockerd" ] 9 | } 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /openwrt-2203/package-for-istoreos/kochiya-istore/luci-app-msd_lite/Makefile: -------------------------------------------------------------------------------- 1 | # Copyright (C) 2022 ImmortalWrt.org 2 | 3 | include $(TOPDIR)/rules.mk 4 | 5 | LUCI_TITLE:=LuCI support for Multi stream daemon lite 6 | LUCI_DEPENDS:=+msd_lite 7 | LUCI_PKGARCH:=all 8 | 9 | include $(TOPDIR)/feeds/luci/luci.mk 10 | 11 | # call BuildPackage - OpenWrt buildroot signature 12 | -------------------------------------------------------------------------------- /openwrt-2203/package-for-istoreos/kochiya-istore/luci-app-msd_lite/po/zh-cn: -------------------------------------------------------------------------------- 1 | zh_Hans -------------------------------------------------------------------------------- /openwrt-2203/package-for-istoreos/kochiya-istore/luci-app-msd_lite/root/usr/share/luci/menu.d/luci-app-msd_lite.json: -------------------------------------------------------------------------------- 1 | { 2 | "admin/services/msd_lite": { 3 | "title": "Multi Stream daemon Lite", 4 | "action": { 5 | "type": "view", 6 | "path": "msd_lite" 7 | }, 8 | "depends": { 9 | "acl": [ "luci-app-msd_lite" ], 10 | "fs": { "/etc/config/msd_lite": "file" } 11 | } 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /openwrt-2203/package-for-istoreos/kochiya-istore/luci-app-msd_lite/root/usr/share/rpcd/acl.d/luci-app-msd_lite.json: -------------------------------------------------------------------------------- 1 | { 2 | "luci-app-msd_lite": { 3 | "description": "Grant UCI access for luci-app-msd_lite", 4 | "read": { 5 | "uci": [ "msd_lite" ] 6 | }, 7 | "write": { 8 | "uci": [ "msd_lite" ] 9 | } 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /openwrt-2203/package-for-istoreos/kochiya-istore/luci-app-partexp/Makefile: -------------------------------------------------------------------------------- 1 | # 2 | # Copyright (C) 2020-2022 sirpdboy 3 | # 4 | # This is free software, licensed under the GNU General Public License v3. 5 | # 6 | 7 | include $(TOPDIR)/rules.mk 8 | 9 | PKG_NAME:=luci-app-partexp 10 | 11 | PKG_LICENSE:=Apache-2.0 12 | PKG_MAINTAINER:=Sirpdboy 13 | 14 | LUCI_TITLE:=LuCI Support for Automatic Partition Mount 15 | LUCI_DEPENDS:=+fdisk +block-mount 16 | LUCI_PKGARCH:=all 17 | 18 | 19 | include $(TOPDIR)/feeds/luci/luci.mk 20 | 21 | 22 | # call BuildPackage - OpenWrt buildroot signature 23 | -------------------------------------------------------------------------------- /openwrt-2203/package-for-istoreos/kochiya-istore/luci-app-partexp/luasrc/view/partexp/log.htm: -------------------------------------------------------------------------------- 1 | <%+cbi/valueheader%> 2 | 3 | 4 | 16 | <%+cbi/valuefooter%> 17 | -------------------------------------------------------------------------------- /openwrt-2203/package-for-istoreos/kochiya-istore/luci-app-partexp/po/zh_Hans: -------------------------------------------------------------------------------- 1 | zh-cn -------------------------------------------------------------------------------- /openwrt-2203/package-for-istoreos/kochiya-istore/luci-app-partexp/root/etc/config/partexp: -------------------------------------------------------------------------------- 1 | config global 2 | option target_function '/overlay' 3 | option target_disk '' 4 | option keep_config '1' 5 | option auto_format '1' 6 | -------------------------------------------------------------------------------- /openwrt-2203/package-for-istoreos/kochiya-istore/luci-app-partexp/root/etc/uci-defaults/40_luci-partexp: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | chmod +x /etc/init.d/partexp >/dev/null 2>&1 3 | 4 | rm -rf /tmp/luci-modulecache /tmp/luci-indexcache* 5 | exit 0 6 | -------------------------------------------------------------------------------- /openwrt-2203/package-for-istoreos/kochiya-istore/luci-app-partexp/root/usr/share/rpcd/acl.d/luci-app-partexp.json: -------------------------------------------------------------------------------- 1 | { 2 | "luci-app-partexp": { 3 | "description": "Grant UCI access for luci-app-partexp", 4 | "read": { 5 | "uci": [ "partexp" ] 6 | }, 7 | "write": { 8 | "uci": [ "partexp" ] 9 | } 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /openwrt-2203/package-for-istoreos/kochiya-istore/luci-app-softethervpn/Makefile: -------------------------------------------------------------------------------- 1 | # Copyright (C) 2018-2019 Lienol 2 | # 3 | # This is free software, licensed under the Apache License, Version 2.0 . 4 | # 5 | 6 | include $(TOPDIR)/rules.mk 7 | 8 | LUCI_TITLE:=LuCI support for SoftEtherVPN 9 | LUCI_DEPENDS:=+zlib +libpthread +librt +libreadline +libncurses +libiconv-full +kmod-tun +libopenssl +softethervpn5-bridge +softethervpn5-client +softethervpn5-server 10 | LUCI_PKGARCH:=all 11 | 12 | PKG_NAME:=luci-app-softethervpn 13 | 14 | include $(TOPDIR)/feeds/luci/luci.mk 15 | 16 | # call BuildPackage - OpenWrt buildroot signature 17 | -------------------------------------------------------------------------------- /openwrt-2203/package-for-istoreos/kochiya-istore/luci-app-softethervpn/luasrc/controller/softethervpn.lua: -------------------------------------------------------------------------------- 1 | module("luci.controller.softethervpn", package.seeall) 2 | 3 | function index() 4 | if not nixio.fs.access("/etc/config/softethervpn") then 5 | return 6 | end 7 | 8 | entry({"admin", "vpn"}, firstchild(), "VPN", 45).dependent = false 9 | entry({"admin", "vpn", "softethervpn"}, cbi("softethervpn"), _("SoftEther VPN Service"), 50).dependent = true 10 | entry({"admin", "vpn", "softethervpn", "status"}, call("act_status")).leaf = true 11 | end 12 | 13 | function act_status() 14 | local e = {} 15 | e.running = luci.sys.call("pidof vpnserver >/dev/null") == 0 16 | luci.http.prepare_content("application/json") 17 | luci.http.write_json(e) 18 | end 19 | -------------------------------------------------------------------------------- /openwrt-2203/package-for-istoreos/kochiya-istore/luci-app-softethervpn/luasrc/view/softethervpn/softethervpn_status.htm: -------------------------------------------------------------------------------- 1 | 17 | 18 |
19 |

20 | <%:Collecting data...%> 21 |

22 |
23 | -------------------------------------------------------------------------------- /openwrt-2203/package-for-istoreos/kochiya-istore/luci-app-softethervpn/po/zh-cn/softethervpn.po: -------------------------------------------------------------------------------- 1 | msgid "SoftEther VPN Service" 2 | msgstr "SoftEther VPN 服务器" 3 | 4 | msgid "SoftEther VPN is an open source, cross-platform, multi-protocol virtual private network solution developed by university of tsukuba graduate student Daiyuu Nobori for master's thesis.
can easily set up OpenVPN, IPsec, L2TP, ms-sstp, L2TPv3 and EtherIP servers on the router using the console." 5 | msgstr "SoftEther VPN是由筑波大学研究生Daiyuu Nobori因硕士论文开发的开源,跨平台,多重协定的虚拟私人网路方案。
使用控制台可以轻松在路由器上搭建OpenVPN, IPsec, L2TP, MS-SSTP, L2TPv3 和 EtherIP服务器。" 6 | 7 | msgid "Enabled" 8 | msgstr "启用" 9 | 10 | msgid "PPTP VPN Server status" 11 | msgstr "PPTP VPN 服务器运行状态" 12 | 13 | msgid "Open L2TP/IPSec firewall" 14 | msgstr "开启 L2TP/IPSec 防火墙" 15 | 16 | msgid "Open the MS-SSTP firewall" 17 | msgstr "开启 MS-SSTP 防火墙" 18 | 19 | msgid "Open the OpenVPN firewall" 20 | msgstr "开启 OpenVPN 防火墙" 21 | -------------------------------------------------------------------------------- /openwrt-2203/package-for-istoreos/kochiya-istore/luci-app-softethervpn/po/zh_Hans: -------------------------------------------------------------------------------- 1 | zh-cn -------------------------------------------------------------------------------- /openwrt-2203/package-for-istoreos/kochiya-istore/luci-app-softethervpn/root/etc/config/softethervpn: -------------------------------------------------------------------------------- 1 | 2 | config softether 3 | option enable '0' 4 | -------------------------------------------------------------------------------- /openwrt-2203/package-for-istoreos/kochiya-istore/luci-app-softethervpn/root/etc/init.d/softethervpn: -------------------------------------------------------------------------------- 1 | #!/bin/sh /etc/rc.common 2 | # 3 | # Copyright (C) 2015 OpenWrt-dist 4 | # Copyright (C) 2016 Chen RuiWei 5 | # Copyright (C) 2018-2019 Lienol 6 | # 7 | # This is free software, licensed under the GNU General Public License v3. 8 | # See /LICENSE for more information. 9 | # 10 | 11 | START=99 12 | STOP=10 13 | 14 | CONFIG=softethervpn 15 | 16 | get_config() 17 | { 18 | config_get_bool enable $1 enable 0 19 | } 20 | 21 | uci_get_by_type() { 22 | local index=0 23 | if [ -n $4 ]; then 24 | index=$4 25 | fi 26 | local ret=$(uci get $CONFIG.@$1[$index].$2 2>/dev/null) 27 | echo ${ret:=$3} 28 | } 29 | 30 | start() 31 | { 32 | config_load softethervpn 33 | config_foreach get_config softether 34 | [ $enable -ne 1 ] && exit 0 35 | logger -t 'softethervpn' "Starting softether vpnserver service." 36 | /usr/bin/env LANG=en_US.UTF-8 /usr/libexec/softethervpn/vpnserver start > /dev/null 2>&1 37 | fw3 reload 38 | } 39 | 40 | stop() 41 | { 42 | logger -t 'softethervpn' "Stopping softether vpnserver service." 43 | /usr/bin/env LANG=en_US.UTF-8 /usr/libexec/softethervpn/vpnserver stop > /dev/null 2>&1 44 | fw3 reload 45 | } 46 | -------------------------------------------------------------------------------- /openwrt-2203/package-for-istoreos/kochiya-istore/luci-app-softethervpn/root/etc/uci-defaults/luci-softethervpn: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | uci -q batch <<-EOF >/dev/null 4 | delete firewall.softethervpn 5 | set firewall.softethervpn=include 6 | set firewall.softethervpn.type=script 7 | set firewall.softethervpn.path=/usr/share/softethervpn/firewall.include 8 | set firewall.softethervpn.reload=1 9 | EOF 10 | 11 | uci -q batch <<-EOF >/dev/null 12 | delete ucitrack.@softethervpn[-1] 13 | add ucitrack softethervpn 14 | set ucitrack.@softethervpn[-1].init=softethervpn 15 | commit ucitrack 16 | EOF 17 | 18 | /etc/init.d/softethervpnbridge disable && /etc/init.d/softethervpnbridge stop 19 | /etc/init.d/softethervpnclient disable && /etc/init.d/softethervpnclient stop 20 | /etc/init.d/softethervpnserver disable && /etc/init.d/softethervpnserver stop 21 | 22 | chmod a+x /usr/share/softethervpn/* >/dev/null 2>&1 23 | 24 | rm -f /tmp/luci-indexcache 25 | exit 0 26 | -------------------------------------------------------------------------------- /openwrt-2203/package-for-istoreos/kochiya-istore/luci-app-softethervpn/root/usr/share/rpcd/acl.d/luci-app-softethervpn.json: -------------------------------------------------------------------------------- 1 | { 2 | "luci-app-softethervpn": { 3 | "description": "Grant UCI access for luci-app-softethervpn", 4 | "read": { 5 | "uci": [ "softethervpn" ] 6 | }, 7 | "write": { 8 | "uci": [ "softethervpn" ] 9 | } 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /openwrt-2203/package-for-istoreos/kochiya-istore/luci-app-syncthing/Makefile: -------------------------------------------------------------------------------- 1 | include $(TOPDIR)/rules.mk 2 | 3 | LUCI_TITLE:=LuCI support for syncthing 4 | LUCI_DEPENDS:=+syncthing 5 | LUCI_PKGARCH:=all 6 | 7 | include $(TOPDIR)/feeds/luci/luci.mk 8 | 9 | # call BuildPackage - OpenWrt buildroot signature 10 | 11 | -------------------------------------------------------------------------------- /openwrt-2203/package-for-istoreos/kochiya-istore/luci-app-syncthing/luasrc/controller/syncthing.lua: -------------------------------------------------------------------------------- 1 | 2 | module("luci.controller.syncthing", package.seeall) 3 | 4 | function index() 5 | entry({"admin", "nas"}, firstchild(), _("NAS") , 45).dependent = false 6 | if not nixio.fs.access("/etc/config/syncthing") then 7 | return 8 | end 9 | 10 | local page = entry({"admin", "nas", "syncthing"}, cbi("syncthing"), _("Syncthing")) 11 | page.order = 10 12 | page.dependent = true 13 | page.acl_depends = { "luci-app-syncthing" } 14 | entry({"admin","nas","syncthing","status"},call("act_status")).leaf=true 15 | end 16 | 17 | function act_status() 18 | local e={} 19 | e.running=luci.sys.call("pgrep syncthing >/dev/null")==0 20 | luci.http.prepare_content("application/json") 21 | luci.http.write_json(e) 22 | end 23 | -------------------------------------------------------------------------------- /openwrt-2203/package-for-istoreos/kochiya-istore/luci-app-syncthing/luasrc/view/syncthing/syncthing_status.htm: -------------------------------------------------------------------------------- 1 | 22 | 23 |
24 |

25 | <%:Collecting data...%> 26 |

27 |
28 | -------------------------------------------------------------------------------- /openwrt-2203/package-for-istoreos/kochiya-istore/luci-app-syncthing/po/zh-cn: -------------------------------------------------------------------------------- 1 | zh_Hans -------------------------------------------------------------------------------- /openwrt-2203/package-for-istoreos/kochiya-istore/luci-app-syncthing/po/zh_Hans/syncthing.po: -------------------------------------------------------------------------------- 1 | msgid "Syncthing" 2 | msgstr "Syncthing" 3 | 4 | msgid "Syncthing Synchronization Tool" 5 | msgstr "Syncthing 存储同步工具" 6 | 7 | msgid "Open Syncthing page" 8 | msgstr "打开储存同步页面" 9 | 10 | msgid "GUI access address" 11 | msgstr "GUI访问地址" 12 | 13 | msgid "Use 0.0.0.0:8384 to monitor all access." 14 | msgstr "使用0.0.0.0:8384监听所有访问。" 15 | 16 | msgid "Configuration file directory" 17 | msgstr "配置文件存储目录" 18 | 19 | msgid "Only the configuration saved in /etc/syncthing will be automatically backed up!" 20 | msgstr "只有保存在 /etc/syncthing 的配置会被自动备份!" 21 | 22 | msgid "User" 23 | msgstr "用户" 24 | 25 | msgid "The default is syncthing, but it may cause permission denied. Syncthing officially does not recommend running as root." 26 | msgstr "默认为syncthing,但可能引起权限不足问题。Syncthing官方不建议以root身份运行。" 27 | 28 | msgid "Thread limit" 29 | msgstr "线程限制" 30 | 31 | msgid "0 to match the number of CPUs (default), >0 to explicitly specify concurrency." 32 | msgstr "使用0来匹配CPU核心数,或输入大于0的数来显式指定并发数。" 33 | 34 | msgid "Explicitly specify nice. 0 is the highest and 19 is the lowest. (negative values are not allowed to be set temporarily)" 35 | msgstr "显式指定进程Nice值。其中0最高,19最低。(暂不允许设置负值)" 36 | -------------------------------------------------------------------------------- /openwrt-2203/package-for-istoreos/kochiya-istore/luci-app-syncthing/root/etc/config/syncthing: -------------------------------------------------------------------------------- 1 | 2 | config syncthing 'syncthing' 3 | option enabled '0' 4 | 5 | option gui_address 'http://0.0.0.0:8384' 6 | 7 | # Use internal flash for evaluation purpouses. Use external storage 8 | # for production. 9 | # This filesystem must either support ownership/attributes or 10 | # be readable/writable by the user specified in 11 | # 'option user'. 12 | # Consult syslog if things go wrong. 13 | option home '/etc/syncthing' 14 | 15 | # Changes to "niceness"/macprocs are not picked up by "reload_config" 16 | # nor by "restart": the service has to be stopped/started 17 | # for those to take effect 18 | option nice '19' 19 | 20 | # 0 to match the number of CPUs (default) 21 | # >0 to explicitly specify concurrency 22 | option macprocs '0' 23 | 24 | # Running as 'root' is possible, but not recommended 25 | option user 'syncthing' 26 | 27 | -------------------------------------------------------------------------------- /openwrt-2203/package-for-istoreos/kochiya-istore/luci-app-syncthing/root/etc/uci-defaults/luci-syncthing: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | touch /etc/config/syncthing 3 | 4 | sed -i "s/127.0.0.1:8384/0.0.0.0:8384/" /etc/config/syncthing 5 | uci -q batch <<-EOF >/dev/null 6 | delete ucitrack.@syncthing[-1] 7 | add ucitrack syncthing 8 | set ucitrack.@syncthing[-1].exec='/etc/init.d/syncthing restart' 9 | commit ucitrack 10 | EOF 11 | # remove LuCI cache 12 | rm -f /tmp/luci* 13 | exit 0 14 | -------------------------------------------------------------------------------- /openwrt-2203/package-for-istoreos/kochiya-istore/luci-app-syncthing/root/usr/share/rpcd/acl.d/luci-app-syncthing.json: -------------------------------------------------------------------------------- 1 | { 2 | "luci-app-syncthing": { 3 | "description": "Grant UCI access for luci-app-syncthing", 4 | "read": { 5 | "uci": [ "syncthing" ] 6 | }, 7 | "write": { 8 | "uci": [ "syncthing" ] 9 | } 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /openwrt-2203/package-for-istoreos/kochiya-istore/luci-app-tcpdump/Makefile: -------------------------------------------------------------------------------- 1 | # Copyright (C) 2016 Openwrt.org 2 | # 3 | # This is free software, licensed under the Apache License, Version 2.0 . 4 | # 5 | # Copyright (C) 2019, KFERMercer 6 | # 7 | 8 | include $(TOPDIR)/rules.mk 9 | 10 | LUCI_TITLE:=LuCI support for tcpdump 11 | LUCI_DEPENDS:=+tcpdump 12 | LUCI_PKGARCH:=all 13 | PKG_NAME:=luci-app-tcpdump 14 | PKG_MAINTAINER:= 15 | 16 | include $(TOPDIR)/feeds/luci/luci.mk 17 | 18 | # call BuildPackage - OpenWrt buildroot signature 19 | -------------------------------------------------------------------------------- /openwrt-2203/package-for-istoreos/kochiya-istore/luci-app-tcpdump/README.md: -------------------------------------------------------------------------------- 1 | # luci-app-tcpdump 2 | 3 | LuCI interface for tcpdump.\ 4 | It can be used to capture live TCP traffic for analysis. 5 | 6 | ## How to build into firmware: 7 | 8 | `git clone https://github.com/KFERMercer/luci-app-tcpdump.git ./package/luci-app-tcpdump` 9 | 10 | `make menuconfig` 11 | 12 | 13 | ### Original codes built by [MacManas](https://github.com/MacManas/luci-app-tcpdump). 14 | -------------------------------------------------------------------------------- /openwrt-2203/package-for-istoreos/kochiya-istore/luci-app-tcpdump/po/zh_Hans: -------------------------------------------------------------------------------- 1 | zh-cn -------------------------------------------------------------------------------- /openwrt-2203/package-for-istoreos/kochiya-istore/luci-app-usb-printer/Makefile: -------------------------------------------------------------------------------- 1 | # 2 | # Copyright (C) 2008-2014 The LuCI Team 3 | # 4 | # This is free software, licensed under the Apache License, Version 2.0 . 5 | # 6 | 7 | include $(TOPDIR)/rules.mk 8 | 9 | LUCI_TITLE:=USB Printer Share via TCP/IP 10 | LUCI_DEPENDS:=+p910nd +kmod-usb-printer 11 | 12 | PKG_NAME:=luci-app-usb-printer 13 | 14 | include $(TOPDIR)/feeds/luci/luci.mk 15 | 16 | # call BuildPackage - OpenWrt buildroot signature 17 | -------------------------------------------------------------------------------- /openwrt-2203/package-for-istoreos/kochiya-istore/luci-app-usb-printer/ipkg/postinst: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | [ -n "${IPKG_INSTROOT}" ] || { 3 | ( . /etc/uci-defaults/luci-usb-printer ) && rm -f /etc/uci-defaults/luci-usb-printer 4 | exit 0 5 | } 6 | 7 | -------------------------------------------------------------------------------- /openwrt-2203/package-for-istoreos/kochiya-istore/luci-app-usb-printer/luasrc/controller/usb_printer.lua: -------------------------------------------------------------------------------- 1 | --[[ 2 | LuCI - Lua Configuration Interface 3 | 4 | Copyright 2008 Steven Barth 5 | 6 | Licensed under the Apache License, Version 2.0 (the "License"); 7 | you may not use this file except in compliance with the License. 8 | You may obtain a copy of the License at 9 | 10 | http://www.apache.org/licenses/LICENSE-2.0 11 | 12 | $Id$ 13 | ]]-- 14 | 15 | require("luci.sys") 16 | 17 | module("luci.controller.usb_printer", package.seeall) 18 | 19 | function index() 20 | entry({"admin", "nas"}, firstchild(), _("NAS") , 45).dependent = false 21 | if not nixio.fs.access("/etc/config/usb_printer") then 22 | return 23 | end 24 | 25 | entry({"admin", "nas"}, firstchild(), "NAS", 44).dependent = false 26 | entry({"admin", "nas", "usb_printer"}, cbi("usb_printer"), _("USB Printer Server"), 50) 27 | end 28 | -------------------------------------------------------------------------------- /openwrt-2203/package-for-istoreos/kochiya-istore/luci-app-usb-printer/po/zh_Hans: -------------------------------------------------------------------------------- 1 | zh-cn -------------------------------------------------------------------------------- /openwrt-2203/package-for-istoreos/kochiya-istore/luci-app-usb-printer/root/etc/config/usb_printer: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lunatickochiya/Matrix-Action-Openwrt/03a181a84e12a8024a08d82cd0433164c2eae5d0/openwrt-2203/package-for-istoreos/kochiya-istore/luci-app-usb-printer/root/etc/config/usb_printer -------------------------------------------------------------------------------- /openwrt-2203/package-for-istoreos/kochiya-istore/luci-app-usb-printer/root/etc/hotplug.d/usb/10-usb_printer: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | # Copyright (C) 2005-2014 NowRush Studio 3 | # Author: hackpascal 4 | 5 | if [ x"$INTERFACE" = x"7/1/1" ] || [ x"$INTERFACE" = x"7/1/2" ]; then 6 | /usr/bin/usb_printer_hotplug "$PRODUCT" "$ACTION" 7 | fi 8 | -------------------------------------------------------------------------------- /openwrt-2203/package-for-istoreos/kochiya-istore/luci-app-usb-printer/root/etc/init.d/usb_printer: -------------------------------------------------------------------------------- 1 | #!/bin/sh /etc/rc.common 2 | # Copyright (C) 2005-2013 NowRush Studio 3 | # Author: hackpascal 4 | 5 | START=70 6 | 7 | stop() { 8 | killall p910nd 2>/dev/null 9 | } 10 | 11 | start() { 12 | for lps in `/usr/bin/detectlp`; do 13 | product=`echo $lps | cut -d , -f 2` 14 | 15 | /usr/bin/usb_printer_hotplug "$product" add 16 | done 17 | } 18 | 19 | restart() { 20 | stop 21 | start 22 | } 23 | -------------------------------------------------------------------------------- /openwrt-2203/package-for-istoreos/kochiya-istore/luci-app-usb-printer/root/etc/uci-defaults/luci-usb-printer: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | uci -q batch <<-EOF >/dev/null 4 | delete ucitrack.@usb_printer[-1] 5 | add ucitrack usb_printer 6 | set ucitrack.@usb_printer[-1].init=usb_printer 7 | commit ucitrack 8 | EOF 9 | 10 | [ -f /etc/init.d/p910nd ] && /etc/init.d/p910nd disable 11 | 12 | exit 0 13 | -------------------------------------------------------------------------------- /openwrt-2203/package-for-istoreos/kochiya-istore/luci-app-usb-printer/root/usr/bin/detectlp: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | lp_path=/sys/class/usbmisc 4 | 5 | if ! [ -d "$lp_path" ]; then 6 | exit 7 | fi 8 | 9 | cd $lp_path 10 | 11 | for lps in `ls`; do 12 | desc_file=$lp_path/$lps/device/ieee1284_id 13 | uevent_file=$lp_path/$lps/device/uevent 14 | 15 | name=`cat $desc_file | sed 's/.*DES:\(.*\);.*/\1/' | cut -d ';' -f 1` 16 | model=`cat $desc_file | sed 's/.*MDL:\(.*\);.*/\1/' | cut -d ';' -f 1` 17 | product=`cat $uevent_file | grep PRODUCT= | sed 's/PRODUCT=\(.*\)/\1/'` 18 | 19 | echo $lps,$product,$model,$name; 20 | done 21 | -------------------------------------------------------------------------------- /openwrt-2203/package-for-istoreos/kochiya-istore/luci-app-usb-printer/root/usr/share/rpcd/acl.d/luci-app-usb-printer.json: -------------------------------------------------------------------------------- 1 | { 2 | "luci-app-usb-printer": { 3 | "description": "Grant UCI access for luci-app-usb-printer", 4 | "read": { 5 | "uci": [ "usb_printer" ] 6 | }, 7 | "write": { 8 | "uci": [ "usb_printer" ] 9 | } 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /openwrt-2203/package-for-istoreos/kochiya-istore/luci-app-vsftpd/Makefile: -------------------------------------------------------------------------------- 1 | # Copyright (C) 2016 Openwrt.org 2 | # 3 | # This is free software, licensed under the Apache License, Version 2.0 . 4 | # 5 | 6 | include $(TOPDIR)/rules.mk 7 | 8 | LUCI_TITLE:=LuCI support for VSFTPD 9 | LUCI_DEPENDS:=+vsftpd-alt 10 | LUCI_PKGARCH:=all 11 | 12 | PKG_NAME:=luci-app-vsftpd 13 | 14 | include $(TOPDIR)/feeds/luci/luci.mk 15 | 16 | # call BuildPackage - OpenWrt buildroot signature 17 | -------------------------------------------------------------------------------- /openwrt-2203/package-for-istoreos/kochiya-istore/luci-app-vsftpd/luasrc/model/cbi/vsftpd/log.lua: -------------------------------------------------------------------------------- 1 | --[[ 2 | LuCI - Lua Configuration Interface 3 | 4 | Copyright 2016 Weijie Gao 5 | 6 | Licensed under the Apache License, Version 2.0 (the "License"); 7 | you may not use this file except in compliance with the License. 8 | You may obtain a copy of the License at 9 | 10 | http://www.apache.org/licenses/LICENSE-2.0 11 | 12 | $Id$ 13 | ]]-- 14 | 15 | m = Map("vsftpd") 16 | m.title = translate("FTP Server - Log Settings") 17 | 18 | sl = m:section(NamedSection, "log", "log", translate("Log Settings")) 19 | 20 | o = sl:option(Flag, "syslog", translate("Enable syslog")) 21 | o.default = false 22 | 23 | o = sl:option(Flag, "xreflog", translate("Enable file log")) 24 | o.default = true 25 | 26 | o = sl:option(Value, "file", translate("Log file")) 27 | o.default = "/var/log/vsftpd.log" 28 | 29 | return m 30 | -------------------------------------------------------------------------------- /openwrt-2203/package-for-istoreos/kochiya-istore/luci-app-vsftpd/po/zh_Hans: -------------------------------------------------------------------------------- 1 | zh-cn -------------------------------------------------------------------------------- /openwrt-2203/package-for-istoreos/kochiya-istore/luci-app-vsftpd/root/etc/uci-defaults/luci-vsftpd: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | uci -q batch <<-EOF >/dev/null 4 | delete ucitrack.@vsftpd[-1] 5 | add ucitrack vsftpd 6 | set ucitrack.@vsftpd[-1].init=vsftpd 7 | commit ucitrack 8 | EOF 9 | 10 | rm -f /tmp/luci-vsftpd 11 | exit 0 12 | -------------------------------------------------------------------------------- /openwrt-2203/package-for-istoreos/kochiya-istore/luci-app-zerotier/Makefile: -------------------------------------------------------------------------------- 1 | # SPDX-License-Identifier: GPL-3.0-only 2 | # 3 | # Copyright (C) 2022 ImmortalWrt.org 4 | 5 | include $(TOPDIR)/rules.mk 6 | 7 | LUCI_TITLE:=LuCI for Zerotier 8 | LUCI_DEPENDS:=+zerotier +jsonfilter +ucode 9 | LUCI_PKGARCH:=all 10 | 11 | include $(TOPDIR)/feeds/luci/luci.mk 12 | 13 | # call BuildPackage - OpenWrt buildroot signature 14 | 15 | 16 | -------------------------------------------------------------------------------- /openwrt-2203/package-for-istoreos/kochiya-istore/luci-app-zerotier/po/zh-cn: -------------------------------------------------------------------------------- 1 | zh_Hans -------------------------------------------------------------------------------- /openwrt-2203/package-for-istoreos/kochiya-istore/luci-app-zerotier/root/etc/hotplug.d/iface/40-zerotier: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | zero_enable="$(uci get zerotier.sample_config.enabled)" 4 | nat_enable="$(uci get zerotier.sample_config.nat)" 5 | 6 | [ "$ACTION" = ifup -o "$ACTION" = ifupdate ] || exit 0 7 | [ "$ACTION" = ifupdate -a -z "$IFUPDATE_ADDRESSES" -a -z "$IFUPDATE_DATA" ] && exit 0 8 | [ "$zero_enable" -eq "1" -a "${nat_enable}" -eq "1" ] || exit 0 9 | /etc/zerotier.start > /tmp/zero.log 2>&1 & 10 | -------------------------------------------------------------------------------- /openwrt-2203/package-for-istoreos/kochiya-istore/luci-app-zerotier/root/etc/uci-defaults/40_luci-zerotier: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | uci -q batch <<-EOF >/dev/null 4 | delete ucitrack.@zerotier[-1] 5 | commit ucitrack 6 | 7 | delete firewall.zerotier 8 | commit firewall 9 | EOF 10 | 11 | rm -f /tmp/luci-indexcache 12 | exit 0 13 | -------------------------------------------------------------------------------- /openwrt-2203/package-for-istoreos/kochiya-istore/luci-app-zerotier/root/etc/zerotier/zerotier.log: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lunatickochiya/Matrix-Action-Openwrt/03a181a84e12a8024a08d82cd0433164c2eae5d0/openwrt-2203/package-for-istoreos/kochiya-istore/luci-app-zerotier/root/etc/zerotier/zerotier.log -------------------------------------------------------------------------------- /openwrt-2203/package-for-istoreos/kochiya-istore/luci-app-zerotier/root/usr/share/luci/menu.d/luci-app-zerotier.json: -------------------------------------------------------------------------------- 1 | { 2 | "admin/vpn/zerotier": { 3 | "title": "ZeroTier", 4 | "order": 90, 5 | "action": { 6 | "type": "firstchild" 7 | }, 8 | "depends": { 9 | "acl": [ "luci-app-zerotier" ], 10 | "uci": { "zerotier": true } 11 | } 12 | }, 13 | "admin/vpn/zerotier/base": { 14 | "title": "Base settings", 15 | "order": 10, 16 | "action": { 17 | "type": "view", 18 | "path": "zerotier/base" 19 | } 20 | }, 21 | "admin/vpn/zerotier/interface": { 22 | "title": "Interface info", 23 | "order": 20, 24 | "action": { 25 | "type": "view", 26 | "path": "zerotier/interface" 27 | } 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /openwrt-2203/package-for-istoreos/kochiya-istore/luci-app-zerotier/root/usr/share/rpcd/acl.d/luci-app-zerotier.json: -------------------------------------------------------------------------------- 1 | { 2 | "luci-app-zerotier": { 3 | "description": "Grant access to ZeroTier configuration", 4 | "read": { 5 | "file": { 6 | "/sbin/ifconfig": [ "exec" ] 7 | }, 8 | "ubus": { 9 | "service": [ "list" ] 10 | }, 11 | "uci": [ "zerotier" ] 12 | }, 13 | "write": { 14 | "uci": [ "zerotier" ] 15 | } 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /openwrt-2203/package-for-istoreos/kochiya-istore/msd_lite/files/msd_lite.config: -------------------------------------------------------------------------------- 1 | 2 | config instance 3 | option 'enabled' '0' 4 | 5 | # Bind address 6 | list 'address' '0.0.0.0:7088' 7 | list 'address' '[::]:7088' 8 | # For multicast receive 9 | option 'network' '' 10 | 11 | # 0 = auto detect 12 | option 'threads' '0' 13 | # Bind threads to CPUs 14 | option 'bind_to_cpu' '0' 15 | 16 | # Disconnect slow clients 17 | option 'drop_slow_clients' '0' 18 | # Pre cache size 19 | option 'precache_size' '4096' 20 | # Stream receive ring buffer size 21 | option 'ring_buffer_size' '1024' 22 | # Multicast receive socket buffer size 23 | option 'multicast_recv_buffer_size' '512' 24 | # Multicast receive timeout 25 | option 'multicast_recv_timeout' '2' 26 | # Do IGMP/MLD leave+join every X seconds 27 | option 'rejoin_time' '0' 28 | 29 | -------------------------------------------------------------------------------- /openwrt-2203/package-for-istoreos/kochiya-istore/ntfs3-mount/Makefile: -------------------------------------------------------------------------------- 1 | include $(TOPDIR)/rules.mk 2 | 3 | PKG_NAME:=ntfs3-mount 4 | PKG_RELEASE:=6 5 | 6 | include $(INCLUDE_DIR)/package.mk 7 | 8 | define Package/ntfs3-mount 9 | SECTION:=utils 10 | CATEGORY:=Utilities 11 | SUBMENU:=Filesystem 12 | TITLE:=NTFS mount script for Paragon NTFS3 driver 13 | PKGARCH:=all 14 | endef 15 | 16 | define Build/Configure 17 | endef 18 | 19 | define Build/Compile 20 | endef 21 | 22 | define Package/ntfs3-mount/install 23 | $(INSTALL_DIR) $(1)/sbin $(1)/sbin/fs 24 | $(INSTALL_BIN) ./files/mount.ntfs $(1)/sbin 25 | $(LN) /sbin/mount.ntfs $(1)/sbin/fs/mount.ntfs 26 | endef 27 | 28 | define Package/ntfs3-mount/postinst 29 | #!/bin/sh 30 | FILE="$${IPKG_INSTROOT}/etc/filesystems" 31 | ID="ntfs" 32 | 33 | if ! [ -f $$FILE ]; then 34 | echo "Create '$$FILE'." 35 | touch "$$FILE" 36 | fi 37 | 38 | if ! grep -q -e '^'"$$ID"'$$' "$$FILE"; then 39 | echo "Add '$$ID' to known filesystems." 40 | echo "$$ID" >> "$$FILE" 41 | fi 42 | endef 43 | 44 | $(eval $(call BuildPackage,ntfs3-mount)) 45 | -------------------------------------------------------------------------------- /openwrt-2203/package-for-istoreos/kochiya-istore/ntfs3-mount/files/mount.ntfs: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | mount -t ntfs3 -o iocharset=utf8,force "$@" || mount -t ntfs3 -o iocharset=utf8,ro "$@" 3 | -------------------------------------------------------------------------------- /openwrt-2203/package-for-istoreos/kochiya-istore/ruby/files/ruby: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | if ! [ -r "@RUBY_LIBPATH@/rubygems.rb" ]; then 3 | exec @RUBY_BINPATH@ --disable-gems "$@" 4 | fi 5 | exec @RUBY_BINPATH@ "$@" 6 | -------------------------------------------------------------------------------- /openwrt-2203/package-for-istoreos/kochiya-istore/ruby/patches/010-fix-riscv64-build.patch: -------------------------------------------------------------------------------- 1 | From dfb22e4d6662bf72879eda806eaa78c7b52b519e Mon Sep 17 00:00:00 2001 2 | From: Khem Raj 3 | Date: Tue, 25 Jan 2022 20:29:14 -0800 4 | Subject: [PATCH] vm_dump.c: Define REG_S1 and REG_S2 for musl/riscv 5 | 6 | These defines are missing in musl, there is a possible 7 | patch to add them to musl, but we need a full list of 8 | these names for mcontext that can be added once for all 9 | 10 | Upstream-Status: Inappropriate [musl bug] 11 | Signed-off-by: Khem Raj 12 | --- 13 | vm_dump.c | 5 +++++ 14 | 1 file changed, 5 insertions(+) 15 | 16 | --- a/vm_dump.c 17 | +++ b/vm_dump.c 18 | @@ -39,6 +39,15 @@ 19 | 20 | #define MAX_POSBUF 128 21 | 22 | +#ifdef __riscv 23 | +#ifndef REG_S1 24 | +#define REG_S1 9 25 | +#endif 26 | +#ifndef REG_S2 27 | +#define REG_S2 18 28 | +#endif 29 | +#endif 30 | + 31 | #define VM_CFP_CNT(ec, cfp) \ 32 | ((rb_control_frame_t *)((ec)->vm_stack + (ec)->vm_stack_size) - \ 33 | (rb_control_frame_t *)(cfp)) 34 | -------------------------------------------------------------------------------- /openwrt-2203/package-for-istoreos/kochiya-istore/shadowsocksr-libev/patches/0002-Revert-verify_simple-and-auth_simple.patch: -------------------------------------------------------------------------------- 1 | --- a/src/obfs/obfs.c 2 | +++ b/src/obfs/obfs.c 3 | @@ -88,7 +88,7 @@ obfs_class *new_obfs_class(const char *p 4 | plugin->client_decode = tls12_ticket_auth_client_decode; 5 | 6 | return plugin; 7 | - /*} else if (strcmp(plugin_name, "verify_simple") == 0) { 8 | + } else if (strcmp(plugin_name, "verify_simple") == 0) { 9 | obfs_class * plugin = (obfs_class*)malloc(sizeof(obfs_class)); 10 | plugin->init_data = init_data; 11 | plugin->new_obfs = verify_simple_new_obfs; 12 | @@ -115,7 +115,7 @@ obfs_class *new_obfs_class(const char *p 13 | plugin->client_udp_pre_encrypt = NULL; 14 | plugin->client_udp_post_decrypt = NULL; 15 | 16 | - return plugin;*/ 17 | + return plugin; 18 | } else if (strcmp(plugin_name, "auth_sha1") == 0) { 19 | obfs_class *plugin = (obfs_class *) malloc(sizeof(obfs_class)); 20 | plugin->init_data = auth_simple_init_data; 21 | -------------------------------------------------------------------------------- /openwrt-2203/package-for-istoreos/kochiya-istore/shadowsocksr-libev/patches/100-fix-gcc-10.patch: -------------------------------------------------------------------------------- 1 | --- a/src/http.h 2 | +++ b/src/http.h 3 | @@ -29,6 +29,6 @@ 4 | #include 5 | #include "protocol.h" 6 | 7 | -const protocol_t *const http_protocol; 8 | +extern const protocol_t *const http_protocol; 9 | 10 | #endif 11 | --- a/src/tls.h 12 | +++ b/src/tls.h 13 | @@ -28,6 +28,6 @@ 14 | 15 | #include "protocol.h" 16 | 17 | -const protocol_t *const tls_protocol; 18 | +extern const protocol_t *const tls_protocol; 19 | 20 | #endif 21 | -------------------------------------------------------------------------------- /openwrt-2203/package-for-istoreos/kochiya-istore/shadowsocksr-libev/patches/101-Fix-Werror-sizeof-pointer-memaccess.patch: -------------------------------------------------------------------------------- 1 | --- a/src/local.c 2 | +++ b/src/local.c 3 | @@ -718,7 +718,7 @@ server_recv_cb(EV_P_ ev_io *w, int reven 4 | 5 | ss_free(hostname); 6 | } else { 7 | - strncpy(host, ip, sizeof(ip)); 8 | + strncpy(host, ip, INET6_ADDRSTRLEN); 9 | } 10 | } 11 | 12 | -------------------------------------------------------------------------------- /openwrt-2203/package-for-istoreos/kochiya-istore/shadowsocksr-libev/src/server/README.md: -------------------------------------------------------------------------------- 1 | # server 2 | 3 | `ss-server` and `ss-check` from https://github.com/ywb94/shadowsocks-libev 4 | -------------------------------------------------------------------------------- /openwrt-2203/package-for-istoreos/kochiya-istore/shadowsocksr-libev/src/server/base64.h: -------------------------------------------------------------------------------- 1 | #ifndef __BASE64_H__ 2 | #define __BASE64_H__ 3 | 4 | enum {BASE64_OK = 0, BASE64_INVALID}; 5 | 6 | #define BASE64_ENCODE_OUT_SIZE(s) (((s) + 2) / 3 * 4) 7 | #define BASE64_DECODE_OUT_SIZE(s) (((s)) / 4 * 3) 8 | 9 | int 10 | base64_encode(const unsigned char *in, unsigned int inlen, char *out); 11 | 12 | int 13 | base64_decode(const char *in, unsigned int inlen, unsigned char *out); 14 | 15 | 16 | #endif /* __BASE64_H__ */ 17 | -------------------------------------------------------------------------------- /openwrt-2203/package-for-istoreos/kochiya-istore/shadowsocksr-libev/src/server/http_simple.h: -------------------------------------------------------------------------------- 1 | /* 2 | * http_simple.h - Define shadowsocksR server's buffers and callbacks 3 | * 4 | * Copyright (C) 2015 - 2016, Break Wa11 5 | */ 6 | 7 | #ifndef _HTTP_SIMPLE_H 8 | #define _HTTP_SIMPLE_H 9 | 10 | obfs * http_simple_new_obfs(); 11 | void http_simple_dispose(obfs *self); 12 | 13 | int http_simple_client_encode(obfs *self, char **pencryptdata, int datalength, size_t* capacity); 14 | int http_simple_client_decode(obfs *self, char **pencryptdata, int datalength, size_t* capacity, int *needsendback); 15 | 16 | int http_post_client_encode(obfs *self, char **pencryptdata, int datalength, size_t* capacity); 17 | 18 | int http_simple_server_encode(obfs *self, char **pencryptdata, int datalength, size_t* capacity); 19 | int http_simple_server_decode(obfs *self, char **pencryptdata, int datalength, size_t* capacity, int *needsendback); 20 | 21 | #endif // _HTTP_SIMPLE_H 22 | -------------------------------------------------------------------------------- /openwrt-2203/package-for-istoreos/kochiya-istore/shadowsocksr-libev/src/server/obfsutil.c: -------------------------------------------------------------------------------- 1 | int get_head_size(char *plaindata, int size, int def_size) { 2 | if (plaindata == NULL || size < 2) 3 | return def_size; 4 | int head_type = plaindata[0] & 0x7; 5 | if (head_type == 1) 6 | return 7; 7 | if (head_type == 4) 8 | return 19; 9 | if (head_type == 3) 10 | return 4 + plaindata[1]; 11 | return def_size; 12 | } 13 | 14 | static int shift128plus_init_flag = 0; 15 | static uint64_t shift128plus_s[2] = {0x10000000, 0xFFFFFFFF}; 16 | 17 | void init_shift128plus(void) { 18 | if (shift128plus_init_flag == 0) { 19 | shift128plus_init_flag = 1; 20 | uint32_t seed = time(NULL); 21 | shift128plus_s[0] = seed | 0x100000000L; 22 | shift128plus_s[1] = ((uint64_t)seed << 32) | 0x1; 23 | } 24 | } 25 | 26 | uint64_t xorshift128plus(void) { 27 | uint64_t x = shift128plus_s[0]; 28 | uint64_t const y = shift128plus_s[1]; 29 | shift128plus_s[0] = y; 30 | x ^= x << 23; // a 31 | x ^= x >> 17; // b 32 | x ^= y ^ (y >> 26); // c 33 | shift128plus_s[1] = x; 34 | return x + y; 35 | } 36 | 37 | -------------------------------------------------------------------------------- /openwrt-2203/package-for-istoreos/kochiya-istore/shadowsocksr-libev/src/server/tls1.2_ticket.h: -------------------------------------------------------------------------------- 1 | /* 2 | * http_simple.h - Define shadowsocksR server's buffers and callbacks 3 | * 4 | * Copyright (C) 2015 - 2016, Break Wa11 5 | */ 6 | 7 | #ifndef _TLS1_2_TICKET_H 8 | #define _TLS1_2_TICKET_H 9 | 10 | void * tls12_ticket_auth_init_data(); 11 | obfs * tls12_ticket_auth_new_obfs(); 12 | void tls12_ticket_auth_dispose(obfs *self); 13 | 14 | int tls12_ticket_auth_client_encode(obfs *self, char **pencryptdata, int datalength, size_t* capacity); 15 | int tls12_ticket_auth_client_decode(obfs *self, char **pencryptdata, int datalength, size_t* capacity, int *needsendback); 16 | 17 | int tls12_ticket_auth_server_encode(obfs *self, char **pencryptdata, int datalength, size_t* capacity); 18 | int tls12_ticket_auth_server_decode(obfs *self, char **pencryptdata, int datalength, size_t* capacity, int *needsendback); 19 | 20 | #endif // _TLS1_2_TICKET_H 21 | -------------------------------------------------------------------------------- /openwrt-2203/package-for-istoreos/kochiya-istore/shadowsocksr-libev/src/server/verify.h: -------------------------------------------------------------------------------- 1 | /* 2 | * verify.h - Define shadowsocksR server's buffers and callbacks 3 | * 4 | * Copyright (C) 2015 - 2016, Break Wa11 5 | */ 6 | 7 | #ifndef _VERIFY_H 8 | #define _VERIFY_H 9 | 10 | obfs * verify_simple_new_obfs(); 11 | void verify_simple_dispose(obfs *self); 12 | 13 | int verify_simple_client_pre_encrypt(obfs *self, char **pplaindata, int datalength, size_t* capacity); 14 | int verify_simple_client_post_decrypt(obfs *self, char **pplaindata, int datalength, size_t* capacity); 15 | 16 | int verify_simple_server_pre_encrypt(obfs *self, char **pplaindata, int datalength, size_t* capacity); 17 | int verify_simple_server_post_decrypt(obfs *self, char **pplaindata, int datalength, size_t* capacity); 18 | 19 | #endif // _VERIFY_H 20 | -------------------------------------------------------------------------------- /openwrt-2203/package-for-istoreos/kochiya-istore/syncthing/files/stdiscosrv.conf: -------------------------------------------------------------------------------- 1 | 2 | config stdiscosrv 'stdiscosrv' 3 | option enabled '0' 4 | option listen ':8443' 5 | option db_dir '/etc/stdiscosrv/discovery.db' 6 | 7 | # # Find the documents from: https://docs.syncthing.net/users/stdiscosrv.html 8 | # option cert '/etc/stdiscosrv/cert.pem' 9 | # option key '/etc/stdiscosrv/key.pem' 10 | # option metrics_listen '' 11 | # option replicate '' 12 | # option replication_listen ':19200' 13 | 14 | # # CLI options with no value should be defined as booleans and theirs 15 | # # names should be prefixed with '_'. 16 | # option _debug '0' 17 | # option _http '1' 18 | 19 | -------------------------------------------------------------------------------- /openwrt-2203/package-for-istoreos/kochiya-istore/syncthing/files/strelaysrv.conf: -------------------------------------------------------------------------------- 1 | 2 | config strelaysrv 'strelaysrv' 3 | option enabled '0' 4 | option keys '/etc/strelaysrv' 5 | option listen ':22067' 6 | 7 | # # Find the documents from: https://docs.syncthing.net/users/strelaysrv.html 8 | # option ext_address '' 9 | # option global_rate '' 10 | # option message_timeout '1m0s' 11 | # option nat_lease 60 12 | # option nat_renewal 30 13 | # option nat_timeout 10 14 | # option network_timeout '2m0s' 15 | # option per_session_rate '' 16 | # option ping_interval '1m0s' 17 | # option pools '' 18 | # option protocol 'tcp' 19 | # option provided_by '' 20 | # option status_srv ':22070' 21 | 22 | # # CLI options with no value should be defined as booleans and theirs 23 | # # names should be prefixed with '_'. 24 | # option _debug '0' 25 | # option _nat '0' 26 | 27 | -------------------------------------------------------------------------------- /openwrt-2203/package-for-istoreos/kochiya-istore/syncthing/files/syncthing-sysctl.conf: -------------------------------------------------------------------------------- 1 | fs.inotify.max_user_watches=204800 2 | -------------------------------------------------------------------------------- /openwrt-2203/package-for-istoreos/kochiya-istore/syncthing/test.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | PKG=$1 4 | ver=$2 5 | 6 | "$PKG" --version | grep "$ver" 7 | -------------------------------------------------------------------------------- /openwrt-2203/package-for-istoreos/kochiya-istore/vsftpd-alt/files/vsftpd-uci.init: -------------------------------------------------------------------------------- 1 | #!/bin/sh /etc/rc.common 2 | # Copyright (C) 2006-2011 OpenWrt.org 3 | 4 | START=50 5 | 6 | start() { 7 | /usr/sbin/vsftpd_prepare 8 | service_start /usr/sbin/vsftpd_wrapper ipv4 9 | service_start /usr/sbin/vsftpd_wrapper ipv6 10 | } 11 | 12 | stop() { 13 | service_stop /usr/sbin/vsftpd 14 | } 15 | -------------------------------------------------------------------------------- /openwrt-2203/package-for-istoreos/kochiya-istore/vsftpd-alt/files/vsftpd.conf: -------------------------------------------------------------------------------- 1 | background=YES 2 | listen=YES 3 | anonymous_enable=NO 4 | local_enable=YES 5 | write_enable=YES 6 | local_umask=022 7 | check_shell=NO 8 | #dirmessage_enable=YES 9 | #ftpd_banner=Welcome to blah FTP service. 10 | session_support=NO 11 | #syslog_enable=YES 12 | #userlist_enable=YES 13 | #userlist_deny=NO 14 | #userlist_file=/etc/vsftpd.users 15 | #xferlog_enable=YES 16 | #xferlog_file=/var/log/vsftpd.log 17 | #xferlog_std_format=YES 18 | ### 19 | ### TLS/SSL options 20 | ### example key generation: openssl req -x509 -nodes -days 365 -newkey rsa:2048 -keyout /etc/config/vsftpd_privkey.pem -out /etc/config/vsftpd_cert.pem -subj /C="DE"/ST="Saxony"/L="Leipzig"/CN="OpenWrt" 21 | #ssl_enable=YES 22 | #allow_anon_ssl=NO 23 | #force_local_data_ssl=NO 24 | #force_local_logins_ssl=NO 25 | #ssl_tlsv1=YES 26 | #ssl_sslv2=NO 27 | #ssl_sslv3=NO 28 | #rsa_cert_file=/etc/config/vsftpd_cert.pem 29 | #rsa_private_key_file=/etc/config/vsftpd_privkey.pem 30 | 31 | -------------------------------------------------------------------------------- /openwrt-2203/package-for-istoreos/kochiya-istore/vsftpd-alt/files/vsftpd.init: -------------------------------------------------------------------------------- 1 | #!/bin/sh /etc/rc.common 2 | # Copyright (C) 2006-2011 OpenWrt.org 3 | 4 | START=50 5 | 6 | start() { 7 | mkdir -m 0755 -p /var/run/vsftpd 8 | service_start /usr/sbin/vsftpd 9 | } 10 | 11 | stop() { 12 | service_stop /usr/sbin/vsftpd 13 | } 14 | -------------------------------------------------------------------------------- /openwrt-2203/package-for-istoreos/kochiya-istore/vsftpd-alt/files/vsftpd_wrapper: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | # Copyright (C) 2005-2016 Weijie Gao 3 | 4 | . $IPKG_INSTROOT/lib/functions.sh 5 | 6 | VAR=/var/run/vsftpd 7 | CONF=$VAR/vsftpd.conf 8 | listen_addr= 9 | enabled= 10 | param="" 11 | listen4= 12 | listen6= 13 | protocol=$1 14 | 15 | config_load vsftpd 16 | 17 | if ! [ -f $CONF ]; then 18 | echo "/usr/bin/vsftpd_prepare must be executed before this script" 19 | exit 1 20 | fi 21 | 22 | case $protocol in 23 | ipv6) 24 | config_get enabled listen enable6 25 | 26 | if [ x$enabled != x1 ]; then exit 0; fi 27 | 28 | config_get listen_addr listen ipv6 29 | param="6" 30 | listen4="-olisten=NO" 31 | listen6="-olisten_ipv6=YES" 32 | 33 | if [ -z $listen_addr ]; then listen_addr="::"; fi 34 | ;; 35 | *) 36 | config_get enabled listen enable4 37 | 38 | if [ x$enabled != x1 ]; then exit 0; fi 39 | 40 | config_get listen_addr listen ipv4 41 | listen4="-olisten=YES" 42 | listen6="-olisten_ipv6=NO" 43 | 44 | if [ -z $listen_addr ]; then listen_addr="0.0.0.0"; fi 45 | esac 46 | 47 | exec /usr/sbin/vsftpd "-olisten_address${param}=${listen_addr}" ${listen4} ${listen6} $CONF 48 | 49 | exit 1 50 | -------------------------------------------------------------------------------- /openwrt-2203/package-for-istoreos/kochiya-istore/vsftpd-alt/patches/002-find_libs.patch: -------------------------------------------------------------------------------- 1 | --- a/Makefile 2 | +++ b/Makefile 3 | @@ -8,8 +8,8 @@ CFLAGS = -O2 -fPIE -fstack-protector --param=ssp-buffer-size=4 \ 4 | -D_FORTIFY_SOURCE=2 \ 5 | #-pedantic -Wconversion 6 | 7 | -LIBS = `./vsf_findlibs.sh` 8 | -LINK = -Wl,-s 9 | +LIBS = -lcrypt -lnsl -luci 10 | +LINK = 11 | LDFLAGS = -fPIE -pie -Wl,-z,relro -Wl,-z,now 12 | 13 | OBJS = main.o utility.o prelogin.o ftpcmdio.o postlogin.o privsock.o \ 14 | -------------------------------------------------------------------------------- /openwrt-2203/package-for-istoreos/kochiya-istore/vsftpd-alt/patches/003-chroot.patch: -------------------------------------------------------------------------------- 1 | --- a/tunables.c 2 | +++ b/tunables.c 3 | @@ -261,7 +261,7 @@ tunables_load_defaults() 4 | /* -rw------- */ 5 | tunable_chown_upload_mode = 0600; 6 | 7 | - install_str_setting("/usr/share/empty", &tunable_secure_chroot_dir); 8 | + install_str_setting("/var/run/vsftpd", &tunable_secure_chroot_dir); 9 | install_str_setting("ftp", &tunable_ftp_username); 10 | install_str_setting("root", &tunable_chown_username); 11 | install_str_setting("/var/log/xferlog", &tunable_xferlog_file); 12 | -------------------------------------------------------------------------------- /openwrt-2203/package-for-istoreos/kochiya-istore/vsftpd-alt/patches/004-disable-capabilities.patch: -------------------------------------------------------------------------------- 1 | --- a/sysdeputil.c 2 | +++ b/sysdeputil.c 3 | @@ -165,6 +165,9 @@ 4 | #endif 5 | /* END config */ 6 | 7 | +#undef VSF_SYSDEP_HAVE_CAPABILITIES 8 | +#undef VSF_SYSDEP_HAVE_LIBCAP 9 | + 10 | /* PAM support - we include our own dummy version if the system lacks this */ 11 | #include 12 | 13 | -------------------------------------------------------------------------------- /openwrt-2203/package-for-istoreos/kochiya-istore/vsftpd-alt/patches/005-disable-pam.patch: -------------------------------------------------------------------------------- 1 | --- a/builddefs.h 2 | +++ b/builddefs.h 3 | @@ -2,7 +2,7 @@ 4 | #define VSF_BUILDDEFS_H 5 | 6 | #undef VSF_BUILD_TCPWRAPPERS 7 | -#define VSF_BUILD_PAM 8 | +#undef VSF_BUILD_PAM 9 | #undef VSF_BUILD_SSL 10 | 11 | #endif /* VSF_BUILDDEFS_H */ 12 | -------------------------------------------------------------------------------- /openwrt-2203/package-for-istoreos/kochiya-istore/vsftpd-alt/patches/006-musl-compatibility.patch: -------------------------------------------------------------------------------- 1 | --- a/sysdeputil.c 2 | +++ b/sysdeputil.c 3 | @@ -58,7 +58,9 @@ 4 | #define VSF_SYSDEP_HAVE_SHADOW 5 | #define VSF_SYSDEP_HAVE_USERSHELL 6 | #define VSF_SYSDEP_HAVE_LIBCAP 7 | -#define VSF_SYSDEP_HAVE_UTMPX 8 | +#if defined(__GLIBC__) || defined(__UCLIBC__) 9 | + #define VSF_SYSDEP_HAVE_UTMPX 10 | +#endif 11 | 12 | #define __USE_GNU 13 | #include 14 | -------------------------------------------------------------------------------- /openwrt-2203/package-for-istoreos/kochiya-istore/vsftpd-alt/patches/101-enable-chroot-on-writable-dir.patch: -------------------------------------------------------------------------------- 1 | --- a/secutil.c 2 | +++ b/secutil.c 3 | @@ -129,16 +129,5 @@ vsf_secutil_change_credentials(const struct mystr* p_user_str, 4 | { 5 | vsf_sysutil_set_no_procs(); 6 | } 7 | - /* Misconfiguration check: don't ever chroot() to a directory writable by 8 | - * the current user. 9 | - */ 10 | - if ((options & VSF_SECUTIL_OPTION_CHROOT) && 11 | - !(options & VSF_SECUTIL_OPTION_ALLOW_WRITEABLE_ROOT)) 12 | - { 13 | - if (vsf_sysutil_write_access("/")) 14 | - { 15 | - die("vsftpd: refusing to run with writable root inside chroot()"); 16 | - } 17 | - } 18 | } 19 | 20 | -------------------------------------------------------------------------------- /openwrt-2203/package-for-istoreos/kochiya-istore/vsftpd-alt/patches/102-keep-local-user-rights.patch: -------------------------------------------------------------------------------- 1 | --- a/twoprocess.c 2 | +++ b/twoprocess.c 3 | @@ -426,7 +426,7 @@ common_do_login(struct vsf_session* p_sess, const struct mystr* p_user_str, 4 | */ 5 | vsf_set_die_if_parent_dies(); 6 | priv_sock_set_child_context(p_sess); 7 | - if (tunable_guest_enable && !anon) 8 | + if (tunable_guest_enable && !anon && !str_getpwnam(p_user_str)) 9 | { 10 | p_sess->is_guest = 1; 11 | /* Remap to the guest user */ 12 | -------------------------------------------------------------------------------- /openwrt-2203/patch-istoreos-rockchip-ipt/0004-target-set-default-package.patch: -------------------------------------------------------------------------------- 1 | From a49d245e37e2660b23444ba5663ac0d9b7a30cb4 Mon Sep 17 00:00:00 2001 2 | From: lunatickochiya <125438787@qq.com> 3 | Date: Fri, 20 Dec 2024 22:00:35 +0800 4 | Subject: [PATCH 04/13] target:set default package 5 | 6 | --- 7 | include/target.mk | 8 ++++---- 8 | 1 file changed, 4 insertions(+), 4 deletions(-) 9 | 10 | diff --git a/include/target.mk b/include/target.mk 11 | index f8dae3a273..905bbd17ee 100644 12 | --- a/include/target.mk 13 | +++ b/include/target.mk 14 | @@ -17,7 +17,7 @@ DEFAULT_PACKAGES:=\ 15 | fstools \ 16 | libc \ 17 | libgcc \ 18 | - libustream-wolfssl \ 19 | + libustream-openssl \ 20 | logd \ 21 | mtd \ 22 | netifd \ 23 | @@ -54,10 +54,10 @@ DEFAULT_PACKAGES.nas:=\ 24 | mdadm 25 | # For router targets 26 | DEFAULT_PACKAGES.router:=\ 27 | - dnsmasq \ 28 | + dnsmasq-full \ 29 | firewall \ 30 | - ip6tables \ 31 | - iptables \ 32 | + iptables-zz-legacy \ 33 | + ip6tables-zz-legacy \ 34 | odhcp6c \ 35 | odhcpd-ipv6only \ 36 | ppp \ 37 | -- 38 | 2.34.1 39 | 40 | -------------------------------------------------------------------------------- /openwrt-2203/patch-istoreos-rockchip-ipt/0005-remove-default-uboot-rk35xx.patch: -------------------------------------------------------------------------------- 1 | From d4a7e9431cc3de76439ebf5749ec89a74c9b777e Mon Sep 17 00:00:00 2001 2 | From: lunatickochiya <125438787@qq.com> 3 | Date: Fri, 20 Dec 2024 22:02:06 +0800 4 | Subject: [PATCH 05/13] remove default uboot-rk35xx 5 | 6 | --- 7 | package/boot/uboot-rk35xx/Makefile | 1 - 8 | 1 file changed, 1 deletion(-) 9 | 10 | diff --git a/package/boot/uboot-rk35xx/Makefile b/package/boot/uboot-rk35xx/Makefile 11 | index 9de0d65618..9c1067cbd7 100644 12 | --- a/package/boot/uboot-rk35xx/Makefile 13 | +++ b/package/boot/uboot-rk35xx/Makefile 14 | @@ -29,7 +29,6 @@ define U-Boot/Default 15 | UENV:=default 16 | HIDDEN:=1 17 | BUILD_SUBTARGET:=rk35xx 18 | - DEFAULT:=y 19 | PKG_BUILD_DEPENDS:=arm-trusted-firmware-rockchip-vendor 20 | endef 21 | 22 | -- 23 | 2.34.1 24 | 25 | -------------------------------------------------------------------------------- /openwrt-2305/feeds-package-patch-2305/005-rust-link-1-85-0.patch: -------------------------------------------------------------------------------- 1 | From aff8367c7afb8decef9e52a0ebf4dea72a16b39b Mon Sep 17 00:00:00 2001 2 | From: hingbong lo 3 | Date: Fri, 10 Jan 2025 00:50:53 +0000 4 | Subject: [PATCH] rust: update to 1.84.0 5 | 6 | Signed-off-by: hingbong lo 7 | --- 8 | lang/rust/Makefile | 4 ++-- 9 | 1 file changed, 2 insertions(+), 2 deletions(-) 10 | 11 | diff --git a/lang/rust/Makefile b/lang/rust/Makefile 12 | index b4b6285e7de2e3..ab5436741230fe 100644 13 | --- a/lang/rust/Makefile 14 | +++ b/lang/rust/Makefile 15 | @@ -5,12 +5,12 @@ 16 | include $(TOPDIR)/rules.mk 17 | 18 | PKG_NAME:=rust 19 | -PKG_VERSION:=1.81.0 20 | +PKG_VERSION:=1.85.0 21 | PKG_RELEASE:=1 22 | 23 | PKG_SOURCE:=rustc-$(PKG_VERSION)-src.tar.gz 24 | PKG_SOURCE_URL:=https://static.rust-lang.org/dist/ 25 | -PKG_HASH:=872448febdff32e50c3c90a7e15f9bb2db131d13c588fe9071b0ed88837ccfa7 26 | +PKG_HASH:=2f4f3142ffb7c8402139cfa0796e24baaac8b9fd3f96b2deec3b94b4045c6a8a 27 | HOST_BUILD_DIR:=$(BUILD_DIR)/host/rustc-$(PKG_VERSION)-src 28 | 29 | PKG_MAINTAINER:=Luca Barbato 30 | -------------------------------------------------------------------------------- /openwrt-2305/feeds-package-patch-2305/1-aria2.patch: -------------------------------------------------------------------------------- 1 | diff --git a/net/aria2/files/aria2.init b/net/aria2/files/aria2.init 2 | index deef307..baf0512 100755 3 | --- a/net/aria2/files/aria2.init 4 | +++ b/net/aria2/files/aria2.init 5 | @@ -341,6 +341,7 @@ aria2_start() { 6 | procd_set_param user "$user" 7 | 8 | procd_add_jail "$NAME.$section" log 9 | + procd_add_jail_mount "/usr/lib" #fix "errorCode=1 OSSL_PROVIDER_load 'legacy' failed" 10 | procd_add_jail_mount "$ca_certificate" "$certificate" "$rpc_certificate" "$rpc_private_key" 11 | procd_add_jail_mount_rw "$dir" "$config_dir" "$log" 12 | procd_close_instance 13 | -------------------------------------------------------------------------------- /openwrt-2305/feeds-package-patch-23055/005-rust-link-1-85-0.patch: -------------------------------------------------------------------------------- 1 | From aff8367c7afb8decef9e52a0ebf4dea72a16b39b Mon Sep 17 00:00:00 2001 2 | From: hingbong lo 3 | Date: Fri, 10 Jan 2025 00:50:53 +0000 4 | Subject: [PATCH] rust: update to 1.84.0 5 | 6 | Signed-off-by: hingbong lo 7 | --- 8 | lang/rust/Makefile | 4 ++-- 9 | 1 file changed, 2 insertions(+), 2 deletions(-) 10 | 11 | diff --git a/lang/rust/Makefile b/lang/rust/Makefile 12 | index b4b6285e7de2e3..ab5436741230fe 100644 13 | --- a/lang/rust/Makefile 14 | +++ b/lang/rust/Makefile 15 | @@ -5,12 +5,12 @@ 16 | include $(TOPDIR)/rules.mk 17 | 18 | PKG_NAME:=rust 19 | -PKG_VERSION:=1.80.1 20 | +PKG_VERSION:=1.85.0 21 | PKG_RELEASE:=1 22 | 23 | PKG_SOURCE:=rustc-$(PKG_VERSION)-src.tar.gz 24 | PKG_SOURCE_URL:=https://static.rust-lang.org/dist/ 25 | -PKG_HASH:=2c0b8f643942dcb810cbcc50f292564b1b6e44db5d5f45091153996df95d2dc4 26 | +PKG_HASH:=2f4f3142ffb7c8402139cfa0796e24baaac8b9fd3f96b2deec3b94b4045c6a8a 27 | HOST_BUILD_DIR:=$(BUILD_DIR)/host/rustc-$(PKG_VERSION)-src 28 | 29 | PKG_MAINTAINER:=Luca Barbato 30 | -------------------------------------------------------------------------------- /openwrt-2305/feeds-package-patch-23055/1-aria2.patch: -------------------------------------------------------------------------------- 1 | diff --git a/net/aria2/files/aria2.init b/net/aria2/files/aria2.init 2 | index deef307..baf0512 100755 3 | --- a/net/aria2/files/aria2.init 4 | +++ b/net/aria2/files/aria2.init 5 | @@ -341,6 +341,7 @@ aria2_start() { 6 | procd_set_param user "$user" 7 | 8 | procd_add_jail "$NAME.$section" log 9 | + procd_add_jail_mount "/usr/lib" #fix "errorCode=1 OSSL_PROVIDER_load 'legacy' failed" 10 | procd_add_jail_mount "$ca_certificate" "$certificate" "$rpc_certificate" "$rpc_private_key" 11 | procd_add_jail_mount_rw "$dir" "$config_dir" "$log" 12 | procd_close_instance 13 | -------------------------------------------------------------------------------- /openwrt-2305/gcc13/packages-feeds/008-nginx-util-gcc13-fix.patch: -------------------------------------------------------------------------------- 1 | From d71e28de375edc17ae0e0c6f735a870759c9a3e8 Mon Sep 17 00:00:00 2001 2 | From: Rosen Penev 3 | Date: Sat, 1 Jul 2023 16:44:54 -0700 4 | Subject: [PATCH] nginx-util: fix compilation with GCC13 5 | 6 | Signed-off-by: Rosen Penev 7 | --- 8 | net/nginx-util/Makefile | 2 +- 9 | net/nginx-util/src/ubus-cxx.hpp | 2 +- 10 | 2 files changed, 2 insertions(+), 2 deletions(-) 11 | 12 | 13 | diff --git a/net/nginx-util/src/ubus-cxx.hpp b/net/nginx-util/src/ubus-cxx.hpp 14 | index 6c193cfc312aa..42d2d21aaa137 100644 15 | --- a/net/nginx-util/src/ubus-cxx.hpp 16 | +++ b/net/nginx-util/src/ubus-cxx.hpp 17 | @@ -159,7 +159,7 @@ class message { 18 | both = keys; 19 | } 20 | both = concat(std::move(both), std::move(key_filter)...); 21 | - return std::move(message{msg, std::move(both)}); 22 | + return message{msg, std::move(both)}; 23 | } 24 | 25 | inline ~message() = default; 26 | -------------------------------------------------------------------------------- /openwrt-2305/mypatch-2305-meson-ipt/0004-fix.patch: -------------------------------------------------------------------------------- 1 | diff --git a/package/kernel/linux/modules/netsupport.mk b/package/kernel/linux/modules/netsupport.mk 2 | index 736021f2eb..81c26de5f4 100644 3 | --- a/package/kernel/linux/modules/netsupport.mk 4 | +++ b/package/kernel/linux/modules/netsupport.mk 5 | @@ -1286,7 +1286,7 @@ define KernelPackage/rxrpc 6 | FILES:= \ 7 | $(LINUX_DIR)/net/rxrpc/rxrpc.ko 8 | AUTOLOAD:=$(call AutoLoad,30,rxrpc.ko) 9 | - DEPENDS:= +kmod-crypto-manager +kmod-crypto-pcbc +kmod-crypto-fcrypt 10 | + DEPENDS:= +kmod-crypto-manager +kmod-crypto-pcbc +kmod-crypto-fcrypt +kmod-udptunnel4 +kmod-udptunnel6 11 | endef 12 | 13 | define KernelPackage/rxrpc/description 14 | -------------------------------------------------------------------------------- /openwrt-2305/mypatch-2305-meson-ipt/005-fix-ipt-default.patch: -------------------------------------------------------------------------------- 1 | diff --git a/package/network/services/dnsmasq/Makefile b/package/network/services/dnsmasq/Makefile 2 | index 5224e996a4..384c03d7ae 100644 3 | --- a/package/network/services/dnsmasq/Makefile 4 | +++ b/package/network/services/dnsmasq/Makefile 5 | @@ -112,10 +112,10 @@ define Package/dnsmasq-full/config 6 | default y 7 | config PACKAGE_dnsmasq_full_ipset 8 | bool "Build with IPset support." 9 | - default n 10 | + default y 11 | config PACKAGE_dnsmasq_full_nftset 12 | bool "Build with Nftset support." 13 | - default y 14 | + default n 15 | config PACKAGE_dnsmasq_full_conntrack 16 | bool "Build with Conntrack support." 17 | default y 18 | --- a/include/target.mk 19 | +++ b/include/target.mk 20 | @@ -53,10 +53,10 @@ DEFAULT_PACKAGES.nas:=\ 21 | mdadm 22 | # For router targets 23 | DEFAULT_PACKAGES.router:=\ 24 | - dnsmasq \ 25 | - firewall4 \ 26 | - nftables \ 27 | - kmod-nft-offload \ 28 | + dnsmasq-full \ 29 | + firewall \ 30 | + iptables-zz-legacy \ 31 | + ip6tables-zz-legacy \ 32 | odhcp6c \ 33 | odhcpd-ipv6only \ 34 | ppp \ 35 | -------------------------------------------------------------------------------- /openwrt-2305/mypatch-2305-meson-nft/0004-fix.patch: -------------------------------------------------------------------------------- 1 | diff --git a/package/kernel/linux/modules/netsupport.mk b/package/kernel/linux/modules/netsupport.mk 2 | index 736021f2eb..81c26de5f4 100644 3 | --- a/package/kernel/linux/modules/netsupport.mk 4 | +++ b/package/kernel/linux/modules/netsupport.mk 5 | @@ -1286,7 +1286,7 @@ define KernelPackage/rxrpc 6 | FILES:= \ 7 | $(LINUX_DIR)/net/rxrpc/rxrpc.ko 8 | AUTOLOAD:=$(call AutoLoad,30,rxrpc.ko) 9 | - DEPENDS:= +kmod-crypto-manager +kmod-crypto-pcbc +kmod-crypto-fcrypt 10 | + DEPENDS:= +kmod-crypto-manager +kmod-crypto-pcbc +kmod-crypto-fcrypt +kmod-udptunnel4 +kmod-udptunnel6 11 | endef 12 | 13 | define KernelPackage/rxrpc/description 14 | -------------------------------------------------------------------------------- /openwrt-2305/mypatch-2305-meson-nft/005-fix-nft-default.patch: -------------------------------------------------------------------------------- 1 | --- a/include/target.mk 2 | +++ b/include/target.mk 3 | @@ -53,10 +53,12 @@ DEFAULT_PACKAGES.nas:=\ 4 | mdadm 5 | # For router targets 6 | DEFAULT_PACKAGES.router:=\ 7 | - dnsmasq \ 8 | - firewall4 \ 9 | - nftables \ 10 | - kmod-nft-offload \ 11 | + dnsmasq-full \ 12 | + firewall4 \ 13 | + nftables \ 14 | + kmod-nft-offload \ 15 | + iptables-nft \ 16 | + ip6tables-nft \ 17 | odhcp6c \ 18 | odhcpd-ipv6only \ 19 | ppp \ 20 | -------------------------------------------------------------------------------- /openwrt-2305/mypatch-2305-rockchip-ipt/0004-fix.patch: -------------------------------------------------------------------------------- 1 | diff --git a/package/kernel/linux/modules/netsupport.mk b/package/kernel/linux/modules/netsupport.mk 2 | index 736021f2eb..81c26de5f4 100644 3 | --- a/package/kernel/linux/modules/netsupport.mk 4 | +++ b/package/kernel/linux/modules/netsupport.mk 5 | @@ -1286,7 +1286,7 @@ define KernelPackage/rxrpc 6 | FILES:= \ 7 | $(LINUX_DIR)/net/rxrpc/rxrpc.ko 8 | AUTOLOAD:=$(call AutoLoad,30,rxrpc.ko) 9 | - DEPENDS:= +kmod-crypto-manager +kmod-crypto-pcbc +kmod-crypto-fcrypt 10 | + DEPENDS:= +kmod-crypto-manager +kmod-crypto-pcbc +kmod-crypto-fcrypt +kmod-udptunnel4 +kmod-udptunnel6 11 | endef 12 | 13 | define KernelPackage/rxrpc/description 14 | -------------------------------------------------------------------------------- /openwrt-2305/mypatch-2305-rockchip-ipt/005-fix-ipt-default.patch: -------------------------------------------------------------------------------- 1 | diff --git a/package/network/services/dnsmasq/Makefile b/package/network/services/dnsmasq/Makefile 2 | index 5224e996a4..384c03d7ae 100644 3 | --- a/package/network/services/dnsmasq/Makefile 4 | +++ b/package/network/services/dnsmasq/Makefile 5 | @@ -112,10 +112,10 @@ define Package/dnsmasq-full/config 6 | default y 7 | config PACKAGE_dnsmasq_full_ipset 8 | bool "Build with IPset support." 9 | - default n 10 | + default y 11 | config PACKAGE_dnsmasq_full_nftset 12 | bool "Build with Nftset support." 13 | - default y 14 | + default n 15 | config PACKAGE_dnsmasq_full_conntrack 16 | bool "Build with Conntrack support." 17 | default y 18 | --- a/include/target.mk 19 | +++ b/include/target.mk 20 | @@ -53,10 +53,10 @@ DEFAULT_PACKAGES.nas:=\ 21 | mdadm 22 | # For router targets 23 | DEFAULT_PACKAGES.router:=\ 24 | - dnsmasq \ 25 | - firewall4 \ 26 | - nftables \ 27 | - kmod-nft-offload \ 28 | + dnsmasq-full \ 29 | + firewall \ 30 | + iptables-zz-legacy \ 31 | + ip6tables-zz-legacy \ 32 | odhcp6c \ 33 | odhcpd-ipv6only \ 34 | ppp \ 35 | -------------------------------------------------------------------------------- /openwrt-2305/mypatch-2305-rockchip-nft/0004-fix.patch: -------------------------------------------------------------------------------- 1 | diff --git a/package/kernel/linux/modules/netsupport.mk b/package/kernel/linux/modules/netsupport.mk 2 | index 736021f2eb..81c26de5f4 100644 3 | --- a/package/kernel/linux/modules/netsupport.mk 4 | +++ b/package/kernel/linux/modules/netsupport.mk 5 | @@ -1286,7 +1286,7 @@ define KernelPackage/rxrpc 6 | FILES:= \ 7 | $(LINUX_DIR)/net/rxrpc/rxrpc.ko 8 | AUTOLOAD:=$(call AutoLoad,30,rxrpc.ko) 9 | - DEPENDS:= +kmod-crypto-manager +kmod-crypto-pcbc +kmod-crypto-fcrypt 10 | + DEPENDS:= +kmod-crypto-manager +kmod-crypto-pcbc +kmod-crypto-fcrypt +kmod-udptunnel4 +kmod-udptunnel6 11 | endef 12 | 13 | define KernelPackage/rxrpc/description 14 | -------------------------------------------------------------------------------- /openwrt-2305/mypatch-2305-rockchip-nft/005-fix-nft-default.patch: -------------------------------------------------------------------------------- 1 | --- a/include/target.mk 2 | +++ b/include/target.mk 3 | @@ -53,10 +53,12 @@ DEFAULT_PACKAGES.nas:=\ 4 | mdadm 5 | # For router targets 6 | DEFAULT_PACKAGES.router:=\ 7 | - dnsmasq \ 8 | - firewall4 \ 9 | - nftables \ 10 | - kmod-nft-offload \ 11 | + dnsmasq-full \ 12 | + firewall4 \ 13 | + nftables \ 14 | + kmod-nft-offload \ 15 | + iptables-nft \ 16 | + ip6tables-nft \ 17 | odhcp6c \ 18 | odhcpd-ipv6only \ 19 | ppp \ 20 | -------------------------------------------------------------------------------- /openwrt-2305/mypatch-bbr-v3/0015-iproute2-build-quirk.patch: -------------------------------------------------------------------------------- 1 | From 965479797b2b652488b9745cd9590424acb0be93 Mon Sep 17 00:00:00 2001 2 | From: Konstantin Demin 3 | Date: Sun, 10 Sep 2023 21:39:24 +0300 4 | Subject: [PATCH 15/23] iproute2: build quirk 5 | 6 | --- 7 | package/network/utils/iproute2/patches/999-quirk.patch | 10 ++++++++++ 8 | 1 file changed, 10 insertions(+) 9 | create mode 100644 package/network/utils/iproute2/patches/999-quirk.patch 10 | 11 | diff --git a/package/network/utils/iproute2/patches/999-quirk.patch b/package/network/utils/iproute2/patches/999-quirk.patch 12 | new file mode 100644 13 | index 0000000000..2d3a41ef86 14 | --- /dev/null 15 | +++ b/package/network/utils/iproute2/patches/999-quirk.patch 16 | @@ -0,0 +1,10 @@ 17 | +--- a/bridge/mdb.c 18 | ++++ b/bridge/mdb.c 19 | +@@ -21,6 +21,7 @@ 20 | + #include "br_common.h" 21 | + #include "rt_names.h" 22 | + #include "json_print.h" 23 | ++#include 24 | + 25 | + #ifndef MDBA_RTA 26 | + #define MDBA_RTA(r) \ 27 | -- 28 | 2.34.1 29 | 30 | -------------------------------------------------------------------------------- /openwrt-2305/target/linux/meson510/Makefile: -------------------------------------------------------------------------------- 1 | # SPDX-License-Identifier: GPL-2.0-or-later 2 | # 3 | # Copyright (C) 2017-2021 Stijn Tintel 4 | 5 | include $(TOPDIR)/rules.mk 6 | 7 | ARCH:=arm 8 | BOARD:=meson 9 | BOARDNAME:=Amlogic Meson family 10 | FEATURES:=audio boot-part ext4 fpu legacy-sdcard squashfs usbgadget 11 | MAINTAINER:=Stijn Tintel 12 | SUBTARGETS:=meson8b mesongx 13 | 14 | KERNEL_PATCHVER:=5.10 15 | 16 | define Target/Description 17 | Build firmware image for Amlogic Meson SoC devices. 18 | Currently produces SD Card/USB disk image. 19 | endef 20 | 21 | include $(INCLUDE_DIR)/target.mk 22 | 23 | DEFAULT_PACKAGES += \ 24 | e2fsprogs \ 25 | kmod-sound-core \ 26 | kmod-usb-hid \ 27 | mkf2fs \ 28 | partx-utils 29 | 30 | KERNELNAME:=Image dtbs 31 | 32 | $(eval $(call BuildTarget)) 33 | -------------------------------------------------------------------------------- /openwrt-2305/target/linux/meson510/base-files/etc/inittab: -------------------------------------------------------------------------------- 1 | ::sysinit:/etc/init.d/rcS S boot 2 | ::shutdown:/etc/init.d/rcS K shutdown 3 | ::askconsole:/usr/libexec/login.sh 4 | tty1::askfirst:/usr/libexec/login.sh 5 | ttyAML0::askfirst:/usr/libexec/login.sh 6 | -------------------------------------------------------------------------------- /openwrt-2305/target/linux/meson510/base-files/lib/preinit/79_move_config: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | # Copyright (C) 2012-2015 OpenWrt.org 3 | 4 | move_config() { 5 | local partdev 6 | 7 | . /lib/upgrade/common.sh 8 | 9 | if export_bootdevice && export_partdevice partdev 1; then 10 | mkdir -p /boot 11 | if mount -t ext4 -o ro,noatime "/dev/$partdev" /boot; then 12 | if [ -f /boot/sysupgrade.tgz ]; then 13 | mount /boot -o remount,rw,noatime 14 | mv -f /boot/sysupgrade.tgz / 15 | mount /boot -o remount,ro,noatime 16 | fi 17 | fi 18 | fi 19 | } 20 | 21 | boot_hook_add preinit_mount_root move_config 22 | 23 | -------------------------------------------------------------------------------- /openwrt-2305/target/linux/meson510/base-files/lib/upgrade/platform.sh: -------------------------------------------------------------------------------- 1 | # SPDX-License-Identifier: GPL-2.0-or-later 2 | 3 | RAMFS_COPY_BIN='fw_printenv fw_setenv' 4 | RAMFS_COPY_DATA='/etc/fw_env.config /var/lock/fw_printenv.lock' 5 | REQUIRE_IMAGE_METADATA=1 6 | 7 | platform_check_image() { 8 | case "$(board_name)" in 9 | hardkernel,odroid-c2) 10 | legacy_sdcard_check_image "$1" 11 | ;; 12 | *) 13 | return 0 14 | ;; 15 | esac 16 | } 17 | 18 | platform_do_upgrade() { 19 | case "$(board_name)" in 20 | hardkernel,odroid-c2) 21 | legacy_sdcard_do_upgrade "$1" 22 | ;; 23 | *) 24 | default_do_upgrade "$1" 25 | ;; 26 | esac 27 | } 28 | platform_copy_config() { 29 | case "$(board_name)" in 30 | hardkernel,odroid-c2) 31 | legacy_sdcard_copy_config 32 | ;; 33 | esac 34 | } 35 | -------------------------------------------------------------------------------- /openwrt-2305/target/linux/meson510/image/gen_aml_sdcard_img.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | set -x 4 | [ $# -eq 5 ] || { 5 | echo "SYNTAX: $0 " 6 | exit 1 7 | } 8 | 9 | OUTPUT="$1" 10 | BOOTFS="$2" 11 | ROOTFS="$3" 12 | BOOTFSSIZE="$4" 13 | ROOTFSSIZE="$5" 14 | 15 | head=4 16 | sect=63 17 | 18 | set $(ptgen -o $OUTPUT -h $head -s $sect -l 4096 -t c -p ${BOOTFSSIZE}M -t 83 -p ${ROOTFSSIZE}M) 19 | 20 | BOOTOFFSET="$(($1 / 512))" 21 | BOOTSIZE="$(($2 / 512))" 22 | ROOTFSOFFSET="$(($3 / 512))" 23 | ROOTFSSIZE="$(($4 / 512))" 24 | 25 | dd bs=512 if="$BOOTFS" of="$OUTPUT" seek="$BOOTOFFSET" conv=notrunc 26 | dd bs=512 if="$ROOTFS" of="$OUTPUT" seek="$ROOTFSOFFSET" conv=notrunc 27 | 28 | 29 | 30 | -------------------------------------------------------------------------------- /openwrt-2305/target/linux/meson510/image/onecloud.bootscript: -------------------------------------------------------------------------------- 1 | setenv condev "console=ttyAML0,115200n8 no_console_suspend consoleblank=0" 2 | setenv bootargs_sd "root=/dev/mmcblk1p2 rootwait ro ${condev} fsck.repair=yes net.ifnames=0 mac=${mac}" 3 | setenv kernel_loadaddr "0x00208000" 4 | setenv dtb_loadaddr "0x21800000" 5 | setenv initrd_loadaddr "0x22000000" 6 | setenv dtb_name "dtb" 7 | #setenv boot_start bootm ${kernel_loadaddr} ${initrd_loadaddr} ${dtb_loadaddr} 8 | setenv boot_start bootm ${kernel_loadaddr} - ${dtb_loadaddr} 9 | 10 | 11 | if fatload mmc 1 ${initrd_loadaddr} uInitrd; setenv bootargs ${bootargs_sd}; then if fatload mmc 1 ${kernel_loadaddr} uImage; then if fatload mmc 1 ${dtb_loadaddr} ${dtb_name}; then run boot_start; else imgread dtb boot ${loadaddr} ${dtb_loadaddr}; run boot_start;fi;fi;fi; 12 | 13 | #rebuild 14 | #mkimage -A arm -O linux -T script -C none -a 0 -e 0 -n "s805_autoscript" -d s805_autoscript.txt ./s805_autoscript 15 | -------------------------------------------------------------------------------- /openwrt-2305/target/linux/meson510/image/ws1508.bootscript: -------------------------------------------------------------------------------- 1 | setenv condev "console=ttyAML0,115200n8 no_console_suspend consoleblank=0" 2 | setenv bootargs_sd "root=/dev/mmcblk1p2 rootwait ro ${condev} fsck.repair=yes net.ifnames=0 mac=${mac}" 3 | setenv kernel_loadaddr "0x00108000" 4 | setenv dtb_loadaddr "0x11800000" 5 | setenv initrd_loadaddr "0x12000000" 6 | setenv dtb_name "dtb" 7 | #setenv boot_start bootm ${kernel_loadaddr} ${initrd_loadaddr} ${dtb_loadaddr} 8 | setenv boot_start bootm ${kernel_loadaddr} - ${dtb_loadaddr} 9 | 10 | 11 | if fatload mmc 1 ${initrd_loadaddr} uInitrd; setenv bootargs ${bootargs_sd}; then if fatload mmc 1 ${kernel_loadaddr} uImage; then if fatload mmc 1 ${dtb_loadaddr} ${dtb_name}; then run boot_start; else imgread dtb boot ${loadaddr} ${dtb_loadaddr}; run boot_start;fi;fi;fi; 12 | 13 | #rebuild 14 | #mkimage -A arm -O linux -T script -C none -a 0 -e 0 -n "s805_autoscript" -d s805_autoscript.txt ./s805_autoscript 15 | -------------------------------------------------------------------------------- /openwrt-2305/target/linux/meson510/meson8b/target.mk: -------------------------------------------------------------------------------- 1 | # SPDX-License-Identifier: GPL-2.0-only 2 | # 3 | # Copyright (C) 2020 ChalesYu <574249312@qq.com> 4 | # 5 | # This is free software, licensed under the GNU General Public License v2. 6 | # See /LICENSE for more information. 7 | # 8 | 9 | ARCH:=arm 10 | SUBTARGET:=meson8b 11 | BOARDNAME:=Amlogic S805 boards (32 bit) 12 | CPU_TYPE:=cortex-a5 13 | CPU_SUBTYPE:=vfpv4 14 | MAINTAINER:=ChalesYu <574249312@qq.com> 15 | 16 | define Target/Description 17 | Build firmware image for Amlogic S805 SoC devices. 18 | This firmware features a 32 bit kernel. 19 | endef 20 | 21 | -------------------------------------------------------------------------------- /openwrt-2305/target/linux/meson510/mesongx/target.mk: -------------------------------------------------------------------------------- 1 | # SPDX-License-Identifier: GPL-2.0-only 2 | # 3 | # This is free software, licensed under the GNU General Public License v2. 4 | # See /LICENSE for more information. 5 | # 6 | 7 | ARCH:=aarch64 8 | SUBTARGET:=mesongx 9 | BOARDNAME:=Amlogic S9 SoC family (64 bit) 10 | CPU_TYPE:=cortex-a53 11 | MAINTAINER:=Stijn Tintel 12 | 13 | define Target/Description 14 | Build firmware image for Amlogic S9 SoC devices. 15 | This firmware features a 64 bit kernel. 16 | endef 17 | -------------------------------------------------------------------------------- /openwrt-2305/target/linux/meson510/patches-5.10/005-usb-disable-ACA-check.patch: -------------------------------------------------------------------------------- 1 | USB: Disable ACA check 2 | 3 | In V1.3, USB0 fails in this check. 4 | But it can work normally. 5 | So just disable this check. 6 | 7 | --- 8 | drivers/phy/amlogic/phy-meson8b-usb2.c | 4 ++-- 9 | 1 file changed, 2 insertions(+), 2 deletions(-) 10 | 11 | diff --git a/drivers/phy/amlogic/phy-meson8b-usb2.c b/drivers/phy/amlogic/phy-meson8b-usb2.c 12 | index 8f40b9342a97..24b685bded97 100644 13 | --- a/drivers/phy/amlogic/phy-meson8b-usb2.c 14 | +++ b/drivers/phy/amlogic/phy-meson8b-usb2.c 15 | @@ -195,12 +195,12 @@ static int phy_meson8b_usb2_power_on(struct phy *phy) 16 | udelay(ACA_ENABLE_COMPLETE_TIME); 17 | 18 | regmap_read(priv->regmap, REG_ADP_BC, ®); 19 | - if (reg & REG_ADP_BC_ACA_PIN_FLOAT) { 20 | + /*if (reg & REG_ADP_BC_ACA_PIN_FLOAT) { 21 | dev_warn(&phy->dev, "USB ID detect failed!\n"); 22 | clk_disable_unprepare(priv->clk_usb); 23 | clk_disable_unprepare(priv->clk_usb_general); 24 | return -EINVAL; 25 | - } 26 | + }*/ 27 | } 28 | } 29 | 30 | -- 31 | 2.25.1 32 | 33 | -------------------------------------------------------------------------------- /openwrt-2305/target/linux/meson510/patches-5.10/901-arm-boot-add-dts-files.patch: -------------------------------------------------------------------------------- 1 | --- a/arch/arm/boot/dts/Makefile 2 | +++ b/arch/arm/boot/dts/Makefile 3 | @@ -348,6 +348,8 @@ dtb-$(CONFIG_MACH_MESON8) += \ 4 | meson8b-ec100.dtb \ 5 | meson8b-mxq.dtb \ 6 | meson8b-odroidc1.dtb \ 7 | + meson8b-onecloud.dtb \ 8 | + meson8b-ws1508.dtb \ 9 | meson8m2-mxiii-plus.dtb 10 | dtb-$(CONFIG_ARCH_MMP) += \ 11 | pxa168-aspenite.dtb \ 12 | -------------------------------------------------------------------------------- /openwrt-2305/target/linux/meson510/patches-5.10/902-use-system-LED-for-OpenWrt.patch: -------------------------------------------------------------------------------- 1 | --- a/arch/arm/boot/dts/meson8b-onecloud.dts 2 | +++ b/arch/arm/boot/dts/meson8b-onecloud.dts 3 | @@ -13,6 +13,11 @@ 4 | serial0 = &uart_AO; 5 | mmc0 = &sd_card_slot; 6 | mmc1 = &sdhc; 7 | + 8 | + led-boot = &led_status_red; 9 | + led-failsafe = &led_status_red; 10 | + led-running = &led_status_blue; 11 | + led-upgrade = &led_status_green; 12 | }; 13 | 14 | chosen { 15 | -------------------------------------------------------------------------------- /openwrt-2305/target/linux/meson515/Makefile: -------------------------------------------------------------------------------- 1 | # SPDX-License-Identifier: GPL-2.0-or-later 2 | # 3 | # Copyright (C) 2017-2021 Stijn Tintel 4 | 5 | include $(TOPDIR)/rules.mk 6 | 7 | ARCH:=arm 8 | BOARD:=meson 9 | BOARDNAME:=Amlogic Meson family 10 | FEATURES:=audio boot-part ext4 fpu rootfs-part legacy-sdcard squashfs usbgadget 11 | MAINTAINER:=Stijn Tintel 12 | SUBTARGETS:=meson8b mesongx 13 | 14 | KERNEL_PATCHVER:=5.15 15 | 16 | define Target/Description 17 | Build firmware image for Amlogic Meson SoC devices. 18 | Currently produces SD Card/USB disk image. 19 | endef 20 | 21 | include $(INCLUDE_DIR)/target.mk 22 | 23 | DEFAULT_PACKAGES += \ 24 | e2fsprogs \ 25 | kmod-sound-core \ 26 | kmod-usb-hid \ 27 | mkf2fs \ 28 | parted losetup resize2fs \ 29 | partx-utils 30 | 31 | KERNELNAME:=Image dtbs 32 | 33 | $(eval $(call BuildTarget)) 34 | -------------------------------------------------------------------------------- /openwrt-2305/target/linux/meson515/base-files/etc/inittab: -------------------------------------------------------------------------------- 1 | ::sysinit:/etc/init.d/rcS S boot 2 | ::shutdown:/etc/init.d/rcS K shutdown 3 | ::askconsole:/usr/libexec/login.sh 4 | tty1::askfirst:/usr/libexec/login.sh 5 | ttyAML0::askfirst:/usr/libexec/login.sh 6 | -------------------------------------------------------------------------------- /openwrt-2305/target/linux/meson515/base-files/lib/preinit/79_move_config: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | # Copyright (C) 2012-2015 OpenWrt.org 3 | 4 | move_config() { 5 | local partdev 6 | 7 | . /lib/upgrade/common.sh 8 | 9 | if export_bootdevice && export_partdevice partdev 1; then 10 | mkdir -p /boot 11 | if mount -t ext4 -o ro,noatime "/dev/$partdev" /boot; then 12 | if [ -f /boot/sysupgrade.tgz ]; then 13 | mount /boot -o remount,rw,noatime 14 | mv -f /boot/sysupgrade.tgz / 15 | mount /boot -o remount,ro,noatime 16 | fi 17 | fi 18 | fi 19 | } 20 | 21 | boot_hook_add preinit_mount_root move_config 22 | 23 | -------------------------------------------------------------------------------- /openwrt-2305/target/linux/meson515/base-files/lib/upgrade/platform.sh: -------------------------------------------------------------------------------- 1 | # SPDX-License-Identifier: GPL-2.0-or-later 2 | 3 | RAMFS_COPY_BIN='fw_printenv fw_setenv' 4 | RAMFS_COPY_DATA='/etc/fw_env.config /var/lock/fw_printenv.lock' 5 | REQUIRE_IMAGE_METADATA=1 6 | 7 | platform_check_image() { 8 | case "$(board_name)" in 9 | hardkernel,odroid-c2) 10 | legacy_sdcard_check_image "$1" 11 | ;; 12 | *) 13 | return 0 14 | ;; 15 | esac 16 | } 17 | 18 | platform_do_upgrade() { 19 | case "$(board_name)" in 20 | hardkernel,odroid-c2) 21 | legacy_sdcard_do_upgrade "$1" 22 | ;; 23 | *) 24 | default_do_upgrade "$1" 25 | ;; 26 | esac 27 | } 28 | platform_copy_config() { 29 | case "$(board_name)" in 30 | hardkernel,odroid-c2) 31 | legacy_sdcard_copy_config 32 | ;; 33 | esac 34 | } 35 | -------------------------------------------------------------------------------- /openwrt-2305/target/linux/meson515/image/gen_aml_sdcard_img.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | set -x 4 | [ $# -eq 5 ] || { 5 | echo "SYNTAX: $0 " 6 | exit 1 7 | } 8 | 9 | OUTPUT="$1" 10 | BOOTFS="$2" 11 | ROOTFS="$3" 12 | BOOTFSSIZE="$4" 13 | ROOTFSSIZE="$5" 14 | 15 | head=4 16 | sect=63 17 | 18 | set $(ptgen -o $OUTPUT -h $head -s $sect -l 4096 -t c -p ${BOOTFSSIZE}M -t 83 -p ${ROOTFSSIZE}M) 19 | 20 | BOOTOFFSET="$(($1 / 512))" 21 | BOOTSIZE="$(($2 / 512))" 22 | ROOTFSOFFSET="$(($3 / 512))" 23 | ROOTFSSIZE="$(($4 / 512))" 24 | 25 | dd bs=512 if="$BOOTFS" of="$OUTPUT" seek="$BOOTOFFSET" conv=notrunc 26 | dd bs=512 if="$ROOTFS" of="$OUTPUT" seek="$ROOTFSOFFSET" conv=notrunc 27 | 28 | 29 | 30 | -------------------------------------------------------------------------------- /openwrt-2305/target/linux/meson515/image/onecloud.bootscript: -------------------------------------------------------------------------------- 1 | setenv condev "console=ttyAML0,115200n8 no_console_suspend consoleblank=0" 2 | setenv bootargs_sd "root=/dev/mmcblk1p2 rootwait ro ${condev} fsck.repair=yes net.ifnames=0 mac=${mac}" 3 | setenv kernel_loadaddr "0x00208000" 4 | setenv dtb_loadaddr "0x21800000" 5 | setenv initrd_loadaddr "0x22000000" 6 | setenv dtb_name "dtb" 7 | #setenv boot_start bootm ${kernel_loadaddr} ${initrd_loadaddr} ${dtb_loadaddr} 8 | setenv boot_start bootm ${kernel_loadaddr} - ${dtb_loadaddr} 9 | 10 | 11 | if fatload mmc 1 ${initrd_loadaddr} uInitrd; setenv bootargs ${bootargs_sd}; then if fatload mmc 1 ${kernel_loadaddr} uImage; then if fatload mmc 1 ${dtb_loadaddr} ${dtb_name}; then run boot_start; else imgread dtb boot ${loadaddr} ${dtb_loadaddr}; run boot_start;fi;fi;fi; 12 | 13 | #rebuild 14 | #mkimage -A arm -O linux -T script -C none -a 0 -e 0 -n "s805_autoscript" -d s805_autoscript.txt ./s805_autoscript 15 | -------------------------------------------------------------------------------- /openwrt-2305/target/linux/meson515/image/ws1508.bootscript: -------------------------------------------------------------------------------- 1 | setenv condev "console=ttyAML0,115200n8 no_console_suspend consoleblank=0" 2 | setenv bootargs_sd "root=/dev/mmcblk1p2 rootwait ro ${condev} fsck.repair=yes net.ifnames=0 mac=${mac}" 3 | setenv kernel_loadaddr "0x00108000" 4 | setenv dtb_loadaddr "0x11800000" 5 | setenv initrd_loadaddr "0x12000000" 6 | setenv dtb_name "dtb" 7 | #setenv boot_start bootm ${kernel_loadaddr} ${initrd_loadaddr} ${dtb_loadaddr} 8 | setenv boot_start bootm ${kernel_loadaddr} - ${dtb_loadaddr} 9 | 10 | 11 | if fatload mmc 1 ${initrd_loadaddr} uInitrd; setenv bootargs ${bootargs_sd}; then if fatload mmc 1 ${kernel_loadaddr} uImage; then if fatload mmc 1 ${dtb_loadaddr} ${dtb_name}; then run boot_start; else imgread dtb boot ${loadaddr} ${dtb_loadaddr}; run boot_start;fi;fi;fi; 12 | 13 | #rebuild 14 | #mkimage -A arm -O linux -T script -C none -a 0 -e 0 -n "s805_autoscript" -d s805_autoscript.txt ./s805_autoscript 15 | -------------------------------------------------------------------------------- /openwrt-2305/target/linux/meson515/meson8b/target.mk: -------------------------------------------------------------------------------- 1 | # SPDX-License-Identifier: GPL-2.0-only 2 | # 3 | # Copyright (C) 2020 ChalesYu <574249312@qq.com> 4 | # 5 | # This is free software, licensed under the GNU General Public License v2. 6 | # See /LICENSE for more information. 7 | # 8 | 9 | ARCH:=arm 10 | SUBTARGET:=meson8b 11 | BOARDNAME:=Amlogic S805 boards (32 bit) 12 | CPU_TYPE:=cortex-a5 13 | CPU_SUBTYPE:=vfpv4 14 | MAINTAINER:=ChalesYu <574249312@qq.com> 15 | 16 | define Target/Description 17 | Build firmware image for Amlogic S805 SoC devices. 18 | This firmware features a 32 bit kernel. 19 | endef 20 | 21 | -------------------------------------------------------------------------------- /openwrt-2305/target/linux/meson515/mesongx/target.mk: -------------------------------------------------------------------------------- 1 | # SPDX-License-Identifier: GPL-2.0-only 2 | # 3 | # This is free software, licensed under the GNU General Public License v2. 4 | # See /LICENSE for more information. 5 | # 6 | 7 | ARCH:=aarch64 8 | SUBTARGET:=mesongx 9 | BOARDNAME:=Amlogic S9 SoC family (64 bit) 10 | CPU_TYPE:=cortex-a53 11 | MAINTAINER:=Stijn Tintel 12 | 13 | define Target/Description 14 | Build firmware image for Amlogic S9 SoC devices. 15 | This firmware features a 64 bit kernel. 16 | endef 17 | -------------------------------------------------------------------------------- /openwrt-2305/target/linux/meson515/patches-5.15/005-usb-disable-ACA-check.patch: -------------------------------------------------------------------------------- 1 | USB: Disable ACA check 2 | 3 | In V1.3, USB0 fails in this check. 4 | But it can work normally. 5 | So just disable this check. 6 | 7 | --- 8 | drivers/phy/amlogic/phy-meson8b-usb2.c | 4 ++-- 9 | 1 file changed, 2 insertions(+), 2 deletions(-) 10 | 11 | diff --git a/drivers/phy/amlogic/phy-meson8b-usb2.c b/drivers/phy/amlogic/phy-meson8b-usb2.c 12 | index dd96763911b8..dff1bc44f1ca 100644 13 | --- a/drivers/phy/amlogic/phy-meson8b-usb2.c 14 | +++ b/drivers/phy/amlogic/phy-meson8b-usb2.c 15 | @@ -197,13 +197,13 @@ static int phy_meson8b_usb2_power_on(struct phy *phy) 16 | udelay(ACA_ENABLE_COMPLETE_TIME); 17 | 18 | regmap_read(priv->regmap, REG_ADP_BC, ®); 19 | - if (reg & REG_ADP_BC_ACA_PIN_FLOAT) { 20 | + /*if (reg & REG_ADP_BC_ACA_PIN_FLOAT) { 21 | dev_warn(&phy->dev, "USB ID detect failed!\n"); 22 | clk_disable_unprepare(priv->clk_usb); 23 | clk_disable_unprepare(priv->clk_usb_general); 24 | reset_control_rearm(priv->reset); 25 | return -EINVAL; 26 | - } 27 | + }*/ 28 | } 29 | } 30 | 31 | -- 32 | 2.25.1 33 | 34 | -------------------------------------------------------------------------------- /openwrt-2305/target/linux/meson515/patches-5.15/901-arm-boot-add-dts-files.patch: -------------------------------------------------------------------------------- 1 | --- a/arch/arm/boot/dts/Makefile 2 | +++ b/arch/arm/boot/dts/Makefile 3 | @@ -348,6 +348,8 @@ dtb-$(CONFIG_MACH_MESON8) += \ 4 | meson8b-ec100.dtb \ 5 | meson8b-mxq.dtb \ 6 | meson8b-odroidc1.dtb \ 7 | + meson8b-onecloud.dtb \ 8 | + meson8b-ws1508.dtb \ 9 | meson8m2-mxiii-plus.dtb 10 | dtb-$(CONFIG_ARCH_MMP) += \ 11 | pxa168-aspenite.dtb \ 12 | -------------------------------------------------------------------------------- /openwrt-2305/target/linux/meson515/patches-5.15/902-use-system-LED-for-OpenWrt.patch: -------------------------------------------------------------------------------- 1 | --- a/arch/arm/boot/dts/meson8b-onecloud.dts 2 | +++ b/arch/arm/boot/dts/meson8b-onecloud.dts 3 | @@ -13,6 +13,11 @@ 4 | serial0 = &uart_AO; 5 | mmc0 = &sd_card_slot; 6 | mmc1 = &sdhc; 7 | + 8 | + led-boot = &led_status_red; 9 | + led-failsafe = &led_status_red; 10 | + led-running = &led_status_blue; 11 | + led-upgrade = &led_status_green; 12 | }; 13 | 14 | chosen { 15 | -------------------------------------------------------------------------------- /openwrt-2305/target/linux/meson515/patches-6.1/005-usb-disable-ACA-check.patch: -------------------------------------------------------------------------------- 1 | USB: Disable ACA check 2 | 3 | In V1.3, USB0 fails in this check. 4 | But it can work normally. 5 | So just disable this check. 6 | 7 | --- 8 | drivers/phy/amlogic/phy-meson8b-usb2.c | 4 ++-- 9 | 1 file changed, 2 insertions(+), 2 deletions(-) 10 | 11 | diff --git a/drivers/phy/amlogic/phy-meson8b-usb2.c b/drivers/phy/amlogic/phy-meson8b-usb2.c 12 | index dd96763911b8..dff1bc44f1ca 100644 13 | --- a/drivers/phy/amlogic/phy-meson8b-usb2.c 14 | +++ b/drivers/phy/amlogic/phy-meson8b-usb2.c 15 | @@ -197,13 +197,13 @@ static int phy_meson8b_usb2_power_on(struct phy *phy) 16 | udelay(ACA_ENABLE_COMPLETE_TIME); 17 | 18 | regmap_read(priv->regmap, REG_ADP_BC, ®); 19 | - if (reg & REG_ADP_BC_ACA_PIN_FLOAT) { 20 | + /*if (reg & REG_ADP_BC_ACA_PIN_FLOAT) { 21 | dev_warn(&phy->dev, "USB ID detect failed!\n"); 22 | clk_disable_unprepare(priv->clk_usb); 23 | clk_disable_unprepare(priv->clk_usb_general); 24 | reset_control_rearm(priv->reset); 25 | return -EINVAL; 26 | - } 27 | + }*/ 28 | } 29 | } 30 | 31 | -- 32 | 2.25.1 33 | 34 | -------------------------------------------------------------------------------- /openwrt-2305/target/linux/meson515/patches-6.1/901-arm-boot-add-dts-files.patch: -------------------------------------------------------------------------------- 1 | From 7ee5e1ab3026c8011af1e49d7930bdcf782c3c56 Mon Sep 17 00:00:00 2001 2 | From: hzy 3 | Date: Sat, 1 Apr 2023 13:24:42 +0800 4 | Subject: [PATCH 1/2] ARM: dts: meson8b: Add DTS for Xunlei Onecloud 5 | 6 | Signed-off-by: hzy 7 | --- 8 | arch/arm/boot/dts/Makefile | 1 + 9 | arch/arm/boot/dts/meson8b-onecloud.dts | 410 +++++++++++++++++++++++++ 10 | 2 files changed, 411 insertions(+) 11 | create mode 100644 arch/arm/boot/dts/meson8b-onecloud.dts 12 | 13 | diff --git a/arch/arm/boot/dts/Makefile b/arch/arm/boot/dts/Makefile 14 | index 6aa7dc4d..e3a3577b 100644 15 | --- a/arch/arm/boot/dts/Makefile 16 | +++ b/arch/arm/boot/dts/Makefile 17 | @@ -401,6 +401,8 @@ dtb-$(CONFIG_MACH_MESON8) += \ 18 | meson8b-ec100.dtb \ 19 | meson8b-mxq.dtb \ 20 | meson8b-odroidc1.dtb \ 21 | + meson8b-onecloud.dtb \ 22 | + meson8b-ws1508.dtb \ 23 | meson8m2-mxiii-plus.dtb 24 | dtb-$(CONFIG_ARCH_MMP) += \ 25 | pxa168-aspenite.dtb \ 26 | -------------------------------------------------------------------------------- /openwrt-2305/target/linux/meson515/patches-6.1/902-use-system-LED-for-OpenWrt.patch: -------------------------------------------------------------------------------- 1 | --- a/arch/arm/boot/dts/meson8b-onecloud.dts 2 | +++ b/arch/arm/boot/dts/meson8b-onecloud.dts 3 | @@ -13,6 +13,11 @@ 4 | serial0 = &uart_AO; 5 | mmc0 = &sd_card_slot; 6 | mmc1 = &sdhc; 7 | + 8 | + led-boot = &led_status_red; 9 | + led-failsafe = &led_status_red; 10 | + led-running = &led_status_blue; 11 | + led-upgrade = &led_status_green; 12 | }; 13 | 14 | chosen { 15 | -------------------------------------------------------------------------------- /openwrt-2305/target/linux/meson61/Makefile: -------------------------------------------------------------------------------- 1 | # SPDX-License-Identifier: GPL-2.0-or-later 2 | # 3 | # Copyright (C) 2017-2021 Stijn Tintel 4 | 5 | include $(TOPDIR)/rules.mk 6 | 7 | ARCH:=arm 8 | BOARD:=meson 9 | BOARDNAME:=Amlogic Meson family 10 | FEATURES:=audio boot-part ext4 fpu rootfs-part legacy-sdcard squashfs usbgadget 11 | MAINTAINER:=Stijn Tintel 12 | SUBTARGETS:=meson8b mesongx 13 | 14 | KERNEL_PATCHVER:=6.1 15 | 16 | define Target/Description 17 | Build firmware image for Amlogic Meson SoC devices. 18 | Currently produces SD Card/USB disk image. 19 | endef 20 | 21 | include $(INCLUDE_DIR)/target.mk 22 | 23 | DEFAULT_PACKAGES += \ 24 | e2fsprogs \ 25 | kmod-sound-core \ 26 | kmod-usb-hid \ 27 | mkf2fs \ 28 | parted losetup resize2fs \ 29 | partx-utils 30 | 31 | KERNELNAME:=Image dtbs 32 | 33 | $(eval $(call BuildTarget)) 34 | -------------------------------------------------------------------------------- /openwrt-2305/target/linux/meson61/base-files/etc/inittab: -------------------------------------------------------------------------------- 1 | ::sysinit:/etc/init.d/rcS S boot 2 | ::shutdown:/etc/init.d/rcS K shutdown 3 | ::askconsole:/usr/libexec/login.sh 4 | tty1::askfirst:/usr/libexec/login.sh 5 | ttyAML0::askfirst:/usr/libexec/login.sh 6 | -------------------------------------------------------------------------------- /openwrt-2305/target/linux/meson61/base-files/lib/preinit/79_move_config: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | # Copyright (C) 2012-2015 OpenWrt.org 3 | 4 | move_config() { 5 | local partdev 6 | 7 | . /lib/upgrade/common.sh 8 | 9 | if export_bootdevice && export_partdevice partdev 1; then 10 | mkdir -p /boot 11 | if mount -t ext4 -o ro,noatime "/dev/$partdev" /boot; then 12 | if [ -f /boot/sysupgrade.tgz ]; then 13 | mount /boot -o remount,rw,noatime 14 | mv -f /boot/sysupgrade.tgz / 15 | mount /boot -o remount,ro,noatime 16 | fi 17 | fi 18 | fi 19 | } 20 | 21 | boot_hook_add preinit_mount_root move_config 22 | 23 | -------------------------------------------------------------------------------- /openwrt-2305/target/linux/meson61/base-files/lib/upgrade/platform.sh: -------------------------------------------------------------------------------- 1 | # SPDX-License-Identifier: GPL-2.0-or-later 2 | 3 | RAMFS_COPY_BIN='fw_printenv fw_setenv' 4 | RAMFS_COPY_DATA='/etc/fw_env.config /var/lock/fw_printenv.lock' 5 | REQUIRE_IMAGE_METADATA=1 6 | 7 | platform_check_image() { 8 | case "$(board_name)" in 9 | hardkernel,odroid-c2) 10 | legacy_sdcard_check_image "$1" 11 | ;; 12 | *) 13 | return 0 14 | ;; 15 | esac 16 | } 17 | 18 | platform_do_upgrade() { 19 | case "$(board_name)" in 20 | hardkernel,odroid-c2) 21 | legacy_sdcard_do_upgrade "$1" 22 | ;; 23 | *) 24 | default_do_upgrade "$1" 25 | ;; 26 | esac 27 | } 28 | platform_copy_config() { 29 | case "$(board_name)" in 30 | hardkernel,odroid-c2) 31 | legacy_sdcard_copy_config 32 | ;; 33 | esac 34 | } 35 | -------------------------------------------------------------------------------- /openwrt-2305/target/linux/meson61/image/gen_aml_sdcard_img.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | set -x 4 | [ $# -eq 5 ] || { 5 | echo "SYNTAX: $0 " 6 | exit 1 7 | } 8 | 9 | OUTPUT="$1" 10 | BOOTFS="$2" 11 | ROOTFS="$3" 12 | BOOTFSSIZE="$4" 13 | ROOTFSSIZE="$5" 14 | 15 | head=4 16 | sect=63 17 | 18 | set $(ptgen -o $OUTPUT -h $head -s $sect -l 4096 -t c -p ${BOOTFSSIZE}M -t 83 -p ${ROOTFSSIZE}M) 19 | 20 | BOOTOFFSET="$(($1 / 512))" 21 | BOOTSIZE="$(($2 / 512))" 22 | ROOTFSOFFSET="$(($3 / 512))" 23 | ROOTFSSIZE="$(($4 / 512))" 24 | 25 | dd bs=512 if="$BOOTFS" of="$OUTPUT" seek="$BOOTOFFSET" conv=notrunc 26 | dd bs=512 if="$ROOTFS" of="$OUTPUT" seek="$ROOTFSOFFSET" conv=notrunc 27 | 28 | 29 | 30 | -------------------------------------------------------------------------------- /openwrt-2305/target/linux/meson61/image/onecloud.bootscript: -------------------------------------------------------------------------------- 1 | setenv condev "console=ttyAML0,115200n8 no_console_suspend consoleblank=0" 2 | setenv bootargs_sd "root=/dev/mmcblk1p2 rootwait ro ${condev} fsck.repair=yes net.ifnames=0 mac=${mac}" 3 | setenv kernel_loadaddr "0x00208000" 4 | setenv dtb_loadaddr "0x21800000" 5 | setenv initrd_loadaddr "0x22000000" 6 | setenv dtb_name "dtb" 7 | #setenv boot_start bootm ${kernel_loadaddr} ${initrd_loadaddr} ${dtb_loadaddr} 8 | setenv boot_start bootm ${kernel_loadaddr} - ${dtb_loadaddr} 9 | 10 | 11 | if fatload mmc 1 ${initrd_loadaddr} uInitrd; setenv bootargs ${bootargs_sd}; then if fatload mmc 1 ${kernel_loadaddr} uImage; then if fatload mmc 1 ${dtb_loadaddr} ${dtb_name}; then run boot_start; else imgread dtb boot ${loadaddr} ${dtb_loadaddr}; run boot_start;fi;fi;fi; 12 | 13 | #rebuild 14 | #mkimage -A arm -O linux -T script -C none -a 0 -e 0 -n "s805_autoscript" -d s805_autoscript.txt ./s805_autoscript 15 | -------------------------------------------------------------------------------- /openwrt-2305/target/linux/meson61/image/ws1508.bootscript: -------------------------------------------------------------------------------- 1 | setenv condev "console=ttyAML0,115200n8 no_console_suspend consoleblank=0" 2 | setenv bootargs_sd "root=/dev/mmcblk1p2 rootwait ro ${condev} fsck.repair=yes net.ifnames=0 mac=${mac}" 3 | setenv kernel_loadaddr "0x00108000" 4 | setenv dtb_loadaddr "0x11800000" 5 | setenv initrd_loadaddr "0x12000000" 6 | setenv dtb_name "dtb" 7 | #setenv boot_start bootm ${kernel_loadaddr} ${initrd_loadaddr} ${dtb_loadaddr} 8 | setenv boot_start bootm ${kernel_loadaddr} - ${dtb_loadaddr} 9 | 10 | 11 | if fatload mmc 1 ${initrd_loadaddr} uInitrd; setenv bootargs ${bootargs_sd}; then if fatload mmc 1 ${kernel_loadaddr} uImage; then if fatload mmc 1 ${dtb_loadaddr} ${dtb_name}; then run boot_start; else imgread dtb boot ${loadaddr} ${dtb_loadaddr}; run boot_start;fi;fi;fi; 12 | 13 | #rebuild 14 | #mkimage -A arm -O linux -T script -C none -a 0 -e 0 -n "s805_autoscript" -d s805_autoscript.txt ./s805_autoscript 15 | -------------------------------------------------------------------------------- /openwrt-2305/target/linux/meson61/meson8b/target.mk: -------------------------------------------------------------------------------- 1 | # SPDX-License-Identifier: GPL-2.0-only 2 | # 3 | # Copyright (C) 2020 ChalesYu <574249312@qq.com> 4 | # 5 | # This is free software, licensed under the GNU General Public License v2. 6 | # See /LICENSE for more information. 7 | # 8 | 9 | ARCH:=arm 10 | SUBTARGET:=meson8b 11 | BOARDNAME:=Amlogic S805 boards (32 bit) 12 | CPU_TYPE:=cortex-a5 13 | CPU_SUBTYPE:=vfpv4 14 | MAINTAINER:=ChalesYu <574249312@qq.com> 15 | 16 | define Target/Description 17 | Build firmware image for Amlogic S805 SoC devices. 18 | This firmware features a 32 bit kernel. 19 | endef 20 | 21 | -------------------------------------------------------------------------------- /openwrt-2305/target/linux/meson61/mesongx/target.mk: -------------------------------------------------------------------------------- 1 | # SPDX-License-Identifier: GPL-2.0-only 2 | # 3 | # This is free software, licensed under the GNU General Public License v2. 4 | # See /LICENSE for more information. 5 | # 6 | 7 | ARCH:=aarch64 8 | SUBTARGET:=mesongx 9 | BOARDNAME:=Amlogic S9 SoC family (64 bit) 10 | CPU_TYPE:=cortex-a53 11 | MAINTAINER:=Stijn Tintel 12 | 13 | define Target/Description 14 | Build firmware image for Amlogic S9 SoC devices. 15 | This firmware features a 64 bit kernel. 16 | endef 17 | -------------------------------------------------------------------------------- /openwrt-2305/target/linux/meson61/patches-6.1/005-usb-disable-ACA-check.patch: -------------------------------------------------------------------------------- 1 | USB: Disable ACA check 2 | 3 | In V1.3, USB0 fails in this check. 4 | But it can work normally. 5 | So just disable this check. 6 | 7 | --- 8 | drivers/phy/amlogic/phy-meson8b-usb2.c | 4 ++-- 9 | 1 file changed, 2 insertions(+), 2 deletions(-) 10 | 11 | diff --git a/drivers/phy/amlogic/phy-meson8b-usb2.c b/drivers/phy/amlogic/phy-meson8b-usb2.c 12 | index dd96763911b8..dff1bc44f1ca 100644 13 | --- a/drivers/phy/amlogic/phy-meson8b-usb2.c 14 | +++ b/drivers/phy/amlogic/phy-meson8b-usb2.c 15 | @@ -197,13 +197,13 @@ static int phy_meson8b_usb2_power_on(struct phy *phy) 16 | udelay(ACA_ENABLE_COMPLETE_TIME); 17 | 18 | regmap_read(priv->regmap, REG_ADP_BC, ®); 19 | - if (reg & REG_ADP_BC_ACA_PIN_FLOAT) { 20 | + /*if (reg & REG_ADP_BC_ACA_PIN_FLOAT) { 21 | dev_warn(&phy->dev, "USB ID detect failed!\n"); 22 | clk_disable_unprepare(priv->clk_usb); 23 | clk_disable_unprepare(priv->clk_usb_general); 24 | reset_control_rearm(priv->reset); 25 | return -EINVAL; 26 | - } 27 | + }*/ 28 | } 29 | } 30 | 31 | -- 32 | 2.25.1 33 | 34 | -------------------------------------------------------------------------------- /openwrt-2305/target/linux/meson61/patches-6.1/901-arm-boot-add-dts-files.patch: -------------------------------------------------------------------------------- 1 | From 7ee5e1ab3026c8011af1e49d7930bdcf782c3c56 Mon Sep 17 00:00:00 2001 2 | From: hzy 3 | Date: Sat, 1 Apr 2023 13:24:42 +0800 4 | Subject: [PATCH 1/2] ARM: dts: meson8b: Add DTS for Xunlei Onecloud 5 | 6 | Signed-off-by: hzy 7 | --- 8 | arch/arm/boot/dts/Makefile | 1 + 9 | arch/arm/boot/dts/meson8b-onecloud.dts | 410 +++++++++++++++++++++++++ 10 | 2 files changed, 411 insertions(+) 11 | create mode 100644 arch/arm/boot/dts/meson8b-onecloud.dts 12 | 13 | diff --git a/arch/arm/boot/dts/Makefile b/arch/arm/boot/dts/Makefile 14 | index 6aa7dc4d..e3a3577b 100644 15 | --- a/arch/arm/boot/dts/Makefile 16 | +++ b/arch/arm/boot/dts/Makefile 17 | @@ -401,6 +401,8 @@ dtb-$(CONFIG_MACH_MESON8) += \ 18 | meson8b-ec100.dtb \ 19 | meson8b-mxq.dtb \ 20 | meson8b-odroidc1.dtb \ 21 | + meson8b-onecloud.dtb \ 22 | + meson8b-ws1508.dtb \ 23 | meson8m2-mxiii-plus.dtb 24 | dtb-$(CONFIG_ARCH_MMP) += \ 25 | pxa168-aspenite.dtb \ 26 | -------------------------------------------------------------------------------- /openwrt-2305/target/linux/meson61/patches-6.1/902-use-system-LED-for-OpenWrt.patch: -------------------------------------------------------------------------------- 1 | --- a/arch/arm/boot/dts/meson8b-onecloud.dts 2 | +++ b/arch/arm/boot/dts/meson8b-onecloud.dts 3 | @@ -13,6 +13,11 @@ 4 | serial0 = &uart_AO; 5 | mmc0 = &sd_card_slot; 6 | mmc1 = &sdhc; 7 | + 8 | + led-boot = &led_status_red; 9 | + led-failsafe = &led_status_red; 10 | + led-running = &led_status_blue; 11 | + led-upgrade = &led_status_green; 12 | }; 13 | 14 | chosen { 15 | -------------------------------------------------------------------------------- /openwrt-2410/feeds-package-patch-2410/a-0001-xtables-addons-bump-to-3.27.patch: -------------------------------------------------------------------------------- 1 | From b093eea601195184ea1364c4678c35f96269f7f5 Mon Sep 17 00:00:00 2001 2 | From: Mieczyslaw Nalewaj 3 | Date: Sun, 20 Apr 2025 18:29:30 +0200 4 | Subject: [PATCH] xtables-addons: bump to 3.27 5 | 6 | Updated for compatibility with kernel 6.12. 7 | 8 | Signed-off-by: Mieczyslaw Nalewaj 9 | --- 10 | net/xtables-addons/Makefile | 4 ++-- 11 | 1 file changed, 2 insertions(+), 2 deletions(-) 12 | 13 | diff --git a/net/xtables-addons/Makefile b/net/xtables-addons/Makefile 14 | index 5c248634a..9e0139dcf 100644 15 | --- a/net/xtables-addons/Makefile 16 | +++ b/net/xtables-addons/Makefile 17 | @@ -7,9 +7,9 @@ include $(TOPDIR)/rules.mk 18 | include $(INCLUDE_DIR)/kernel.mk 19 | 20 | PKG_NAME:=xtables-addons 21 | -PKG_VERSION:=3.26 22 | +PKG_VERSION:=3.27 23 | PKG_RELEASE:=1 24 | -PKG_HASH:=0b52df2117bacf2e32d1d3f98d09dbf88b274390733d3955699b108acaf9f2a6 25 | +PKG_HASH:=e47ea8febe73c12ecab09d2c93578c5dc72d76f17fdf673397758f519cce6828 26 | 27 | PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz 28 | PKG_SOURCE_URL:=https://inai.de/files/xtables-addons/ 29 | -- 30 | 2.43.0 31 | 32 | -------------------------------------------------------------------------------- /openwrt-2410/my-patch-ag71xx-fix/0011-ath79-append-okli-kernel-support.patch: -------------------------------------------------------------------------------- 1 | From 1588cde95c475084642053e618773f7fcee163f7 Mon Sep 17 00:00:00 2001 2 | From: Chen Minqiang 3 | Date: Sun, 6 Dec 2020 18:37:15 +0800 4 | Subject: [PATCH 1/4] ath79: append okli kernel support 5 | 6 | --- 7 | target/linux/ath79/image/Makefile | 4 ++++ 8 | 1 file changed, 4 insertions(+) 9 | 10 | diff --git a/target/linux/ath79/image/Makefile b/target/linux/ath79/image/Makefile 11 | index 1918a8a431..d2e9c92369 100644 12 | --- a/target/linux/ath79/image/Makefile 13 | +++ b/target/linux/ath79/image/Makefile 14 | @@ -63,6 +63,10 @@ define Build/relocate-kernel 15 | endef 16 | 17 | 18 | +define Build/append-okli-kernel 19 | + dd if="$(KDIR)/loader-$(word 1,$(1)).uImage" >> "$@" 20 | +endef 21 | + 22 | define Device/Default 23 | DEVICE_DTS_DIR := ../dts 24 | DEVICE_DTS = $$(SOC)_$(1) 25 | -- 26 | 2.34.1 27 | 28 | -------------------------------------------------------------------------------- /openwrt-2410/mypatch-2410-rockchip-ipt/005-fix-ipt-default.patch: -------------------------------------------------------------------------------- 1 | diff --git a/package/network/services/dnsmasq/Makefile b/package/network/services/dnsmasq/Makefile 2 | index 5224e996a4..384c03d7ae 100644 3 | --- a/package/network/services/dnsmasq/Makefile 4 | +++ b/package/network/services/dnsmasq/Makefile 5 | @@ -112,10 +112,10 @@ define Package/dnsmasq-full/config 6 | default y 7 | config PACKAGE_dnsmasq_full_ipset 8 | bool "Build with IPset support." 9 | - default n 10 | + default y 11 | config PACKAGE_dnsmasq_full_nftset 12 | bool "Build with Nftset support." 13 | - default y 14 | + default n 15 | config PACKAGE_dnsmasq_full_conntrack 16 | bool "Build with Conntrack support." 17 | default y 18 | --- a/include/target.mk 19 | +++ b/include/target.mk 20 | @@ -53,10 +53,10 @@ DEFAULT_PACKAGES.nas:=\ 21 | mdadm 22 | # For router targets 23 | DEFAULT_PACKAGES.router:=\ 24 | - dnsmasq \ 25 | - firewall4 \ 26 | - nftables \ 27 | - kmod-nft-offload \ 28 | + dnsmasq-full \ 29 | + firewall \ 30 | + iptables-zz-legacy \ 31 | + ip6tables-zz-legacy \ 32 | odhcp6c \ 33 | odhcpd-ipv6only \ 34 | ppp \ 35 | -------------------------------------------------------------------------------- /openwrt-2410/mypatch-2410-rockchip-nft/005-fix-nft-default.patch: -------------------------------------------------------------------------------- 1 | --- a/include/target.mk 2 | +++ b/include/target.mk 3 | @@ -53,10 +53,12 @@ DEFAULT_PACKAGES.nas:=\ 4 | mdadm 5 | # For router targets 6 | DEFAULT_PACKAGES.router:=\ 7 | - dnsmasq \ 8 | - firewall4 \ 9 | - nftables \ 10 | - kmod-nft-offload \ 11 | + dnsmasq-full \ 12 | + firewall4 \ 13 | + nftables \ 14 | + kmod-nft-offload \ 15 | + iptables-nft \ 16 | + ip6tables-nft \ 17 | odhcp6c \ 18 | odhcpd-ipv6only \ 19 | ppp \ 20 | -------------------------------------------------------------------------------- /openwrt-2410/mypatch-bbr-v3/0015-iproute2-build-quirk.patch: -------------------------------------------------------------------------------- 1 | From 965479797b2b652488b9745cd9590424acb0be93 Mon Sep 17 00:00:00 2001 2 | From: Konstantin Demin 3 | Date: Sun, 10 Sep 2023 21:39:24 +0300 4 | Subject: [PATCH 15/23] iproute2: build quirk 5 | 6 | --- 7 | package/network/utils/iproute2/patches/999-quirk.patch | 10 ++++++++++ 8 | 1 file changed, 10 insertions(+) 9 | create mode 100644 package/network/utils/iproute2/patches/999-quirk.patch 10 | 11 | diff --git a/package/network/utils/iproute2/patches/999-quirk.patch b/package/network/utils/iproute2/patches/999-quirk.patch 12 | new file mode 100644 13 | index 0000000000..2d3a41ef86 14 | --- /dev/null 15 | +++ b/package/network/utils/iproute2/patches/999-quirk.patch 16 | @@ -0,0 +1,10 @@ 17 | +--- a/bridge/mdb.c 18 | ++++ b/bridge/mdb.c 19 | +@@ -21,6 +21,7 @@ 20 | + #include "br_common.h" 21 | + #include "rt_names.h" 22 | + #include "json_print.h" 23 | ++#include 24 | + 25 | + #ifndef MDBA_RTA 26 | + #define MDBA_RTA(r) \ 27 | -- 28 | 2.34.1 29 | 30 | -------------------------------------------------------------------------------- /openwrt-2410/openssl-bump-34/0002-openssl-update-3.4.1.patch: -------------------------------------------------------------------------------- 1 | From 3cb291b114834a70548d665f25e5fe19deebe91f Mon Sep 17 00:00:00 2001 2 | From: lunatickochiya <125438787@qq.com> 3 | Date: Fri, 4 Apr 2025 22:33:21 +0800 4 | Subject: [PATCH 2/2] openssl:update 3.4.1 5 | 6 | --- 7 | package/libs/openssl/Makefile | 4 ++-- 8 | 1 file changed, 2 insertions(+), 2 deletions(-) 9 | 10 | diff --git a/package/libs/openssl/Makefile b/package/libs/openssl/Makefile 11 | index 13ed78fe80..59bc6042fd 100644 12 | --- a/package/libs/openssl/Makefile 13 | +++ b/package/libs/openssl/Makefile 14 | @@ -8,7 +8,7 @@ 15 | include $(TOPDIR)/rules.mk 16 | 17 | PKG_NAME:=openssl 18 | -PKG_VERSION:=3.4.0 19 | +PKG_VERSION:=3.4.1 20 | PKG_RELEASE:=1 21 | PKG_BUILD_FLAGS:=no-mips16 gc-sections no-lto 22 | 23 | @@ -23,7 +23,7 @@ PKG_SOURCE_URL:= \ 24 | http://ftp.fi.muni.cz/pub/openssl/source/ \ 25 | http://ftp.fi.muni.cz/pub/openssl/source/old/$(PKG_BASE)/ 26 | 27 | -PKG_HASH:=e15dda82fe2fe8139dc2ac21a36d4ca01d5313c75f99f46c4e8a27709b7294bf 28 | +PKG_HASH:=002a2d6b30b58bf4bea46c43bdd96365aaf8daa6c428782aa4feee06da197df3 29 | 30 | PKG_LICENSE:=Apache-2.0 31 | PKG_LICENSE_FILES:=LICENSE 32 | -- 33 | 2.34.1 34 | 35 | -------------------------------------------------------------------------------- /openwrt-2410/package-for-2410/kochiya/pcre/Config.in: -------------------------------------------------------------------------------- 1 | config PCRE_JIT_ENABLED 2 | bool 3 | depends on PACKAGE_libpcre && (arm || i386 || i686 || x86_64 || mips || mipsel || powerpc || sparc) 4 | default y if (arm || i686 || x86_64) 5 | prompt "Enable JIT compiler support" 6 | help 7 | Enable JIT (Just-In-Time) compiler support. 8 | 9 | Enabling this option can give an about 10x performance increase on JIT operations. It can be desireable for e.g. high performance Apache mod_rewrite or HA-Proxy reqrep operations. 10 | 11 | However, JIT should _only_ be enabled on architectures that are supported. Enabling JIT on unsupported platforms will result in a compilation failure. A list of supported architectures can be found here: https://pcre.org/original/doc/html/pcrejit.html#SEC3 . 12 | -------------------------------------------------------------------------------- /package-configs/kmod_exclude_list.config: -------------------------------------------------------------------------------- 1 | kmod_compile_exclude_list=kmod-r8125,kmod-qmi_wwan_f,kmod-rtl8189es,kmod-qmi_wwan_q,kmod-r8101,kmod-gobinet,kmod-pcie_mhi,kmod-r8168,kmod-usb-net-rtl8152-vendor,kmod-sprd_pcie,kmod-ipt-wgobfs,kmod-rkp-ipid,kmod-rxrpc,kmod-rtl8188eu,kmod-rtl8812au-ac,kmod-rtl8192eu,kmod-aic8800,kmod-aic8800s,kmod-aic8800u 2 | -------------------------------------------------------------------------------- /package-configs/kmod_exclude_list_istoreos.config: -------------------------------------------------------------------------------- 1 | kmod_compile_exclude_list=kmod-shortcut-fe-cm,kmod-shortcut-fe,kmod-fast-classifier,kmod-fast-classifier-noload,kmod-shortcut-fe-drv,kmod-r8125,kmod-qmi_wwan_f,kmod-rtl8189es,kmod-qmi_wwan_q,kmod-r8101,kmod-gobinet,kmod-pcie_mhi,kmod-r8168,kmod-usb-net-rtl8152-vendor,kmod-sprd_pcie,kmod-ipt-wgobfs,kmod-rkp-ipid,kmod-rxrpc,kmod-pf-ring,kmod-rtl8812au-ct,kmod-aic8800,kmod-rtl8192eu,kmod-rtl8188eu,kmod-aic8800s,kmod-aic8800u 2 | -------------------------------------------------------------------------------- /package-configs/kmod_exclude_list_kernel66.config: -------------------------------------------------------------------------------- 1 | kmod_compile_exclude_list=kmod-shortcut-fe-cm,kmod-shortcut-fe,kmod-fast-classifier,kmod-fast-classifier-noload,kmod-shortcut-fe-drv,kmod-r8125,kmod-qmi_wwan_f,kmod-rtl8189es,kmod-qmi_wwan_q,kmod-r8101,kmod-gobinet,kmod-pcie_mhi,kmod-r8168,kmod-usb-net-rtl8152-vendor,kmod-sprd_pcie,kmod-ipt-wgobfs,kmod-rkp-ipid,kmod-rxrpc,kmod-rtl8188eu,kmod-rtl8812au-ac,kmod-rtl8192eu,kmod-pf-ring,kmod-mdio-netlink,kmod-aic8800,kmod-aic8800s,kmod-aic8800u 2 | -------------------------------------------------------------------------------- /package/kochiya/autoset/files/60-autoset-reload-rpcd: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | /etc/init.d/rpcd restart 4 | 5 | exit 0 6 | -------------------------------------------------------------------------------- /package/kochiya/autoset/files/arm/usage: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | NSS_PATH="/sys/kernel/debug/qca-nss-drv/stats" 4 | 5 | cpu_usage="$(busybox top -n1 | awk '/^CPU/ {printf("%d%", 100 - $8)}')" 6 | 7 | combined_output="" 8 | 9 | connection_count="" 10 | 11 | [ ! -d "$NSS_PATH" ] || \ 12 | npu_usage="$(grep '%' "$NSS_PATH"/cpu_load_ubi | awk -F ' ' '{print $2}')" 13 | 14 | if [ -e "/sys/kernel/debug/qca-nss-drv/stats/cpu_load_ubi" ]; then 15 | nss_avg_utilization=$(awk 'NR==6 {print $2}' /sys/kernel/debug/qca-nss-drv/stats/cpu_load_ubi) 16 | combined_output="${combined_output}${nss_avg_utilization}" 17 | fi 18 | 19 | if [ -r "/sys/kernel/debug/ecm/ecm_db/connection_count_simple" ]; then 20 | connection_count=$(cat /sys/kernel/debug/ecm/ecm_db/connection_count_simple) 21 | fi 22 | 23 | 24 | if [ -n "$combined_output" ] && [ -n "$connection_count" ]; then 25 | echo -n "CPU: ${cpu_usage}% NPU: ${combined_output} ECM: ${connection_count} " 26 | elif [ -n "$combined_output" ]; then 27 | echo -n "CPU: ${cpu_usage}% NPU: ${combined_output} " 28 | elif [ -n "$connection_count" ]; then 29 | echo -n "CPU: ${cpu_usage}% ECM: ${connection_count} " 30 | else 31 | echo -n "CPU: ${cpu_usage}%" 32 | fi 33 | -------------------------------------------------------------------------------- /package/kochiya/autoset/files/def_uci/zzz-autoset-ar71xx: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | uci -q batch <<-EOF >/dev/null 4 | set luci.main.lang=zh_cn 5 | set system.@system[0].hostname=Lunatic_Atheros 6 | set system.@system[0].timezone=CST-8 7 | set system.@system[0].zonename=Asia/Shanghai 8 | set fstab.@global[0].anon_mount=1 9 | set dropbear.@dropbear[0].Interface='lan' 10 | set network.lan.ipaddr=192.168.10.1 11 | add_list umdns.@umdns[0].network='wan' 12 | add_list system.ntp.server='ntp.tencent.com' 13 | add_list system.ntp.server='ntp1.aliyun.com' 14 | del_list uhttpd.main.listen_https='0.0.0.0:443' 15 | del_list uhttpd.main.listen_https='[::]:443' 16 | commit 17 | EOF 18 | 19 | sed -i '/DISTRIB_DESCRIPTION/d' /etc/openwrt_release 20 | 21 | sed -i '202,207d' /www/luci-static/material/js/script.js 22 | 23 | 24 | /etc/init.d/advancedplus stop 25 | /etc/init.d/advancedplus disable 26 | /etc/init.d/qos_gargoyle disable 27 | /etc/init.d/umdns stop 28 | /etc/init.d/umdns disable 29 | /etc/init.d/dawn stop 30 | /etc/init.d/dawn disable 31 | /etc/init.d/https-dns-proxy stop 32 | /etc/init.d/https-dns-proxy disable 33 | 34 | 35 | 36 | 37 | 38 | exit 0 39 | 40 | 41 | 42 | 43 | 44 | -------------------------------------------------------------------------------- /package/kochiya/autoset/files/def_uci/zzz-autoset-ath79: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | uci -q batch <<-EOF >/dev/null 3 | set luci.main.lang=zh_cn 4 | set system.@system[0].hostname=Lunatic_Ath79 5 | set system.@system[0].timezone=CST-8 6 | set system.@system[0].zonename=Asia/Shanghai 7 | set fstab.@global[0].anon_mount=1 8 | set dropbear.@dropbear[0].Interface='lan' 9 | set network.lan.ipaddr=192.168.10.1 10 | add_list umdns.@umdns[0].network='wan' 11 | add_list system.ntp.server='ntp.tencent.com' 12 | add_list system.ntp.server='ntp1.aliyun.com' 13 | del_list uhttpd.main.listen_https='0.0.0.0:443' 14 | del_list uhttpd.main.listen_https='[::]:443' 15 | commit 16 | EOF 17 | 18 | sed -i '/DISTRIB_DESCRIPTION/d' /etc/openwrt_release 19 | sed -i '202,207d' /www/luci-static/material/js/script.js 20 | 21 | /etc/init.d/advancedplus stop 22 | /etc/init.d/advancedplus disable 23 | /etc/init.d/qos_gargoyle disable 24 | /etc/init.d/umdns stop 25 | /etc/init.d/umdns disable 26 | /etc/init.d/dawn stop 27 | /etc/init.d/dawn disable 28 | /etc/init.d/https-dns-proxy stop 29 | /etc/init.d/https-dns-proxy disable 30 | 31 | 32 | 33 | 34 | 35 | 36 | exit 0 37 | 38 | 39 | 40 | 41 | 42 | -------------------------------------------------------------------------------- /package/kochiya/autoset/files/def_uci/zzz-autoset-mediatek: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | uci -q batch <<-EOF >/dev/null 4 | set luci.main.lang=zh_cn 5 | set system.@system[0].hostname=Mediatek_AP 6 | set system.@system[0].timezone=CST-8 7 | set system.@system[0].zonename=Asia/Shanghai 8 | set fstab.@global[0].anon_mount=1 9 | set dropbear.@dropbear[0].Interface='lan' 10 | set network.lan.ipaddr=192.168.10.1 11 | add_list umdns.@umdns[0].network='wan' 12 | add_list system.ntp.server='ntp.tencent.com' 13 | add_list system.ntp.server='ntp1.aliyun.com' 14 | del_list uhttpd.main.listen_https='0.0.0.0:443' 15 | del_list uhttpd.main.listen_https='[::]:443' 16 | set luci.main.mediaurlbase='/luci-static/argon' 17 | commit 18 | EOF 19 | 20 | sed -i '/DISTRIB_DESCRIPTION/d' /etc/openwrt_release 21 | 22 | 23 | /etc/init.d/advancedplus stop 24 | /etc/init.d/advancedplus disable 25 | /etc/init.d/qos_gargoyle disable 26 | /etc/init.d/umdns stop 27 | /etc/init.d/umdns disable 28 | /etc/init.d/dawn stop 29 | /etc/init.d/dawn disable 30 | /etc/init.d/https-dns-proxy stop 31 | /etc/init.d/https-dns-proxy disable 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | exit 0 42 | 43 | -------------------------------------------------------------------------------- /package/kochiya/autoset/files/def_uci/zzz-autoset-ramips: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | uci -q batch <<-EOF >/dev/null 4 | set luci.main.lang=zh_cn 5 | set system.@system[0].hostname=Lunatic_Ramips 6 | set system.@system[0].timezone=CST-8 7 | set system.@system[0].zonename=Asia/Shanghai 8 | set fstab.@global[0].anon_mount=1 9 | set dropbear.@dropbear[0].Interface='lan' 10 | set network.lan.ipaddr=192.168.10.1 11 | add_list umdns.@umdns[0].network='wan' 12 | add_list system.ntp.server='ntp.tencent.com' 13 | add_list system.ntp.server='ntp1.aliyun.com' 14 | del_list uhttpd.main.listen_https='0.0.0.0:443' 15 | del_list uhttpd.main.listen_https='[::]:443' 16 | set luci.main.mediaurlbase='/luci-static/argon' 17 | commit 18 | EOF 19 | 20 | sed -i '/DISTRIB_DESCRIPTION/d' /etc/openwrt_release 21 | 22 | sed -i '202,207d' /www/luci-static/material/js/script.js 23 | 24 | /etc/init.d/advancedplus stop 25 | /etc/init.d/advancedplus disable 26 | /etc/init.d/qos_gargoyle disable 27 | /etc/init.d/umdns stop 28 | /etc/init.d/umdns disable 29 | /etc/init.d/dawn stop 30 | /etc/init.d/dawn disable 31 | /etc/init.d/https-dns-proxy stop 32 | /etc/init.d/https-dns-proxy disable 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | exit 0 46 | 47 | -------------------------------------------------------------------------------- /package/kochiya/autoset/files/generic/60-autocore-reload-rpcd: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | /etc/init.d/rpcd restart 4 | 5 | exit 0 6 | -------------------------------------------------------------------------------- /package/kochiya/autoset/files/generic/luci-mod-status-autocore.json: -------------------------------------------------------------------------------- 1 | { 2 | "luci-mod-status-autocore": { 3 | "description": "Grant access to autocore", 4 | "read": { 5 | "ubus": { 6 | "luci": [ "getCPUInfo", "getETHInfo", "getTempInfo" ] 7 | } 8 | } 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /package/kochiya/autoset/files/luci-mod-status-autoset.json: -------------------------------------------------------------------------------- 1 | { 2 | "luci-mod-status-autoset": { 3 | "description": "Grant access to autoset", 4 | "read": { 5 | "ubus": { 6 | "luci": [ "getCPUInfo", "getTempInfo" ] 7 | } 8 | } 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /package/kochiya/brlaser/files/brlaser-set-cups-filter-permission: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | [ -d /usr/lib/cups/filter ] && chmod 0754 /usr/lib/cups/filter/* 4 | -------------------------------------------------------------------------------- /package/kochiya/convert_translation.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | for e in $(ls -d luci-*/po); do 4 | if [[ -d $e/zh-cn && ! -d $e/zh_Hans ]]; then 5 | ln -s zh-cn $e/zh_Hans 2>/dev/null 6 | elif [[ -d $e/zh_Hans && ! -d $e/zh-cn ]]; then 7 | ln -s zh_Hans $e/zh-cn 2>/dev/null 8 | fi 9 | done 10 | -------------------------------------------------------------------------------- /package/kochiya/coremark/coremark: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | sed -i '/coremark/d' /etc/crontabs/root 4 | echo "0 4 * * * /etc/coremark.sh" >> /etc/crontabs/root 5 | crontab /etc/crontabs/root 6 | 7 | touch /etc/bench.log 8 | -------------------------------------------------------------------------------- /package/kochiya/coremark/coremark.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | /bin/coremark > /tmp/coremark.log 4 | 5 | cat /tmp/coremark.log | grep "CoreMark 1.0" | cut -d "/" -f 1 > /etc/bench.log 6 | sed -i 's/CoreMark 1.0/(CpuMark/g' /etc/bench.log 7 | echo " Scores)" >> /etc/bench.log 8 | 9 | if [ -f "/etc/bench.log" ]; then 10 | sed -i '/coremark/d' /etc/crontabs/root 11 | crontab /etc/crontabs/root 12 | fi -------------------------------------------------------------------------------- /package/kochiya/luci-app-banmac-ipt/Makefile: -------------------------------------------------------------------------------- 1 | include $(TOPDIR)/rules.mk 2 | 3 | PKG_NAME:=luci-app-banmac-ipt 4 | PKG_VERSION:=20211118 5 | 6 | 7 | include $(INCLUDE_DIR)/package.mk 8 | 9 | define Package/luci-app-banmac-ipt 10 | SECTION:=luci 11 | CATEGORY:=LuCI 12 | SUBMENU:=3. Applications 13 | TITLE:=LuCI Support for Ban Client 14 | PKGARCH:=all 15 | endef 16 | 17 | define Build/Compile 18 | endef 19 | 20 | define Package/luci-app-banmac-ipt/install 21 | $(INSTALL_DIR) $(1)/usr/lib/lua/luci 22 | cp -pR ./luasrc/* $(1)/usr/lib/lua/luci 23 | $(INSTALL_DIR) $(1)/usr/banmac 24 | $(INSTALL_BIN) ./files/banmac/* $(1)/usr/banmac 25 | $(INSTALL_DIR) $(1)/etc 26 | $(INSTALL_CONF) ./files/banmaclog $(1)/etc/banmaclog 27 | $(INSTALL_DIR) $(1)/etc/config 28 | $(INSTALL_CONF) ./files/banmac.conf $(1)/etc/config/banmac 29 | endef 30 | 31 | $(eval $(call BuildPackage,luci-app-banmac-ipt)) 32 | -------------------------------------------------------------------------------- /package/kochiya/luci-app-banmac-ipt/files/banmac.conf: -------------------------------------------------------------------------------- 1 | 2 | config banlist 3 | 4 | config banmac 'smartphone' 5 | 6 | -------------------------------------------------------------------------------- /package/kochiya/luci-app-banmac-ipt/files/banmac/ban.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | sectionname=$(echo $0 | cut -d '_' -f 2 | sed 's/^OO!%!OO//') 4 | getcmac=$(uci get banmac.$sectionname.banlist_mac | tr 'A-Z' 'a-z') 5 | iptables -I FORWARD -m mac --mac-source $getcmac -j DROP 6 | hostname=$(grep -n $getcmac /tmp/dhcp.leases | cut -d ' ' -f 4) 7 | hostip=$(grep -n $getcmac /tmp/dhcp.leases | cut -d ' ' -f 3) 8 | echo "★禁网设备:$hostname($hostip) MAC地址:$getcmac 操作日期:$(date +%Y年%m月%d日\ %H点%M分%S秒)" >> /etc/banmaclog 9 | 10 | for i in $(seq 0 1) 11 | do 12 | for x in $(iw wlan${i} station dump | grep -i station | cut -d ' ' -f 2) 13 | do 14 | if [ $x = $getcmac ]; then 15 | iw dev wlan${i} station del $x 16 | fi 17 | done 18 | done 19 | -------------------------------------------------------------------------------- /package/kochiya/luci-app-banmac-ipt/files/banmac/unban.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | sectionname=$(echo $0 | cut -d '_' -f 2 | sed 's/^OO!%!OO//') 4 | getcmac=$(uci get banmac.$sectionname.banlist_mac | tr 'A-Z' 'a-z') 5 | iptables -D FORWARD -m mac --mac-source $getcmac -j DROP 6 | 7 | sed -i "s/$(cat /etc/banmaclog | grep $getcmac | head -n 1)//;/^\s*$/d" /etc/banmaclog 8 | -------------------------------------------------------------------------------- /package/kochiya/luci-app-banmac-ipt/files/banmaclog: -------------------------------------------------------------------------------- 1 | #点击 One-Click Ban 快速禁止指定客户端。点击 One-Click UnBan 快速解禁。 2 | #这里记录了客户端列表 3 | ---------------------------------------------------------------------- 4 | -------------------------------------------------------------------------------- /package/kochiya/luci-app-banmac-ipt/luasrc/controller/banmac.lua: -------------------------------------------------------------------------------- 1 | module("luci.controller.banmac",package.seeall) 2 | 3 | function index() 4 | local page = entry({"admin", "services", "banmac"}, cbi("banmac"), _("BanMac"),5) 5 | page.dependent = true 6 | end 7 | 8 | -------------------------------------------------------------------------------- /package/kochiya/luci-app-banmac-nft/Makefile: -------------------------------------------------------------------------------- 1 | include $(TOPDIR)/rules.mk 2 | 3 | PKG_NAME:=luci-app-banmac-nft 4 | PKG_VERSION:=20231012 5 | 6 | 7 | include $(INCLUDE_DIR)/package.mk 8 | 9 | define Package/luci-app-banmac-nft 10 | SECTION:=luci 11 | CATEGORY:=LuCI 12 | SUBMENU:=3. Applications 13 | TITLE:=LuCI Support for Ban Client 14 | PKGARCH:=all 15 | endef 16 | 17 | define Build/Compile 18 | endef 19 | 20 | define Package/luci-app-banmac-nft/install 21 | $(INSTALL_DIR) $(1)/usr/lib/lua/luci 22 | cp -pR ./luasrc/* $(1)/usr/lib/lua/luci 23 | $(INSTALL_DIR) $(1)/usr/banmac 24 | $(INSTALL_BIN) ./files/banmac/* $(1)/usr/banmac 25 | $(INSTALL_DIR) $(1)/etc 26 | $(INSTALL_CONF) ./files/banmaclog $(1)/etc/banmaclog 27 | $(INSTALL_DIR) $(1)/etc/config 28 | $(INSTALL_CONF) ./files/banmac.conf $(1)/etc/config/banmac 29 | endef 30 | 31 | $(eval $(call BuildPackage,luci-app-banmac-nft)) 32 | -------------------------------------------------------------------------------- /package/kochiya/luci-app-banmac-nft/files/banmac.conf: -------------------------------------------------------------------------------- 1 | 2 | config banlist 3 | 4 | config banmac 'smartphone' 5 | 6 | -------------------------------------------------------------------------------- /package/kochiya/luci-app-banmac-nft/files/banmac/ban.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | sectionname=$(echo $0 | cut -d '_' -f 2 | sed 's/^OO!%!OO//') 4 | getcmac=$(uci get banmac.$sectionname.banlist_mac | tr 'A-Z' 'a-z') 5 | iptables -I FORWARD -m mac --mac-source $getcmac -j DROP 6 | hostname=$(grep -n $getcmac /tmp/dhcp.leases | cut -d ' ' -f 4) 7 | hostip=$(grep -n $getcmac /tmp/dhcp.leases | cut -d ' ' -f 3) 8 | echo "★禁网设备:$hostname($hostip) MAC地址:$getcmac 操作日期:$(date +%Y年%m月%d日\ %H点%M分%S秒)" >> /etc/banmaclog 9 | 10 | for i in $(seq 0 1);do 11 | for j in $(seq 0 1);do 12 | for x in $(iw dev phy${i}-ap${j} station dump | grep -i station | awk '{print$2}');do 13 | if [ $x = $getcmac ]; then 14 | iw dev phy${i}-ap${j} station del $x 15 | fi 16 | done 17 | done 18 | done 19 | -------------------------------------------------------------------------------- /package/kochiya/luci-app-banmac-nft/files/banmac/unban.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | sectionname=$(echo $0 | cut -d '_' -f 2 | sed 's/^OO!%!OO//') 4 | getcmac=$(uci get banmac.$sectionname.banlist_mac | tr 'A-Z' 'a-z') 5 | iptables -D FORWARD -m mac --mac-source $getcmac -j DROP 6 | 7 | sed -i "s/$(cat /etc/banmaclog | grep $getcmac | head -n 1)//;/^\s*$/d" /etc/banmaclog 8 | -------------------------------------------------------------------------------- /package/kochiya/luci-app-banmac-nft/files/banmaclog: -------------------------------------------------------------------------------- 1 | #点击 One-Click Ban 快速禁止指定客户端。点击 One-Click UnBan 快速解禁。 2 | #这里记录了客户端列表 3 | ---------------------------------------------------------------------- 4 | -------------------------------------------------------------------------------- /package/kochiya/luci-app-banmac-nft/luasrc/controller/banmac.lua: -------------------------------------------------------------------------------- 1 | module("luci.controller.banmac",package.seeall) 2 | 3 | function index() 4 | local page = entry({"admin", "services", "banmac"}, cbi("banmac"), _("BanMac"),5) 5 | page.dependent = true 6 | end 7 | 8 | -------------------------------------------------------------------------------- /package/kochiya/luci-app-modechange/files/modechange: -------------------------------------------------------------------------------- 1 | config router 2 | config ap 3 | config siderouter_lan 4 | config networkrestart 5 | -------------------------------------------------------------------------------- /package/kochiya/luci-app-modechange/files/usr/lib/lua/luci/controller/modechange.lua: -------------------------------------------------------------------------------- 1 | -- Copyright (C) 2021 LunaticKochiya <125438787@qq.com> 2 | -- Licensed to the public under the GNU General Public License v3. 3 | module("luci.controller.modechange", package.seeall) 4 | 5 | function index() 6 | local page 7 | page = entry({"admin", "services", "modechange"}, cbi("modechange"), _("网口模式切换"), 100) 8 | page.i18n = "modechange" 9 | page.dependent = true 10 | end -------------------------------------------------------------------------------- /package/kochiya/luci-app-nvr/Makefile: -------------------------------------------------------------------------------- 1 | include $(TOPDIR)/rules.mk 2 | 3 | PKG_NAME:=luci-app-nvr 4 | PKG_VERSION:=20230818 5 | 6 | include $(INCLUDE_DIR)/package.mk 7 | 8 | define Package/luci-app-nvr 9 | SECTION:=luci 10 | CATEGORY:=LuCI 11 | SUBMENU:=3. Applications 12 | TITLE:=LuCI Support for Network Video Recorder 13 | PKGARCH:=all 14 | DEPENDS:=+ffmpeg 15 | endef 16 | 17 | define Build/Prepare 18 | $(foreach po,$(wildcard ${CURDIR}/luasrc/i18n/*.po), \ 19 | po2lmo $(po) $(PKG_BUILD_DIR)/$(patsubst %.po,%.lmo,$(notdir $(po)));) 20 | endef 21 | 22 | define Build/Compile 23 | endef 24 | 25 | define Package/luci-app-nvr/install 26 | $(INSTALL_DIR) $(1)/usr/lib/lua/luci 27 | cp -pR ./luasrc/* $(1)/usr/lib/lua/luci 28 | $(INSTALL_DIR) $(1)/usr/nvr 29 | $(INSTALL_BIN) ./files/nvr/* $(1)/usr/nvr 30 | $(INSTALL_DIR) $(1)/etc/config 31 | $(INSTALL_CONF) ./files/nvr.conf $(1)/etc/config/nvr 32 | $(INSTALL_DIR) $(1)/etc/init.d 33 | $(INSTALL_BIN) ./files/nvr.init $(1)/etc/init.d/nvr 34 | endef 35 | 36 | $(eval $(call BuildPackage,luci-app-nvr)) 37 | -------------------------------------------------------------------------------- /package/kochiya/luci-app-nvr/files/nvr.conf: -------------------------------------------------------------------------------- 1 | 2 | config nvr 'config' 3 | option loop_write '1' 4 | option fulldisk '1' 5 | option storage_directory '/mnt/sda1/camera' 6 | option disk_name 'sda1' 7 | option disk_usage '85%' 8 | option rec_time '600' 9 | option storage_size '1000' 10 | option enable_audio '1' 11 | option enabled '0' 12 | option nvr_sourcelist 'hikvision' 13 | option hik_list 'none' 14 | option total_days '30' 15 | 16 | -------------------------------------------------------------------------------- /package/kochiya/luci-app-nvr/files/nvr.init: -------------------------------------------------------------------------------- 1 | #!/bin/sh /etc/rc.common 2 | 3 | START=99 4 | USE_PROCD=1 5 | 6 | PROG="/usr/nvr/nvrrecord" 7 | 8 | init_conf() { 9 | config_load "nvr" 10 | config_get "enabled" "config" "enabled" 11 | } 12 | 13 | 14 | start_service() { 15 | init_conf 16 | [ "${enabled}" == "1" ] || exit 0 17 | 18 | procd_open_instance nvr 19 | procd_set_param command $PROG 20 | procd_set_param respawn 21 | procd_close_instance 22 | } 23 | 24 | service_triggers() { 25 | procd_add_reload_trigger "nvr" 26 | } 27 | 28 | reload_service() { 29 | stop 30 | start 31 | } 32 | 33 | stop_service() { 34 | init_conf 35 | service_stop $PROG 36 | } 37 | -------------------------------------------------------------------------------- /package/kochiya/luci-app-nvr/files/nvr/nvrpush: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | . /usr/nvr/nvrcommon 3 | 4 | _app_prefix="$(uci get nvr.config.rtmp_server_app)" 5 | 6 | for a in $_all_clients;do 7 | if [ "$_source" = "hikvision" ];then 8 | ffmpeg -i "rtsp://${_hik_user}:${_hik_pass}@${a}:554/h264/ch1/main/av_stream" -c copy -f flv "${_app_prefix}/${a}" & 9 | elif [ "$_source" = "tplink" ];then 10 | ffmpeg -i "rtsp://${_tplink_user}:${_tplink_pass}@${a}:554/stream1" -c copy -f flv "${_app_prefix}/${a}" & 11 | elif [ "$_source" = "rtmp-url" ];then 12 | ffmpeg -i $a -c copy -f flv "${_app_prefix}/${a}" & 13 | elif [ "$_source" = "multiple-types" ];then 14 | ffmpeg -i $a -c copy -f flv "${_app_prefix}/${a}" & 15 | fi 16 | done 17 | -------------------------------------------------------------------------------- /package/kochiya/luci-app-nvr/files/nvr/nvrstart: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | if [ "$(uci get nvr.config.enabled)" -eq 1 ];then 4 | /etc/init.d/nvr enable 2>&1 & 5 | /etc/init.d/nvr start 2>&1 & 6 | else 7 | /usr/nvr/nvrrecord 2>&1 & 8 | fi 9 | 10 | 11 | -------------------------------------------------------------------------------- /package/kochiya/luci-app-nvr/files/nvr/nvrstop: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | . /usr/nvr/nvrcommon 3 | 4 | /etc/init.d/nvr stop 5 | kill -9 $(busybox ps | grep nvrrecord | grep -v grep | awk '{print$1}') 2>&1 & 6 | 7 | for i in $_all_clients;do 8 | kill -9 $(ps -w | grep $i | grep -v grep | grep -v "\-f flv" | awk '{print$1}') 2>&1 & 9 | done 10 | -------------------------------------------------------------------------------- /package/kochiya/luci-app-nvr/luasrc/controller/nvr.lua: -------------------------------------------------------------------------------- 1 | module("luci.controller.nvr",package.seeall) 2 | 3 | function index() 4 | if not nixio.fs.access("/etc/config/nvr") then 5 | return 6 | end 7 | 8 | local page = entry({"admin", "services", "nvr"}, cbi("nvr"), _("NVR"),20) 9 | page.dependent = true 10 | entry({"admin", "services", "nvr", "status"}, call("nvr_status")).leaf = true 11 | end 12 | 13 | function nvr_status() 14 | local nvrrecord = luci.sys.exec("ps -w | grep nvrrecord | grep -v grep | awk '{print$1}' 2>/dev/null ") 15 | local pushpid = luci.sys.exec("ps -w | grep 'f flv rtmp' | grep -v grep | awk '{print$1}' 2>/dev/null ") 16 | 17 | local e = { 18 | nvrrecord = nvrrecord, 19 | pushpid = pushpid 20 | } 21 | 22 | luci.http.prepare_content("application/json") 23 | luci.http.write_json(e) 24 | end 25 | -------------------------------------------------------------------------------- /package/kochiya/luci-app-nvr/luasrc/i18n/nvr.zh-cn.lmo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lunatickochiya/Matrix-Action-Openwrt/03a181a84e12a8024a08d82cd0433164c2eae5d0/package/kochiya/luci-app-nvr/luasrc/i18n/nvr.zh-cn.lmo -------------------------------------------------------------------------------- /package/kochiya/luci-app-nvr/luasrc/view/nvr_status.htm: -------------------------------------------------------------------------------- 1 | 21 | 22 |
23 |

24 | <%:Collecting data...%> 25 |

26 |
27 | -------------------------------------------------------------------------------- /package/kochiya/luci-app-openvpn-server-client/Makefile: -------------------------------------------------------------------------------- 1 | # Copyright (C) 2016 Openwrt.org 2 | # 3 | # This is free software, licensed under the Apache License, Version 2.0 . 4 | # 5 | 6 | include $(TOPDIR)/rules.mk 7 | 8 | LUCI_TITLE:=LuCI support for OpenVPN Server 9 | LUCI_DEPENDS:=+openvpn-openssl +openvpn-easy-rsa 10 | LUCI_PKGARCH:=all 11 | PKG_NAME:=luci-app-openvpn-server-client 12 | PKG_VERSION:=6.0 13 | PKG_RELEASE:=1 14 | MAINTAINER:=lunatickochiya <125438787@qq.com> 15 | 16 | include $(TOPDIR)/feeds/luci/luci.mk 17 | 18 | # call BuildPackage - OpenWrt buildroot signature 19 | 20 | 21 | 22 | 23 | -------------------------------------------------------------------------------- /package/kochiya/luci-app-openvpn-server-client/luasrc/view/openvpn/openvpn_status.htm: -------------------------------------------------------------------------------- 1 | 17 | 18 |
19 |

20 | <%:Collecting data...%> 21 |

22 |
-------------------------------------------------------------------------------- /package/kochiya/luci-app-openvpn-server-client/po/zh_Hans: -------------------------------------------------------------------------------- 1 | zh-cn -------------------------------------------------------------------------------- /package/kochiya/luci-app-openvpn-server-client/root/etc/easy-rsa/keys/index.txt: -------------------------------------------------------------------------------- 1 | V 270821142642Z 01 unknown /C=CN/ST=ZJ/L=ZJ/O=ZJ/OU=ZJ/CN=server/name=EasyRSA/emailAddress=ZJ@ZJ.com 2 | V 270821142658Z 02 unknown /C=CN/ST=ZJ/L=ZJ/O=ZJ/OU=ZJ/CN=client1/name=EasyRSA/emailAddress=ZJ@ZJ.com 3 | -------------------------------------------------------------------------------- /package/kochiya/luci-app-openvpn-server-client/root/etc/easy-rsa/keys/serial: -------------------------------------------------------------------------------- 1 | 03 2 | -------------------------------------------------------------------------------- /package/kochiya/luci-app-openvpn-server-client/root/etc/easy-rsa/vars: -------------------------------------------------------------------------------- 1 | set_var EASYRSA_OPENSSL "openssl" 2 | set_var EASYRSA_KEY_SIZE 2048 3 | set_var EASYRSA_REQ_COUNTRY "lunatickochiya" 4 | set_var EASYRSA_REQ_PROVINCE "github" 5 | set_var EASYRSA_REQ_CITY "github" 6 | set_var EASYRSA_REQ_ORG "github" 7 | set_var EASYRSA_REQ_EMAIL "lunatickochiya@github.com" 8 | set_var EASYRSA_REQ_OU "github" 9 | set_var EASYRSA_CA_EXPIRE 3650 10 | set_var EASYRSA_CERT_EXPIRE 3650 11 | -------------------------------------------------------------------------------- /package/kochiya/luci-app-openvpn-server-client/root/etc/genovpn.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | ddns=`uci get openvpn.myvpn.ddns` 4 | port=`uci get openvpn.myvpn.port` 5 | proto=`uci get openvpn.myvpn.proto` 6 | 7 | cat > /tmp/my.ovpn <' >> /tmp/my.ovpn 19 | cat /etc/openvpn/pki/ca.crt >> /tmp/my.ovpn 20 | echo '' >> /tmp/my.ovpn 21 | echo '' >> /tmp/my.ovpn 22 | cat /etc/openvpn/pki/client1.crt >> /tmp/my.ovpn 23 | echo '' >> /tmp/my.ovpn 24 | echo '' >> /tmp/my.ovpn 25 | cat /etc/openvpn/pki/client1.key >> /tmp/my.ovpn 26 | echo '' >> /tmp/my.ovpn 27 | [ -f /etc/ovpnadd.conf ] && cat /etc/ovpnadd.conf >> /tmp/my.ovpn 28 | -------------------------------------------------------------------------------- /package/kochiya/luci-app-openvpn-server-client/root/etc/openvpn/client/delclient.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | /etc/init.d/openvpn stop 3 | sleep 3 4 | rm /etc/openvpn/client.conf 5 | rm /etc/openvpn/pass.txt -------------------------------------------------------------------------------- /package/kochiya/luci-app-openvpn-server-client/root/etc/openvpn/client/startclient.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | /etc/init.d/openvpn enable 3 | sleep 3 4 | /etc/init.d/openvpn restart 5 | -------------------------------------------------------------------------------- /package/kochiya/luci-app-openvpn-server-client/root/etc/openvpn/client/stopclient.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | sleep 2 4 | /etc/init.d/openvpn stop 5 | sleep 2 6 | /etc/init.d/openvpn disable 7 | -------------------------------------------------------------------------------- /package/kochiya/luci-app-openvpn-server-client/root/etc/openvpn/server/psw-file: -------------------------------------------------------------------------------- 1 | lunatic urey -------------------------------------------------------------------------------- /package/kochiya/luci-app-openvpn-server-client/root/etc/ovpnadd.conf: -------------------------------------------------------------------------------- 1 | auth-user-pass -------------------------------------------------------------------------------- /package/kochiya/luci-app-openvpn-server-client/root/usr/share/ucitrack/luci-app-openvpn-server-client.json: -------------------------------------------------------------------------------- 1 | { 2 | "config": "openvpn", 3 | "init": "" 4 | } 5 | -------------------------------------------------------------------------------- /package/kochiya/luci-app-openvpn-server/Makefile: -------------------------------------------------------------------------------- 1 | # Copyright (C) 2016 Openwrt.org 2 | # 3 | # This is free software, licensed under the Apache License, Version 2.0 . 4 | # 5 | 6 | include $(TOPDIR)/rules.mk 7 | 8 | LUCI_TITLE:=LuCI support for OpenVPN Server 9 | LUCI_DEPENDS:=+openvpn-openssl +openvpn-easy-rsa 10 | LUCI_PKGARCH:=all 11 | PKG_NAME:=luci-app-openvpn-server 12 | PKG_VERSION:=2.0 13 | PKG_RELEASE:=1 14 | 15 | include $(TOPDIR)/feeds/luci/luci.mk 16 | 17 | # call BuildPackage - OpenWrt buildroot signature 18 | 19 | 20 | 21 | 22 | -------------------------------------------------------------------------------- /package/kochiya/luci-app-openvpn-server/luasrc/controller/openvpn-server.lua: -------------------------------------------------------------------------------- 1 | 2 | module("luci.controller.openvpn-server", package.seeall) 3 | 4 | function index() 5 | if not nixio.fs.access("/etc/config/openvpn") then 6 | return 7 | end 8 | 9 | entry({"admin", "services", "openvpn-server"},firstchild(), _("OpenVPN Server"), 1).dependent = true 10 | 11 | entry({"admin", "services", "openvpn-server", "general"}, cbi("openvpn-server/openvpn-server"), _("OpenVPN Server"), 1).leaf = true 12 | entry({"admin", "services", "openvpn-server", "log"},form("openvpn-server/openvpn-server_run_log"), _("Running log"), 2).leaf = true 13 | entry({"admin", "services", "openvpn-server", "passlog"},form("openvpn-server/openvpn-server_pass_log"), _("Login log"), 3).leaf = true 14 | 15 | entry({"admin", "services", "openvpn-server","status"},call("act_status")).leaf=true 16 | end 17 | 18 | function act_status() 19 | local e={} 20 | e.running=luci.sys.call("pgrep openvpn >/dev/null")==0 21 | luci.http.prepare_content("application/json") 22 | luci.http.write_json(e) 23 | end 24 | -------------------------------------------------------------------------------- /package/kochiya/luci-app-openvpn-server/luasrc/model/cbi/openvpn-server/openvpn-server_pass_log.lua: -------------------------------------------------------------------------------- 1 | local fs = require "nixio.fs" 2 | local conffile = "/etc/openvpn/openvpn-password.log" 3 | 4 | f = SimpleForm("logview") 5 | 6 | t = f:field(TextValue, "conf") 7 | t.rmempty = true 8 | t.rows = 20 9 | function t.cfgvalue() 10 | return fs.readfile(conffile) or "" 11 | end 12 | t.readonly="readonly" 13 | 14 | return f -------------------------------------------------------------------------------- /package/kochiya/luci-app-openvpn-server/luasrc/model/cbi/openvpn-server/openvpn-server_run_log.lua: -------------------------------------------------------------------------------- 1 | local fs = require "nixio.fs" 2 | local conffile = "/var/openvpn.log" 3 | 4 | f = SimpleForm("logview") 5 | 6 | t = f:field(TextValue, "conf") 7 | t.rmempty = true 8 | t.rows = 20 9 | function t.cfgvalue() 10 | return fs.readfile(conffile) or "" 11 | end 12 | t.readonly="readonly" 13 | 14 | return f -------------------------------------------------------------------------------- /package/kochiya/luci-app-openvpn-server/luasrc/view/openvpn/openvpn_status.htm: -------------------------------------------------------------------------------- 1 | 17 | 18 |
19 |

20 | <%:Collecting data...%> 21 |

22 |
-------------------------------------------------------------------------------- /package/kochiya/luci-app-openvpn-server/po/zh_Hans: -------------------------------------------------------------------------------- 1 | zh-cn -------------------------------------------------------------------------------- /package/kochiya/luci-app-openvpn-server/root/etc/config/openvpn: -------------------------------------------------------------------------------- 1 | 2 | config openvpn 'myvpn' 3 | option enabled '0' 4 | option proto 'tcp4' 5 | option dev 'tun' 6 | option topology 'subnet' 7 | option server '10.8.0.0 255.255.255.0' 8 | option comp_lzo 'adaptive' 9 | option ca '/etc/openvpn/pki/ca.crt' 10 | option dh '/etc/openvpn/pki/dh.pem' 11 | option cert '/etc/openvpn/pki/server.crt' 12 | option key '/etc/openvpn/pki/server.key' 13 | option persist_key '1' 14 | option persist_tun '1' 15 | option max_clients '88' 16 | option keepalive '10 120' 17 | option verb '3' 18 | option status '/var/log/openvpn_status.log' 19 | option log '/tmp/openvpn.log' 20 | option port '1194' 21 | option ddns 'myserver.f3322.net' 22 | option auth_user_pass_verify '/etc/openvpn/server/checkpsw.sh via-env' 23 | option script_security '3' 24 | list push 'route 192.168.9.0 255.255.255.0' 25 | list push 'comp-lzo adaptive' 26 | list push 'redirect-gateway def1 bypass-dhcp' 27 | list push 'dhcp-option DNS 192.168.9.1' 28 | 29 | config openvpnclient 30 | 31 | config openvpnclientstart 32 | 33 | config openvpnclientconf 34 | 35 | config openvpnclientstop 36 | -------------------------------------------------------------------------------- /package/kochiya/luci-app-openvpn-server/root/etc/easy-rsa/vars: -------------------------------------------------------------------------------- 1 | set_var EASYRSA_OPENSSL "openssl" 2 | set_var EASYRSA_KEY_SIZE 2048 3 | set_var EASYRSA_REQ_COUNTRY "lunatickochiya" 4 | set_var EASYRSA_REQ_PROVINCE "github" 5 | set_var EASYRSA_REQ_CITY "github" 6 | set_var EASYRSA_REQ_ORG "github" 7 | set_var EASYRSA_REQ_EMAIL "lunatickochiya@github.com" 8 | set_var EASYRSA_REQ_OU "github" 9 | set_var EASYRSA_CA_EXPIRE 3650 10 | set_var EASYRSA_CERT_EXPIRE 3650 11 | -------------------------------------------------------------------------------- /package/kochiya/luci-app-openvpn-server/root/etc/genovpn.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | ddns=`uci get openvpn.myvpn.ddns` 4 | port=`uci get openvpn.myvpn.port` 5 | proto=`uci get openvpn.myvpn.proto` 6 | 7 | cat > /tmp/my.ovpn <' >> /tmp/my.ovpn 19 | cat /etc/openvpn/pki/ca.crt >> /tmp/my.ovpn 20 | echo '' >> /tmp/my.ovpn 21 | echo '' >> /tmp/my.ovpn 22 | cat /etc/openvpn/pki/client1.crt >> /tmp/my.ovpn 23 | echo '' >> /tmp/my.ovpn 24 | echo '' >> /tmp/my.ovpn 25 | cat /etc/openvpn/pki/client1.key >> /tmp/my.ovpn 26 | echo '' >> /tmp/my.ovpn 27 | [ -f /etc/ovpnadd.conf ] && cat /etc/ovpnadd.conf >> /tmp/my.ovpn 28 | -------------------------------------------------------------------------------- /package/kochiya/luci-app-openvpn-server/root/etc/openvpn/server/psw-file: -------------------------------------------------------------------------------- 1 | lunatic urey -------------------------------------------------------------------------------- /package/kochiya/luci-app-openvpn-server/root/etc/ovpnadd.conf: -------------------------------------------------------------------------------- 1 | auth-user-pass -------------------------------------------------------------------------------- /package/kochiya/luci-app-openvpn-server/root/usr/share/ucitrack/luci-app-openvpn-server.json: -------------------------------------------------------------------------------- 1 | { 2 | "config": "openvpn", 3 | "init": "" 4 | } 5 | -------------------------------------------------------------------------------- /package/kochiya/luci-app-turboacc-ipt/luasrc/controller/turboacc.lua: -------------------------------------------------------------------------------- 1 | module("luci.controller.turboacc", package.seeall) 2 | 3 | function index() 4 | if not nixio.fs.access("/etc/config/turboacc") then 5 | return 6 | end 7 | local page 8 | page = entry({"admin", "network", "turboacc"}, cbi("turboacc"), _("Turbo ACC Center"), 101) 9 | page.i18n = "turboacc" 10 | page.dependent = true 11 | 12 | entry({"admin", "network", "turboacc", "status"}, call("action_status")) 13 | end 14 | 15 | local function fastpath_status() 16 | return luci.sys.call("/etc/init.d/turboacc check_status fastpath 0") == 0 17 | end 18 | 19 | local function bbr_status() 20 | return luci.sys.call("/etc/init.d/turboacc check_status bbr") == 0 21 | end 22 | 23 | local function fullconenat_status() 24 | return luci.sys.call("/etc/init.d/turboacc check_status fullconenat") == 0 25 | end 26 | 27 | function action_status() 28 | luci.http.prepare_content("application/json") 29 | luci.http.write_json({ 30 | fastpath_state = fastpath_status(), 31 | fullconenat_state = fullconenat_status(), 32 | bbr_state = bbr_status() 33 | }) 34 | end -------------------------------------------------------------------------------- /package/kochiya/luci-app-turboacc-ipt/po/zh_Hans: -------------------------------------------------------------------------------- 1 | zh-cn -------------------------------------------------------------------------------- /package/kochiya/luci-app-turboacc-ipt/root/etc/config/turboacc: -------------------------------------------------------------------------------- 1 | 2 | config turboacc 'config' 3 | option sw_flow '1' 4 | option hw_flow '1' 5 | option sfe_flow '1' 6 | option fullcone_nat '1' 7 | option fullcone6 '0' 8 | option hw_wed '0' 9 | option bbr_cca '1' 10 | -------------------------------------------------------------------------------- /package/kochiya/luci-app-turboacc-ipt/root/etc/uci-defaults/luci-turboacc: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | uci -q batch <<-EOF >/dev/null 4 | delete ucitrack.@turboacc[-1] 5 | add ucitrack turboacc 6 | set ucitrack.@turboacc[-1].init=turboacc 7 | commit ucitrack 8 | EOF 9 | 10 | [ -n "$(lsmod | grep mtkhnat)" ] && \ 11 | uci set turboacc.config.sw_flow='0' && \ 12 | uci set turboacc.config.hw_flow='0' 13 | 14 | uci commit turboacc 15 | 16 | exit 0 17 | -------------------------------------------------------------------------------- /package/kochiya/luci-app-turboacc-ipt/root/usr/share/ucitrack/luci-app-turboacc.json: -------------------------------------------------------------------------------- 1 | { 2 | "config": "turboacc", 3 | "init": "turboacc" 4 | } -------------------------------------------------------------------------------- /package/kochiya/luci-app-wizard/Makefile: -------------------------------------------------------------------------------- 1 | # Copyright 2019 X-WRT 2 | # Copyright 2022-2023 sirpdboy 3 | 4 | include $(TOPDIR)/rules.mk 5 | 6 | PKG_NAME:=luci-app-netwizard 7 | PKG_VERSION:=1.8.3 8 | PKG_RELEASE:=20230625 9 | 10 | PKG_LICENSE:=GPLv3 11 | PKG_LICENSE_FILES:=LICENSE 12 | PKG_MAINTAINER:=Chen Minqiang 13 | 14 | LUCI_TITLE:=LuCI Support for Wizard 15 | LUCI_DEPENDS:=+luci-compat 16 | LUCI_PKGARCH:=all 17 | 18 | define Package/$(PKG_NAME)/conffiles 19 | /etc/config/netwizard 20 | endef 21 | 22 | include $(TOPDIR)/feeds/luci/luci.mk 23 | 24 | define Package/luci-app-netwizard/postinst 25 | #!/bin/sh 26 | if [ -z "$$IPKG_INSTROOT" ]; then 27 | ( . /etc/uci-defaults/99-uci-netwizard-defaults ) 28 | rm -f /etc/uci-defaults/99-uci-netwizard-defaults 29 | rm -rf /tmp/luci* 30 | fi 31 | exit 0 32 | endef 33 | 34 | # call BuildPackage - OpenWrt buildroot signature 35 | -------------------------------------------------------------------------------- /package/kochiya/luci-app-wizard/luasrc/controller/netwizard.lua: -------------------------------------------------------------------------------- 1 | -- Copyright 2019 X-WRT 2 | -- Copyright 2022-2023 sirpdboy 3 | 4 | module("luci.controller.netwizard", package.seeall) 5 | function index() 6 | 7 | entry({"admin", "system", "netwizard"}).dependent = true 8 | entry({"admin", "system", "netwizard", "show"}, call("show_menu")).leaf = true 9 | entry({"admin", "system", "netwizard", "hide"}, call("hide_menu")).leaf = true 10 | 11 | if not nixio.fs.access("/etc/config/netwizard") then return end 12 | if not nixio.fs.access("/etc/config/netwizard_hide") then 13 | e = entry({"admin","system", "netwizard"}, alias("admin","system", "netwizard","settings"), _("Inital Setup"), -1) 14 | e.dependent = true 15 | end 16 | entry({"admin","system", "netwizard","settings"}, cbi("netwizard/netwizard"), _("Inital Setup"), 1).dependent = true 17 | end 18 | -------------------------------------------------------------------------------- /package/kochiya/luci-app-wizard/po/zh-cn: -------------------------------------------------------------------------------- 1 | zh_Hans -------------------------------------------------------------------------------- /package/kochiya/luci-app-wizard/po/zh_cn: -------------------------------------------------------------------------------- 1 | ./zh_Hans -------------------------------------------------------------------------------- /package/kochiya/luci-app-wizard/root/etc/config/netwizard: -------------------------------------------------------------------------------- 1 | config netwizard 'default' 2 | option lan_netmask '255.255.255.0' 3 | option redirectdns '1' 4 | option synflood '1' 5 | option lan_snat '1' 6 | option masq '1' 7 | 8 | -------------------------------------------------------------------------------- /package/kochiya/luci-app-wizard/root/etc/uci-defaults/luci-netwizard: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | chmod +x /etc/init.d/netwizard 2>/dev/null 3 | 4 | uci -q batch <<-EOF >/dev/null 5 | delete ucitrack.@netwizard[-1] 6 | add ucitrack netwizard 7 | set ucitrack.@netwizard[-1].init="netwizard" 8 | commit ucitrack 9 | EOF 10 | 11 | rm -f /tmp/luci-indexcache 12 | exit 0 13 | -------------------------------------------------------------------------------- /package/kochiya/luci-app-wizard/root/etc/uci-defaults/luci-netwizard-defaults: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | ipaddr=$(uci -q get network.lan.ipaddr) 3 | [ -n "$(uci -q get netwizard.default=netwizard)" ] && uci set netwizard.default=netwizard 4 | uci -q set netwizard.default.wifi_ssid="$(uci -q get wireless.@wifi-iface[0].ssid)" 5 | uci -q set netwizard.default.wifi_key="$(uci -q get wireless.@wifi-iface[0].key)" 6 | [ "$(uci -q get network.wan.proto)" ] && uci -q set netwizard.default.wan_proto="$(uci -q get network.wan.proto)" || uci -q set netwizard.default.wan_proto="siderouter" 7 | uci -q set netwizard.default.lan_ipaddr="${ipaddr}" 8 | uci -q set netwizard.default.lan_netmask="$(uci -q get network.lan.netmask)" 9 | uci -q set netwizard.default.lan_gateway="${ipaddr%.*}" 10 | uci -q set netwizard.default.lan_dns="$(uci -q get network.lan.dns)" 11 | uci -q set netwizard.default.wan_interface=`uci -q get network.wan.ifname || uci -q get network.wan.device` 12 | [ "$(uci -q get dhcp.lan.ignore)" ] && uci -q set netwizard.default.lan_dhcp="0" || uci -q set netwizard.default.lan_dhcp="1" 13 | uci commit netwizard 14 | exit 0 15 | -------------------------------------------------------------------------------- /package/kochiya/luci-app-wizard/root/usr/share/ucitrack/luci-app-wizard.json: -------------------------------------------------------------------------------- 1 | { 2 | "config": "netwizard", 3 | "init": "netwizard" 4 | } 5 | -------------------------------------------------------------------------------- /package/kochiya/n2n-offcial/etc/init.d/edge: -------------------------------------------------------------------------------- 1 | #!/bin/sh /etc/rc.common 2 | START=90 3 | STOP=10 4 | 5 | USE_PROCD=1 6 | PROG=/usr/bin/edge 7 | CONFIGFILE=/etc/n2n/edge.conf 8 | 9 | start_service() { 10 | procd_open_instance 11 | procd_set_param command $PROG $CONFIGFILE 12 | procd_set_param file $CONFIGFILE 13 | procd_set_param respawn 14 | procd_close_instance 15 | } 16 | 17 | stop_service() 18 | { 19 | service_stop $PROG 20 | } 21 | 22 | service_triggers() 23 | { 24 | procd_add_reload_trigger "edge" 25 | } 26 | -------------------------------------------------------------------------------- /package/kochiya/n2n-offcial/etc/init.d/supernode: -------------------------------------------------------------------------------- 1 | #!/bin/sh /etc/rc.common 2 | START=90 3 | STOP=10 4 | 5 | USE_PROCD=1 6 | PROG=/usr/bin/supernode 7 | CONFIGFILE=/etc/n2n/supernode.conf 8 | 9 | start_service() { 10 | procd_open_instance 11 | procd_set_param command $PROG $CONFIGFILE 12 | procd_set_param file $CONFIGFILE 13 | procd_set_param respawn 14 | procd_close_instance 15 | } 16 | 17 | stop_service() 18 | { 19 | service_stop $PROG 20 | } 21 | 22 | service_triggers() 23 | { 24 | procd_add_reload_trigger "supernode" 25 | } 26 | -------------------------------------------------------------------------------- /package/kochiya/trojan-go/test.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | trojan-go -version | grep "$PKG_VERSION" 4 | --------------------------------------------------------------------------------