From fda06a096388a4fae8a10d8803c6c1908f6926f7 Mon Sep 17 00:00:00 2001 From: klever Date: Sun, 15 Mar 2020 16:55:54 +0800 Subject: [PATCH] autocore and cpufreq --- .github/workflows/r2s_lean.yml | 1 + .github/workflows/r2s_lienol_from_lean.yml | 1 + JUNK/fix_wifi.sh | 0 JUNK/flash.sh | 11 +++++++++++ app_config.seed | 1 - 5 files changed, 13 insertions(+), 1 deletion(-) mode change 100644 => 100755 JUNK/fix_wifi.sh create mode 100755 JUNK/flash.sh diff --git a/.github/workflows/r2s_lean.yml b/.github/workflows/r2s_lean.yml index 1ec4525..1ef1558 100644 --- a/.github/workflows/r2s_lean.yml +++ b/.github/workflows/r2s_lean.yml @@ -79,6 +79,7 @@ jobs: git clone -b 18.06 https://github.com/jerrykuku/luci-theme-argon.git cd ../../ git apply ../../enable_autocore.diff + git apply ../../fix_cpufreq.diff #sed -i '/exit/i\mv /etc/rc.d/S25dockerd /etc/rc.d/S92dockerd && sed -i "s/START=25/START=92/g" S92dockerd' package/lean/default-settings/files/zzz-default-settings sed -i '/exit/i\/etc/init.d/dockerd disabled' package/lean/default-settings/files/zzz-default-settings sed -i '/uci commit luci/i\uci set luci.main.mediaurlbase="/luci-static/argon"' package/lean/default-settings/files/zzz-default-settings diff --git a/.github/workflows/r2s_lienol_from_lean.yml b/.github/workflows/r2s_lienol_from_lean.yml index e5f7920..53bc23d 100644 --- a/.github/workflows/r2s_lienol_from_lean.yml +++ b/.github/workflows/r2s_lienol_from_lean.yml @@ -69,6 +69,7 @@ jobs: git clone -b 18.06 https://github.com/jerrykuku/luci-theme-argon.git cd ../../ git apply ../../enable_autocore.diff + git apply ../../fix_cpufreq.diff sed -i '/uci commit luci/i\uci set luci.main.mediaurlbase="/luci-static/argon"' package/lean/default-settings/files/zzz-default-settings sed -i '/exit/i\chown -R root:root /usr/share/netdata/web' package/lean/default-settings/files/zzz-default-settings sed -i 's/option fullcone\t1/option fullcone\t0/' package/network/config/firewall/files/firewall.config diff --git a/JUNK/fix_wifi.sh b/JUNK/fix_wifi.sh old mode 100644 new mode 100755 diff --git a/JUNK/flash.sh b/JUNK/flash.sh new file mode 100755 index 0000000..36d8e67 --- /dev/null +++ b/JUNK/flash.sh @@ -0,0 +1,11 @@ +#!/bin/ash + +if ! type "pv" > /dev/null; then +opkg update ; opkg install pv +fi +if [ -f /tmp/upload/rom.img.gz ]; then +pv /tmp/upload/rom.img.gz | gunzip -dc > /dev/mmcblk0 +echo 1 > /proc/sys/kernel/sysrq +echo b > /proc/sysrq-trigger +fi + diff --git a/app_config.seed b/app_config.seed index fa86ca7..bad3e62 100644 --- a/app_config.seed +++ b/app_config.seed @@ -7,7 +7,6 @@ CONFIG_OPENSSL_WITH_NPN=y # CONFIG_OPENSSL_ENGINE_BUILTIN_DEVCRYPTO is not set # CONFIG_PACKAGE_kmod-cryptodev is not set # CONFIG_PACKAGE_libopenssl-devcrypto is not set -# CONFIG_PACKAGE_luci-app-cpufreq is not set CONFIG_PACKAGE_ipv6helper=y CONFIG_PACKAGE_dnsmasq_full_dhcpv6=y CONFIG_PACKAGE_collectd-mod-cpu=y