View Single Post
Old 11-04-2013, 01:49 PM   #15
twobob
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Týr
twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.
 
twobob's Avatar
 
Posts: 6,586
Karma: 6299993
Join Date: Jun 2012
Location: uti gratia usura (Yao ying da ying; Mo ying da yieng)
Device: PW-WIFI|K5-3G+WIFI| K4|K3-3G|DXG|K2| Rooted Nook Touch
Post hideprogressbar.sh (all use cases - other than DX)

PHP Code:
#!/bin/sh

PLATFORM="$(cat /sys/devices/platform/mxc_epdc_fb/graphics/fb0/modes)"

echo $PLATFORM

if [ -"$PLATFORM"  ]; then
    
# it's probably something ancient
    

    
if [ ! -/proc/fiveway_wake   ] ; then

    
echo "k2 or something detected"

        
echo "" > /var/log/messagestail -/var/log/messages 2>/dev/null | \
        
awk '/.*PageAction*./ || /.*acxmgrd*./ || /.*NextPage*./ || /.*Reader*./ {system("/mnt/us/extensions/hideProgressBar/bin/wiperk2.sh &")}  '
        
exit 0


        
else
    echo 
"k3 or k4 or something detected"

        
echo "" > /var/log/messagestail -/var/log/messages 2>/dev/null | \
        
awk '/.*PageAction*./ || /.*acxmgrd*./ || /.*NextPage*./ || /.*Reader*./ {system("/mnt/us/extensions/hideProgressBar/bin/wiperk4.sh &")}  '
        
exit 0

    fi

fi

if [ -"$PLATFORM"  ]; then
    
if [ "$PLATFORM!= "${PLATFORM/758/}]; then

    
echo "PW detected"

    
echo "" > /var/log/messagestail -/var/log/messages 2>/dev/null exec /usr/bin/parselog | \
    
awk '/.*PageTurnAction*./ || /.*JunoExecutionManager*./  {system("eips -d l=FFF,w=758,h=48 -x 0 -y 977")}  '

    
else
    
# it's something else, probably older

    
echo "Non-PW detected"

    
echo "" > /var/log/messagestail -/var/log/messages 2>/dev/null exec /usr/bin/parselog | \
    
awk '/.*PageAction*./ || /.*acxmgrd*./ {system("eips -d l=FFF,w=600,h=40 -x 0 -y 760 ")}  '

    
fi
fi 


enjoy.

I /could/ expand this cover DX's... but I'm not sure it is an issue on DX?

Last edited by twobob; 11-04-2013 at 07:49 PM. Reason: its PageTurnAction on a PW - DUH. EDIT 2 added startup use-cases
twobob is offline   Reply With Quote