View Single Post
No!No!No!Yes!'s Avatar
Posts: 700 | Thanked: 846 times | Joined on Nov 2009
#916
Originally Posted by batman View Post
Forgive my ignorance, and thank you very much for this awsome App

What I do is I usualy switch on xterminal:

sudo gainroot
/usr/sbin/kernel-load /home/user/MyDocs/kernel.txt

how would I insert that?

PS: whats the command for unloading? I assume it's:

sudo gainroot
/usr/sbin/kernel-unload /home/user/MyDocs/kernel.txt

?
Uhm ... sorry don't have modded kernel installed and I don't want to mess up your phone with untested instructions but it could look like this (but I repeat I can't test it and you should proceed at your own risk here):
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
But have a look around as some people had problems with sudo gainroot and had to switch to rootsh.

I repeat once again I haven't tested this and maybe some kernel gurus around here might confirm commands and whole procedure. So proceed at your own risk!!!
__________________
Have a look at Queen BeeCon Widget (WIKI) Customizable and flexible widget-based multi-instance monitoring, alerting and interactive tool for the N900
Please provide comments and feedback for having QBW supported and enhanced further - (DONATE) - v1.3.3devel / v1.3.3testing / v1.3.3extras

Last edited by No!No!No!Yes!; 2010-11-13 at 20:59.
 

The Following User Says Thank You to No!No!No!Yes! For This Useful Post: