Skip to content

Instantly share code, notes, and snippets.

@GMMan
Created January 25, 2021 20:25
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save GMMan/5b5daa43d7922d1e32a1b79cf344ad01 to your computer and use it in GitHub Desktop.
Save GMMan/5b5daa43d7922d1e32a1b79cf344ad01 to your computer and use it in GitHub Desktop.
Overclock script for Densha de Go! Plug & Play
#!/bin/sh
mount -o remount,rw /
cp /mnt/S90overclock /etc/init.d
chmod 755 /etc/init.d/S90overclock
#!/bin/sh -e
start() {
cat "/sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_max_freq" > "/sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq"
cat "/sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_max_freq" > "/sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq"
}
stop() {
cat "/sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_boot_freq" > "/sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq"
cat "/sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_boot_freq" > "/sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq"
}
case "$1" in
start)
start
;;
stop)
stop
;;
restart)
stop
start
;;
*)
echo "$0: Please use start, stop, or restart."
exit 1
;;
esac
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment