;;
esac
- modprobe uvesafb mode_option=${UVESA_MODE:-800x600}-32 ${UVESA_OPTION:-mtrr=3 scroll=redraw}
+ [ "$HWACCEL" = "0" ] && bpp=16 || bpp=32
+ modprobe uvesafb mode_option=${UVESA_MODE:-800x600}-$bpp ${UVESA_OPTION:-mtrr=3 scroll=redraw}
}
function init_hal_gralloc()
# import cmdline variables
for c in `cat /proc/cmdline`; do
case $c in
- androidboot.hardware=*)
+ *.*=*)
;;
*=*)
eval $c
- case $c in
- HWACCEL=*)
- set_property debug.egl.hw $HWACCEL
- ;;
- DEBUG=*)
- set_property debug.logcat 1
- ;;
- esac
+ if [ -z "$1" ]; then
+ case $c in
+ HWACCEL=*)
+ set_property debug.egl.hw $HWACCEL
+ ;;
+ DEBUG=*)
+ [ -n "$DEBUG" ] && set_property debug.logcat 1
+ ;;
+ esac
+ fi
;;
esac
done