+ DESC='CPUFreq Utilities' + PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin + CPUFREQ_SET=/usr/bin/cpufreq-set + CPUFREQ_INFO=/usr/bin/cpufreq-info + CPUFREQ_OPTIONS= + . /lib/lsb/init-functions ++ FANCYTTY= ++ '[' -e /etc/lsb-base-logging.sh ']' ++ true + ENABLE=true + GOVERNOR=performance + MAX_SPEED=0 + MIN_SPEED=0 + '[' -x /usr/bin/cpufreq-set ']' + '[' -f /etc/default/cpufrequtils ']' + '[' true = true ']' + '[' -n 0 ']' + '[' 0 '!=' 0 ']' + '[' -n 0 ']' + '[' 0 '!=' 0 ']' + '[' -n performance ']' + CPUFREQ_OPTIONS=' --governor performance' ++ cat /proc/stat ++ sed -ne 's/^cpu\([[:digit:]]\+\).*/\1/p' + CPUS='0 1' + RETVAL=0 + case "$1" in + log_action_begin_msg 'CPUFreq Utilities: Setting performance CPUFreq governor' + echo -n 'CPUFreq Utilities: Setting performance CPUFreq governor...' CPUFreq Utilities: Setting performance CPUFreq governor...+ check_governor_avail + info=/sys/devices/system/cpu/cpu0/cpufreq/scaling_available_governors + '[' -f /sys/devices/system/cpu/cpu0/cpufreq/scaling_available_governors ']' + grep -q '\' /sys/devices/system/cpu/cpu0/cpufreq/scaling_available_governors + return 0 + for cpu in '$CPUS' + log_action_cont_msg CPU0 + echo -n CPU0... CPU0...+ /usr/bin/cpufreq-set --cpu 0 --governor performance + for cpu in '$CPUS' + log_action_cont_msg CPU1 + echo -n CPU1... CPU1...+ /usr/bin/cpufreq-set --cpu 1 --governor performance + log_action_end_msg 0 '' + log_action_end_msg_pre 0 '' + : + '[' -z '' ']' + end=. + '[' 0 -eq 0 ']' + echo done. done. + log_action_end_msg_post 0 '' + : + exit 0