Move setup_dpi after detect_hardware so that a target can customize dpi
based on the detection result.
mount_data
mount_sdcard
setup_tslib
+setup_dpi
post_detect
if [ -n "$DEBUG" ]; then
#
# By Chih-Wei Huang <cwhuang@linux.org.tw>
-# Last updated 2010/10/14
+# Last updated 2012/02/08
#
# License: GNU Public License
# We explicitely grant the right to use the scripts
# with Android-x86 project.
#
-[ -n "$DPI" ] && echo ro.sf.lcd_density=$DPI >> default.prop
+setup_dpi()
+{
+ if [ -n "$DPI" ]; then
+ grep -v ro.sf.lcd_density default.prop > tmp.prop
+ echo ro.sf.lcd_density=$DPI >> tmp.prop
+ mv tmp.prop default.prop
+ fi
+}