From 824361cf1d3c145e839db699603be95b5a40e0a6 Mon Sep 17 00:00:00 2001 From: Calin Crisan Date: Mon, 3 Oct 2016 19:19:38 +0300 Subject: [PATCH] odroidc1: fix some lib dirs --- board/odroidc1/postscript.sh | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/board/odroidc1/postscript.sh b/board/odroidc1/postscript.sh index bbea68cf37..b963a45140 100755 --- a/board/odroidc1/postscript.sh +++ b/board/odroidc1/postscript.sh @@ -11,3 +11,15 @@ cp $BOARD_DIR/boot.ini $BOOT_DIR # disable software updating sed -i 's/enable_update true/enable_update false/' $TARGET/etc/motioneye.conf + +# fix some lib dirs +if ! [ -L $TARGET/lib/arm-linux-gnueabihf ]; then + mv $TARGET/lib/arm-linux-gnueabihf/* $TARGET/lib + rmdir $TARGET/lib/arm-linux-gnueabihf + ln -s /lib $TARGET/lib/arm-linux-gnueabihf +fi + +if ! [ -L $TARGET/usr/lib/arm-linux-gnueabihf ]; then + ln -s /usr/lib $TARGET/usr/lib/arm-linux-gnueabihf +fi +