View | Details | Raw Unified | Return to bug 26046
Collapse All | Expand All

(-)a/rc.d/init.d/powernowd (-13 lines)
Lines 35-53 MODULE=cpufreq_userspace Link Here
35
test -x $DAEMON || exit 0
35
test -x $DAEMON || exit 0
36
RETVAL=0
36
RETVAL=0
37
37
38
KERNEL_VER_MAJOR=`uname -r | cut -d. -f1-2`
39
40
if [ $KERNEL_VER_MAJOR = 2.6 ]; then
41
    /sbin/modinfo $MODULE &>/dev/null
42
    if [ "$?" != "0" ] ; then
43
	echo -n $"required $MODULE kernel module does not exist."; warning; echo
44
	exit 0
45
    fi
46
else
47
    echo -n $"running a v$KERNEL_VER_MAJOR.x kernel required."; warning; echo
48
    exit 0
49
fi
50
51
# Load config
38
# Load config
52
SourceIfNotEmpty /etc/sysconfig/powernowd
39
SourceIfNotEmpty /etc/sysconfig/powernowd
53
40

Return to bug 26046