arno renevier wrote: > Package: powersaved > Version: 0.14.0-8 > Severity: normal > > Hi, > when using /bin/dash as /bin/sh with kernel 2.6.24, powersave init scripts > fails and logs following error: > >> FATAL: Error inserting speedstep_centrino >> (/lib/modules/2.6.24-custom/kernel/arch/x86/kernel/cpu/cpufreq/speedstep-centrino.ko): >> No such device > > speedstep_centrino is not available any more on 2.6.24 so, powersave should > try next module in $CPUFREQ_MODULES > > but after > modprobe $MODULE &>/dev/null > RETVAL=$? > > RETVAL will be 0 in dash, and RETVAL will be non 0 in bash > > That case seems to be handled differently in bash and dash >
The bashism is &> /dev/null. It should be >/dev/null 2>&1. The next version of powersaved will remove the whole module loading logic though and rely on cpufrequtils loadcpufreq init script. I thus don't plan to fix this anymore. The next version of powersaved, 0.15.20, will be released rsn. Cheers, Michael -- Why is it that all of the instruments seeking intelligent life in the universe are pointed away from Earth?
signature.asc
Description: OpenPGP digital signature