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
}
function init_hal_camera()
{
- [ -c /dev/video0 ] || modprobe vivi
+ return
}
function init_hal_gps()
# 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