diff --git a/scripts/firstrun b/scripts/firstrun index 65cec2783d..6848793f2b 100644 --- a/scripts/firstrun +++ b/scripts/firstrun @@ -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