OSDN Git Service

Test build 20151202
[android-x86/device-generic-common.git] / init.sh
diff --git a/init.sh b/init.sh
index 96cbaa3..2dbe15d 100644 (file)
--- a/init.sh
+++ b/init.sh
@@ -1,5 +1,5 @@
 #
-# Copyright (C) 2013 The Android-x86 Open Source Project
+# Copyright (C) 2013-2015 The Android-x86 Open Source Project
 #
 # License: GNU Public License v2 or later
 #
@@ -12,6 +12,10 @@ function set_property()
 
 function init_misc()
 {
+       # device information
+       setprop ro.product.manufacturer "$(cat $DMIPATH/sys_vendor)"
+       setprop ro.product.model "$PRODUCT"
+
        # a hack for USB modem
        lsusb | grep 1a8d:1000 && eject
 
@@ -398,6 +402,14 @@ for c in `cat /proc/cmdline`; do
                        ;;
                *=*)
                        eval $c
+                       case $c in
+                               HWACCEL=*)
+                                       set_property debug.egl.hw $HWACCEL
+                                       ;;
+                               DEBUG=*)
+                                       set_property debug.logcat 1
+                                       ;;
+                       esac
                        ;;
        esac
 done