diff --git a/UpdateRootfs.sh.in b/UpdateRootfs.sh.in index d80c399..8832933 100644 --- a/UpdateRootfs.sh.in +++ b/UpdateRootfs.sh.in @@ -123,6 +123,40 @@ fi chown -Rv mysql:nogroup /var/mysql chown -Rv postgres:postgres /var/lib/pgsql #============================================================================== +# Get Graphics resolution and set dtb to the right resolution + +DONE=0 +YRES="$(fbset | awk '/geom/ {print $3}')" +XRES="$(fbset | awk '/geom/ {print $2}')" + +echo "XRES $XRES, YRES $YRES" + +if [ "$XRES" == "480" -a "$YRES" == "272" ]; then + echo "4.3 Inch" + sh /root/DisplayTo_4_3inch.sh + DONE=1 +fi + +if [ "$XRES" == "800" -a "$YRES" == "480" ]; then + echo "7 Inch" + sh /root/DisplayTo_7inch.sh + DONE=1 +fi + +if [ "$XRES" == "1280" -a "$YRES" == "800" ]; then + echo "10 Inch" + sh /root/DisplayTo_10inch.sh + DONE=1 +fi + +if [ "$DONE" == "0" ]; then + echo "Unknown Display Resolution" +fi + + + + +#================= echo "Update Done, pls. reboot System" umount /mnt echo "."