5 echo wmlaptop2 is now installed on your system
6 echo type wmlaptop2 --help for a details on its functions
9 cd /sys/devices/system/cpu/cpu0/cpufreq >& /dev/null
13 GOV=`cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor`
15 if [ "$GOV" != "ondemand" ]; then
18 echo It seems you have kernel 2.6 series but you are
19 echo not using the \"ondemand\" scaling governor. Enable it
20 echo or wmlaptop2 will not work.
23 POS=`grep userspace /sys/devices/system/cpu/cpu0/cpufreq/scaling_available_governors &> /dev/null`
26 if [ $FOUND -eq 0 ]; then
27 echo You can do this by typing:
28 echo "echo ondemand > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor"
29 echo BEFORE starting wmlaptop2.
32 echo WARNING: you don\'t seem to have \"ondemand governor\" available
33 echo on this kernel configuration. If you have built it as a module,
34 echo load it before starting wmlaptop2. If you didn\'t build it, maybe you
35 echo need to recompile the kernel.
41 which sudo >& /dev/null
46 echo To enable wmlaptop2 to call /bin/shutdown as normal user, you have to
47 echo tell to sudo that a normal user can run the shutdown binary.
49 echo You can do this by adding this line to /etc/sudoers file:
50 echo myLoginName ALL=\(root\) NOPASSWD: /sbin/shutdown
52 echo where myLoginName is the normal user login name.
56 echo You don\'t seem to have sudo on your path. Read the README file to
57 echo understand who to use the auto shutdown with wmlaptop2