OSDN Git Service

include libtxc_dxn to support S3TC texture compression for mesa
[android-x86/device-generic-common.git] / init.sh
diff --git a/init.sh b/init.sh
index 3e9a2c6..eacf3bb 100644 (file)
--- a/init.sh
+++ b/init.sh
@@ -61,7 +61,7 @@ function init_hal_bluetooth()
        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
 }
@@ -109,7 +109,8 @@ function init_uvesafb()
                        ;;
        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()
@@ -401,18 +402,20 @@ PRODUCT=$(cat $DMIPATH/product_name)
 # 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