Update firstrun

This commit is contained in:
Igor Pečovnik 2014-10-08 10:55:08 +02:00
parent b57e532dd5
commit 94c0303c50

View file

@ -51,7 +51,7 @@ case "$1" in
sed -e 's/ether/ether '$NEWMAC'/g' -i /etc/network/interfaces.hostapd
# Cubietruck exception
# if HDMI is attached during boot, set default screen output to HDMI
if [ -n "$(dmesg | grep ParseEDID)" ] && [ -n "/boot/cubietruck.bin" ]; then
if [ -n "$(dmesg | grep ParseEDID)" ] && [ -f "/boot/cubietruck.bin" ]; then
bin2fex /boot/cubietruck.bin /tmp/tmp.fex
sed -e 's/screen0_output_type.*/screen0_output_type = 3/g' -i /tmp/tmp.fex
fex2bin /tmp/tmp.fex /boot/cubietruck.bin