From: Chih-Wei Huang Date: Mon, 9 May 2016 15:55:25 +0000 (+0800) Subject: init.sh: only do set_property on the init stage X-Git-Tag: android-x86-6.0-r1~33 X-Git-Url: http://git.osdn.net/view?p=android-x86%2Fdevice-generic-common.git;a=commitdiff_plain;h=9425a96fd759ce75940288cf9084c48e7a721fff init.sh: only do set_property on the init stage --- diff --git a/init.sh b/init.sh index 3e02a24..7ed51de 100644 --- a/init.sh +++ b/init.sh @@ -402,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