modifiche flash

Download Modifiche Flash

If you can't read please download the document

Upload: pallilino

Post on 06-Dec-2015

1 views

Category:

Documents


0 download

DESCRIPTION

gjg

TRANSCRIPT

# Short-Description: Set the CPU Frequency Scaling governor to "ondemand" ### END INIT INFO +# Don't run if we're going to start an Android LXC container:+[ ! -f /etc/init/lxc-android-config.conf ] || exit 0 PATH=/sbin:/usr/sbin:/bin:/usr/bin . /lib/init/vars.sh . /lib/lsb/init-functions +AVAILABLE="/sys/devices/system/cpu/cpu0/cpufreq/scaling_available_governors"+ case "$1" in start) start-stop-daemon --start --background --exec /etc/init.d/ondemand -- background@@ -21,24 +25,27 @@ background) sleep 60 # probably enough time for desktop login + [ -f $AVAILABLE ] || exit 0+ read governors < $AVAILABLE+ case $governors in+ *interactive*)+ GOVERNOR="interactive"+ break+ ;;+ *ondemand*)+ GOVERNOR="ondemand"+ break+ ;;+ *)+ exit 0+ ;;+ esac+ for CPUFREQ in /sys/devices/system/cpu/cpu*/cpufreq/scaling_governor do [ -f $CPUFREQ ] || continue- echo -n ondemand > $CPUFREQ+ echo -n $GOVERNOR > $CPUFREQ done--### MODIFICHE PER MIGLIORARE FLASH CON CPU ###-## eliminabile se problemi funzionamento ##-###--for CPU_THRESHOLD in /sys/devices/system/cpu/cpu*/cpufreq/ondemand/up_threshold-do-[ -f $CPU_THRESHOLD ] || continue-echo -n 40 > $CPU_THRESHOLD-done--### FINE MODIFICHE ###- ;; restart|reload|force-reload) echo "Error: argument '$1' not supported" >&2@@ -51,7 +58,3 @@ exit 3 ;; esac--### MODIFICHE PER MIGLIORARE FLASH CON CPU ###-## eliminabile se problemi funzionamento ##-###