#!/bin/sh # # This script will be executed *after* all the other init scripts. # You can put your own initialization stuff in here if you don't # want to do the full Sys V style init stuff. BASE=/sys/devices/system/cpu/cpu0/cpufreq if grep -q ondemand $BASE/scaling_available_governors then echo -n "Setting up ondemand CPUfreq governor: " echo ondemand > $BASE/scaling_governor echo 200000 > $BASE/ondemand/sampling_rate echo 5 > $BASE/ondemand/sampling_down_factor echo 75 > $BASE/ondemand/up_threshold echo 50 > $BASE/ondemand/down_threshold echo "Done." fi touch /var/lock/subsys/local