if [ -n "$BTUART_PORT" ]; then
set_property hal.bluetooth.uart $BTUART_PORT
chown bluetooth.bluetooth $BTUART_PORT
- btattach -P bcm -B $BTUART_PORT &
+ start btattach:-B$BTUART_PORT
log -t hciconfig -p i "`hciconfig`"
fi
}
;;
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