Giovanni Scafora schrieb:
2009/12/15, Thomas Bächler <[email protected]>:
 The second one doesn't make sense. Don't use >/dev/null in combination with
grep, use grep -q:

Stupid me: The first one doesn't make sense the second one does. But it seems you understood me correctly.

 grep -qw "$governor"
sys/devices/system/cpu/cpu*/cpufreq/scaling_available_governors
|| modprobe -q $mod


OK, then I put the following line:

grep -qw "$governor"
sys/devices/system/cpu/cpu*/cpufreq/scaling_available_governors ||
modprobe -q $mod

I hope that works, look good though.

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to