View Single Post
Posts: 2 | Thanked: 1 time | Joined on Apr 2010
#919
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

?


the one u want should be some scprits like this

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

if [ "$QBW_CURRENT_RESULTS_TEXT" == "ON" ]; then
#    add here switch off instructions
    rootsh /usr/sbin/kernel-load /etc/default/kernel-power
    echo "OFF";
    exit 0;
else
#    add here switch on instructions
    rootsh /usr/sbin/kernel-load /home/user/MyDocs/kernel.txt
    echo "ON";
    exit 1;
bcz kernel-config dont have a command "kernel-unload'
if u wanna retore ur setting after the button turned off just copy the default setting to the file /etc/default/kernel-power


p.s: the script doesnt work under the rootsh 1.8 if u wanna work just deinstalled the current version and download the old one 1.5 from extra but not extra-devel

Last edited by hihi427; 2010-11-14 at 21:56.