#!/bin/sh

# Hack for third-party libraries

# Hack remote control
[ $PPID -eq 1 -a -f /storage/.config/remote.conf ] && . /storage/.config/remote.conf

# Rest of autostart.sh goes here...
CPU=/sys/devices/system/cpu
for i in $CPU/cpu0/cpufreq $CPU/cpu1/cpufreq; do
  #echo "performance" > $i/scaling_governor
  #echo "ondemand" > $i/scaling_governor
  #echo "conservative" > $i/scaling_governor
  #echo "hotplug" > $i/scaling_governor
  #echo "lagfree" > $i/scaling_governor
  echo "interactive" > $i/scaling_governor
  # M6 devices min freq 200Mhz
  echo "96000" > $i/scaling_min_freq
  # M6 devices max out at 1.2-1.5Ghz depending on uboot
  echo "1296000" > $i/scaling_max_freq
done
























