[arch-general] cpufrequtils dead or alive ?
Thomas Bächler
thomas at archlinux.org
Tue Dec 15 08:50:07 EST 2009
Giovanni Scafora schrieb:
> modprobe $mod || grep "$governor"
> /sys/devices/system/cpu/cpu*/cpufreq/scaling_available_governors >
> /dev/null 2>&1
>
> or
>
> grep "$governor"
> /sys/devices/system/cpu/cpu*/cpufreq/scaling_available_governors ||
> modprobe $mod > /dev/null 2>&1
The second one doesn't make sense. Don't use >/dev/null in combination
with grep, use grep -q:
grep -qw "$governor"
sys/devices/system/cpu/cpu*/cpufreq/scaling_available_governors ||
modprobe -q $mod
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 261 bytes
Desc: OpenPGP digital signature
URL: <http://mailman.archlinux.org/pipermail/arch-general/attachments/20091215/d1497cb2/attachment.bin>
More information about the arch-general
mailing list