mirror of
https://github.com/kiddin9/op-packages.git
synced 2026-11-02 19:13:56 +08:00
🎁 Sync 2026-05-19 21:08:14
This commit is contained in:
1 parent
ec48254dc1
commit
ecf5c92802
23 files changed
+813
-677
No files matched your search
@@ -1,5 +1,5 @@
|
||||
#
|
||||
# Copyright (C) 2025 gSpot (https://github.com/gSpotx2f/luci-app-cpu-perf)
|
||||
# Copyright (C) 2026 gSpot (https://github.com/gSpotx2f/luci-app-cpu-perf)
|
||||
#
|
||||
# This is free software, licensed under the MIT License.
|
||||
#
|
||||
@@ -7,8 +7,8 @@
|
||||
include $(TOPDIR)/rules.mk
|
||||
|
||||
PKG_NAME:=luci-app-cpu-perf
|
||||
PKG_VERSION:=0.6.1
|
||||
PKG_RELEASE:=2
|
||||
PKG_VERSION:=0.6.2
|
||||
PKG_RELEASE:=3
|
||||
LUCI_TITLE:=CPU performance information and management for LuCI
|
||||
LUCI_DEPENDS:=+ucode +ucode-mod-fs
|
||||
LUCI_PKGARCH:=all
|
||||
|
||||
+12
-12
@@ -9,31 +9,31 @@ OpenWrt >= 22.03.
|
||||
|
||||
**OpenWrt >= 25.12:**
|
||||
|
||||
wget --no-check-certificate -O /tmp/luci-app-cpu-perf-0.6.1-r1.apk https://github.com/gSpotx2f/packages-openwrt/raw/master/25.12/luci-app-cpu-perf-0.6.1-r1.apk
|
||||
apk --allow-untrusted add /tmp/luci-app-cpu-perf-0.6.1-r1.apk
|
||||
rm /tmp/luci-app-cpu-perf-0.6.1-r1.apk
|
||||
wget --no-check-certificate -O /tmp/luci-app-cpu-perf-0.6.2-r1.apk https://github.com/gSpotx2f/packages-openwrt/raw/master/25.12/luci-app-cpu-perf-0.6.2-r1.apk
|
||||
apk --allow-untrusted add /tmp/luci-app-cpu-perf-0.6.2-r1.apk
|
||||
rm /tmp/luci-app-cpu-perf-0.6.2-r1.apk
|
||||
service rpcd restart
|
||||
service cpu-perf start
|
||||
|
||||
i18n-ru:
|
||||
|
||||
wget --no-check-certificate -O /tmp/luci-i18n-cpu-perf-ru-0.6.1-r1.apk https://github.com/gSpotx2f/packages-openwrt/raw/master/25.12/luci-i18n-cpu-perf-ru-0.6.1-r1.apk
|
||||
apk --allow-untrusted add /tmp/luci-i18n-cpu-perf-ru-0.6.1-r1.apk
|
||||
rm /tmp/luci-i18n-cpu-perf-ru-0.6.1-r1.apk
|
||||
wget --no-check-certificate -O /tmp/luci-i18n-cpu-perf-ru-0.6.2-r1.apk https://github.com/gSpotx2f/packages-openwrt/raw/master/25.12/luci-i18n-cpu-perf-ru-0.6.2-r1.apk
|
||||
apk --allow-untrusted add /tmp/luci-i18n-cpu-perf-ru-0.6.2-r1.apk
|
||||
rm /tmp/luci-i18n-cpu-perf-ru-0.6.2-r1.apk
|
||||
|
||||
**OpenWrt <= 24.10:**
|
||||
|
||||
wget --no-check-certificate -O /tmp/luci-app-cpu-perf_0.6.1-r1_all.ipk https://github.com/gSpotx2f/packages-openwrt/raw/master/24.10/luci-app-cpu-perf_0.6.1-r1_all.ipk
|
||||
opkg install /tmp/luci-app-cpu-perf_0.6.1-r1_all.ipk
|
||||
rm /tmp/luci-app-cpu-perf_0.6.1-r1_all.ipk
|
||||
wget --no-check-certificate -O /tmp/luci-app-cpu-perf_0.6.2-r1_all.ipk https://github.com/gSpotx2f/packages-openwrt/raw/master/24.10/luci-app-cpu-perf_0.6.2-r1_all.ipk
|
||||
opkg install /tmp/luci-app-cpu-perf_0.6.2-r1_all.ipk
|
||||
rm /tmp/luci-app-cpu-perf_0.6.2-r1_all.ipk
|
||||
service rpcd restart
|
||||
service cpu-perf start
|
||||
|
||||
i18n-ru:
|
||||
|
||||
wget --no-check-certificate -O /tmp/luci-i18n-cpu-perf-ru_0.6.1-r1_all.ipk https://github.com/gSpotx2f/packages-openwrt/raw/master/24.10/luci-i18n-cpu-perf-ru_0.6.1-r1_all.ipk
|
||||
opkg install /tmp/luci-i18n-cpu-perf-ru_0.6.1-r1_all.ipk
|
||||
rm /tmp/luci-i18n-cpu-perf-ru_0.6.1-r1_all.ipk
|
||||
wget --no-check-certificate -O /tmp/luci-i18n-cpu-perf-ru_0.6.2-r1_all.ipk https://github.com/gSpotx2f/packages-openwrt/raw/master/24.10/luci-i18n-cpu-perf-ru_0.6.2-r1_all.ipk
|
||||
opkg install /tmp/luci-i18n-cpu-perf-ru_0.6.2-r1_all.ipk
|
||||
rm /tmp/luci-i18n-cpu-perf-ru_0.6.2-r1_all.ipk
|
||||
|
||||
## Screenshots:
|
||||
|
||||
|
||||
@@ -34,8 +34,8 @@ EAS_DEF=1
|
||||
config_load $APP_NAME
|
||||
|
||||
get_cpu_freq_policies() {
|
||||
[ ! -d "$SYSFS_CPU_FREQ_DIR" ] && return
|
||||
echo $(ls "$SYSFS_CPU_FREQ_DIR" | grep "^policy[0-9]*$")
|
||||
|
||||
}
|
||||
|
||||
reset_cpu_freq_policy_config() {
|
||||
@@ -67,7 +67,7 @@ set_cpu_freq_policy() {
|
||||
local scaling_min_freq scaling_max_freq scaling_governor
|
||||
local policy_dir="${SYSFS_CPU_FREQ_DIR}/${policy}"
|
||||
|
||||
[ ! -d $policy_dir ] && return
|
||||
[ ! -d "$policy_dir" ] && return
|
||||
|
||||
local scaling_min_freq_file="${policy_dir}/scaling_min_freq"
|
||||
local scaling_max_freq_file="${policy_dir}/scaling_max_freq"
|
||||
@@ -92,7 +92,7 @@ reset_cpu_freq_policy() {
|
||||
local policy="$1"
|
||||
local policy_dir="${SYSFS_CPU_FREQ_DIR}/${policy}"
|
||||
|
||||
[ ! -d $policy_dir ] && return
|
||||
[ ! -d "$policy_dir" ] && return
|
||||
|
||||
local min_freq_file="${policy_dir}/cpuinfo_min_freq"
|
||||
local max_freq_file="${policy_dir}/cpuinfo_max_freq"
|
||||
|
||||
Reference in new issue
Block a user