OSDN Git Service
(root)
/
android-x86
/
device-generic-common.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
f96a177
)
init: allow to disable SetupWizard
author
Chih-Wei Huang
<cwhuang@linux.org.tw>
Fri, 27 Dec 2019 07:30:51 +0000
(15:30 +0800)
committer
Chih-Wei Huang
<cwhuang@linux.org.tw>
Fri, 27 Dec 2019 07:30:51 +0000
(15:30 +0800)
SetupWizard could be disabled by adding SETUPWIZARD=0 to cmdline,
or DEBUG > 0 unless SETUPWIZARD=1.
init.sh
patch
|
blob
|
history
diff --git
a/init.sh
b/init.sh
index
1e5b5ea
..
0a73bd3
100644
(file)
--- a/
init.sh
+++ b/
init.sh
@@
-541,11
+541,13
@@
for c in `cat /proc/cmdline`; do
case $c in
DEBUG=*)
[ -n "$DEBUG" ] && set_property debug.logcat 1
+ [ "$DEBUG" = "0" ] || SETUPWIZARD=${SETUPWIZARD:-0}
;;
DPI=*)
set_property ro.sf.lcd_density "$DPI"
;;
esac
+ [ "$SETUPWIZARD" = "0" ] && set_property ro.setupwizard.mode DISABLED
fi
;;
esac