From 48fc1021427efd8a61d0c8788dcfb0463c4a42f5 Mon Sep 17 00:00:00 2001 From: shadow3 Date: Wed, 16 Oct 2024 06:41:03 +0000 Subject: [PATCH] =?UTF-8?q?fix:=20=E9=83=A8=E5=88=86iqoo=E8=AE=BE=E5=A4=87?= =?UTF-8?q?=E5=BC=80=E6=9C=BA=E6=97=B6=E8=AF=BB=E5=8F=96=E9=A2=91=E7=8E=87?= =?UTF-8?q?=E8=A1=A8=E5=AF=BC=E8=87=B4panic?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit iqooneo7se在开机时马上读取scaling_available_frequencies会失败,需要等待可读取后再启动fas-rs主程序 --- module/service.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/module/service.sh b/module/service.sh index e620d018..2adc05b7 100755 --- a/module/service.sh +++ b/module/service.sh @@ -48,5 +48,9 @@ if [ -f $MERGE_FLAG ]; then mv $DIR/.update_games.toml $DIR/games.toml fi +while [ "$(cat /sys/devices/system/cpu/cpufreq/policy0/scaling_available_frequencies)" = "" ]; do + sleep 1 +done + killall fas-rs nohup $MODDIR/fas-rs run $MODDIR/games.toml >$LOG 2>&1 &