From fce9a1a98e2a2b843c90965235aeee6c80dfd8c8 Mon Sep 17 00:00:00 2001 From: Igor Pecovnik Date: Sat, 26 Mar 2016 15:04:08 +0100 Subject: [PATCH] Workaround for C2 - init FB at rc.local --- boards.sh | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/boards.sh b/boards.sh index d093fce283..3c31baaaad 100644 --- a/boards.sh +++ b/boards.sh @@ -57,11 +57,17 @@ install_board_specific (){ # Armada if [[ $BOARD == "armada" ]] ; then - chroot $CACHEDIR/sdcard /bin/bash -c "apt-get -y -qq remove lirc linux-sound-base alsa-base alsa-utils bluez>/dev/null 2>&1" - fi + # Odroid C2 + if [[ $BOARD == "odroidc2" ]] ; then + install -m 755 $SRC/lib/scripts/c2_init.sh $CACHEDIR/sdcard/etc/ + sed -e 's/exit 0//g' -i $CACHEDIR/sdcard/etc/rc.local + echo "/etc/c2_init.sh" >> $CACHEDIR/sdcard/etc/rc.local + echo "exit 0" >> $CACHEDIR/sdcard/etc/rc.local + fi + # Udoo if [[ $BOARD == "udoo" ]] ; then