start on started dsme stop on starting shutdown service console none script TDIFF=$(expr $(date +%s) - $(stat -t /etc/lastreboot |awk '{print $14}')) if [ $TDIFF -gt 300 ] then touch /etc/lastreboot echo 75 > /sys/devices/system/cpu/cpu0/cpufreq/ondemand/up_threshold echo 150000 > /sys/devices/system/cpu/cpu0/cpufreq/ondemand/sampling_rate echo "30 30 30 30 33 38 45 45 48 48 54 54 60 72 72" > /sys/power/vdd1_opps_vsel echo 500000 > /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq echo 850000 > /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq modprobe bq27x00_battery exit 0 else exit 1 fi end script