Skip to content

Commit

Permalink
fix: 部分iqoo设备开机时读取频率表导致panic
Browse files Browse the repository at this point in the history
iqooneo7se在开机时马上读取scaling_available_frequencies会失败,需要等待可读取后再启动fas-rs主程序
  • Loading branch information
shadow3aaa committed Oct 16, 2024
1 parent 5d1cfcb commit 48fc102
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions module/service.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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 &

0 comments on commit 48fc102

Please sign in to comment.