View Single Post
  #102 (permalink)  
Old 04-25-2011, 02:14 AM
toadlife's Avatar
toadlife
Lurker
Offline
Location: Lemoore, CA
 
Join Date: Dec 2008
Posts: 15
Reputation: 15
toadlife is a n00b
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Re: [TESTING] SCBS: Improved battery meter system

I solved my problem of scbs blowing up logcat by starting scbs as a service...

I created a shell script called scbs.sh and placed it in /bin

Code:
#!/bin/sh    
scbsargs=`cat /sdcard/scbsargs.conf`
if [ ! "$scbsargs" == "" ] ; then
    if [ ! -f /dev/scbs0 ] ; then
        dev=$(cat /sys/class/scbs/0/dev | sed -e "s/:/ /g")
        mknod /dev/scbs0 c $dev        
    fi
    scbs $scbsargs
fi
I created a file called scbsargs.conf and placed it in the root of my sdcard...

Code:
-d -co /sdcard/scbs.conf -lf /dev/null
And finally, edited /init.cfg/init.froyo.rc and added scbs.sh as a service...

Code:
service scbs /bin/scbs.sh
oneshot
__________________
"Whenever you want information on the 'net, don't ask a question; just post a wrong answer." -- Cancer Omega
Reply With Quote