View Single Post
Posts: 71 | Thanked: 4 times | Joined on Mar 2010
#294
This question isn't specific to the recent update to Enhanced Kernel..

I have loaded up a customised kernel which idols at 125mhz and depending on the program and the hardware required (GPS, Wifi, etc) goes up to 850mhz as its max.

PHP Code:
if [ "$QBW_EXEC_REASON" == "QBW_STARTUP_UPDATE" ]; then
# add here switch on instructions
/usr/sbin/kernel-load /home/user/MyDocs/kernel.txt | sudo gainroot
echo "ON";
exit 1;
fi;

if [ "$QBW_CURRENT_RESULTS_TEXT" == "ON" ]; then
# add here switch off instructions
/usr/sbin/kernel-unload /home/user/MyDocs/kernel.txt | sudo gainroot
echo "OFF";
exit 0;
else
# add here switch on instructions
/usr/sbin/kernel-load /home/user/MyDocs/kernel.txt | sudo gainroot
echo "ON";
exit 1;
fi;

I have used the queen beecon widget to create an on/off state for that kernel. Loading the kernel is fine:
/usr/sbin/kernel-load /home/user/MyDocs/kernel.txt | sudo gainroot

but unloading the kernel doesn't work. I tried the command:
/usr/sbin/kernel-unload /home/user/MyDocs/kernel.txt | sudo gainroot

the 2 thoughts that occur is that the command kernel-unload is incorrect? or that there needs to be a customised kernel and a stock kernel in MyDocs.. ie: I load the customised kernel to switch it on and I load the stock kernel to switch it off?

Can any one help me with correcting the command line to switch the customised kernel off