View Single Post
Old 10-20-2011, 05:53 PM   #143
vldmr
Bigendian confidologist
vldmr has a complete set of Star Wars action figures.vldmr has a complete set of Star Wars action figures.vldmr has a complete set of Star Wars action figures.vldmr has a complete set of Star Wars action figures.vldmr has a complete set of Star Wars action figures.
 
vldmr's Avatar
 
Posts: 60
Karma: 494
Join Date: Oct 2011
Device: edge & edgejr
Quote:
Originally Posted by ktwombley View Post
dude that is a great idea! If you want to look into it and give me a patch or something I can incorporate it. If I have time I can look into it too.
Ok, here goes. The script /system/esi/bin/start_epd.sh executes at startup and loads all esi modules, so I've chosen to add permission fix to it. It turned out that fb2 does not exist at the time when the script is finshed. So I had to spawn another script to wait for device file to appear before fixing it.

It could be incorporated in allmine in the following way:

Add the following line somewhere in update.sh:

echo /system/esi/bin/eink_permissions.sh \& >> $ANDROID_ROOT/system/esi/bin/start_epd.sh

and add a file eink_permissions.sh into system/esi/bin/ in allmine.zip with the following contents:

####################
#!/system/esi/bin/busybox sh
while [ ! -e /dev/graphics/fb2 ]; do
sleep 1
done
/system/esi/bin/busybox chmod 666 /dev/graphics/fb2
####################
vldmr is offline   Reply With Quote