View Single Post
Posts: 71 | Thanked: 4 times | Joined on Mar 2010
#933
updating what I said, by adding the gainroot>/dev/null that I added to the end of the 3 states commands created system instability and it didn't create an off state (or toggling between states or both) either.

Surely it must be possible using 2 kernel files? 1 which has been customised (an 'on' state) and one which is stock (an 'off' state)

the command:

if [ "$QBW_EXEC_REASON" == "QBW_STARTUP_UPDATE" ]; then /usr/sbin/kernel-load /home/user/MyDocs/kernel.txt | sudo gainroot

deffinately works at start up (if enabled) or when clicked after start up.

so maybe its not toggling between states because of the sudo gainroot command?

I tried replacing the on/off states commands with:

if [ "$QBW_CURRENT_RESULTS_TEXT" == "ON" ]; then
rootsh /usr/sbin/kernel-load /home/user/MyDocs/originalkernel.txt
echo "OFF";
exit 0;
else
rootsh /usr/sbin/kernel-load /home/user/MyDocs/kernel.txt
echo "ON";
exit 1;


helppp

Last edited by batman; 2010-11-16 at 14:09.