View Single Post
  #39 (permalink)  
Old 12-17-2010, 12:41 PM
zeurx's Avatar
zeurx
Regular 'Geeker
Offline
 
Join Date: Mar 2007
Posts: 415
Reputation: 280
zeurx is becoming a PPCGeeks regularzeurx is becoming a PPCGeeks regularzeurx is becoming a PPCGeeks regular
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Re: Test with framebuffer

Quote:
Originally Posted by tiger2wander View Post
Code:
# custom shell commands, these commands run last
custom_shells{
  chmod 777 /etc/dbus.conf

  echo "Remove dirty files"
  rm /sdcard/FSCK*.REC
  rm /sdcard/fsck*.rec

  echo "Copy hosts to remove ad"
  cp -fv /sdcard/tools/etc/hosts /data/etc/hosts
  cp -fv /sdcard/tools/etc/hosts /system/etc/hosts
  
  echo "Mounting external mods."
  mount --bind /sdcard/mods/libGLES_qcom.so.11.29.10 /system/lib/egl/libGLES_qcom.so
  mount --bind /sdcard/mods/gralloc.msm7k.so /system/lib/hw/gralloc.msm7k.so
  mount --bind /sdcard/mods/build.prop /system/build.prop
  
  echo "Mounting swapfile on /sdcard/swapfile"
  swapon /sdcard/swapfile
}

A better method to make it work for everyone would be...
Code:
# custom shell commands, these commands run last
custom_shells{
  chmod 777 /etc/dbus.conf

# Setup vars --------------------
FSCK_CLEAN=`/bin/grep -o "fsck_cleanup=.*" /proc/cmdline | /bin/sed -e "s/.*fsck_cleanup=//g" -e "s/ .*//g"`
3D_TEST=`/bin/grep -o "3d_test=.*" /proc/cmdline | /bin/sed -e "s/.*3d_test=//g" -e "s/ .*//g"`
SWAP_ENABLE=`/bin/grep -o "swap_enable=.*" /proc/cmdline | /bin/sed -e "s/.*swap_enable=//g" -e "s/ .*//g"`
CARD_PATH=`/bin/grep -o "rel_path=.*" /proc/cmdline | /bin/sed -e "s/.*rel_path=//g" -e "s/ .*//g"`
if [ "$CARD_PATH" = "" ];then
        CARD_PATH="andboot"
fi;
if [ -d /sdcard/$CARD_PATH ] ; then
        card=/sdcard/$CARD_PATH
else
        card=/sdcard
fi
# -------------------------------

  if [ "$FSCK_CLEAN" == "1" ]; then
    echo "Remove dirty files"
    rm /sdcard/FSCK*.REC
    rm /sdcard/fsck*.rec
  fi

  if [ -f /sdcard/$card/extras/hosts ]; then
    echo "Copy hosts to remove ad"
    cp -fv $card/extras/hosts /data/etc/hosts
    cp -fv $card/extras/hosts /system/etc/hosts
  fi
  
  if [ "$3D_TEST" == "1" ] && [ -f $card/extras/3d/libGLES_qcom.so ] && [ -f $card/extras/3d/gralloc.msm7k.so ] && [ -f $card/extras/3d/build.prop ]; then
    echo "Mounting external mods."
    mount --bind $card/extras/3d/libGLES_qcom.so /system/lib/egl/libGLES_qcom.so
    mount --bind $card/extras/3d/gralloc.msm7k.so /system/lib/hw/gralloc.msm7k.so
    mount --bind $card/extras/3d/build.prop /system/build.prop
  fi

  if [ "$SWAP_ENABLE" == "1" ] && [ -f $card/swap ]; then
    echo "Mounting swapfile on $card/swap"
    swapon $card/swap
  fi
Then place your extra file in /sdcard/andboot/extras and extras/3d. Enable the options using "fsck_cleanup=1 3d_test=1 swap_enable=1" in your startup.txt and if the files exists the options will be enabled, if not then no worry it will just default to normal behavior. I hope this doesn't step on anyones toes and that adding these to the startup.txt isn't that bad of a thing.
__________________

Reply With Quote