install both video scripts and hardlink to chosen one

This commit is contained in:
Gwenhael Le Moine 2014-03-01 08:18:03 +01:00
parent c957ebbd6d
commit f1822eb672

View file

@ -347,16 +347,14 @@ panic=10 rootfstype=ext4 rootflags=discard
EOF EOF
echo "setup video output" echo "setup video output"
echo $CUBIETRUCK_DISPLAY cp $BINARIES_DIR/cubie_configs/script-*.bin $DEST/image/sdcard/boot/
case $CUBIETRUCK_DISPLAY in ( cd $DEST/image/sdcard/boot/
VGA) # VGA case $CUBIETRUCK_DISPLAY in
cp $BINARIES_DIR/cubie_configs/script-vga.bin $DEST/image/sdcard/boot/script.bin VGA) ln script-vga.bin script.bin
;; ;;
HDMI) # HDMI HDMI) ln script-hdmi.bin script.bin
cp $BINARIES_DIR/cubie_configs/script-hdmi.bin $DEST/image/sdcard/boot/script.bin ;;
;; esac )
*) exit 1
esac
echo "Installing kernel" echo "Installing kernel"
cp $BINARIES_DIR/linux-sunxi/uImage $DEST/image/sdcard/boot/ cp $BINARIES_DIR/linux-sunxi/uImage $DEST/image/sdcard/boot/