device/generic/common
修訂 | 6cf5d7f2a7aa19b3c1de487890eafe21884f6bc5 (tree) |
---|---|
時間 | 2019-12-27 16:30:51 |
作者 | Chih-Wei Huang <cwhuang@linu...> |
Commiter | Chih-Wei Huang |
init: allow to disable SetupWizard
SetupWizard could be disabled by adding SETUPWIZARD=0 to cmdline,
or DEBUG > 0 unless SETUPWIZARD=1.
@@ -541,11 +541,13 @@ for c in `cat /proc/cmdline`; do | ||
541 | 541 | case $c in |
542 | 542 | DEBUG=*) |
543 | 543 | [ -n "$DEBUG" ] && set_property debug.logcat 1 |
544 | + [ "$DEBUG" = "0" ] || SETUPWIZARD=${SETUPWIZARD:-0} | |
544 | 545 | ;; |
545 | 546 | DPI=*) |
546 | 547 | set_property ro.sf.lcd_density "$DPI" |
547 | 548 | ;; |
548 | 549 | esac |
550 | + [ "$SETUPWIZARD" = "0" ] && set_property ro.setupwizard.mode DISABLED | |
549 | 551 | fi |
550 | 552 | ;; |
551 | 553 | esac |