View Single Post
Posts: 458 | Thanked: 783 times | Joined on Jan 2010 @ France
#603
Originally Posted by Flandry View Post
100% and 11%
Final step :

Open a terminal as root, then do :

Code:
clear && ID=$(id -un) ; if [ ${ID} != "root" ] ; then echo "You are not 'root', please use this command line as 'root' ..." ; else echo "Ok, you are 'root' ..." ; if grep -q "blacklist bq27x00_battery" /etc/modprobe.d/blacklist 2>/dev/null ; then echo "Patch already applyed, nothing to be done ..." ; echo "" ; else echo "Applying patch now ..." ; echo "blacklist bq27x00_battery" >>/etc/modprobe.d/blacklist ; echo "" ; echo "DONE, PLEASE REBOOT YOUR DEVICE ..." ; echo "" ; fi ; fi

For details, please read this thread from here : http://talk.maemo.org/showthread.php?t=71879&page=54

A++

Last edited by colin.stephane; 2011-06-08 at 20:31. Reason: Corrected the script with correct command "blacklist bq27x00_battery", sorry ...