6 [[ -f /etc
/conf.d
/cpupower
]] && .
/etc
/conf.d
/cpupower
10 stat_busy
"Setting cpupower rules"
13 if [[ "$governor" ]]; then
14 params
="-g $governor "
15 params
+="${min_freq:+-d $min_freq} "
16 params
+="${max_freq:+-u $max_freq} "
17 params
+="${freq:+-f $freq} "
18 cpupower frequency-set
$params >/dev
/null ||
{ stat_fail
; exit 1; }
21 stat_append
': Invalid configuration'
26 echo "usage: $0 {start|restart}"
31 # vim:set ts=2 sw=2 ft=sh et: