Re: cpufrequtils dead or alive ?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



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

Attachment: signature.asc
Description: OpenPGP digital signature


[Index of Archives]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Share Photos]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]
  Powered by Linux