diff --git a/install.sh b/install.sh index 661b540..52f1ba7 100755 --- a/install.sh +++ b/install.sh @@ -31,8 +31,11 @@ fi # - check for /boot/overlays # - dtparam and dtoverlay is available errorFound=0 + +# Try Raspbian, Ubuntu, then LibreELEC location for OVERLAYS: OVERLAYS=/boot/overlays [ -d /boot/firmware/overlays ] && OVERLAYS=/boot/firmware/overlays +[ -d /flash/overlays ] && OVERLAYS=/flash/overlays if [ ! -d $OVERLAYS ] ; then echo "$OVERLAYS not found or not a directory" 1>&2 diff --git a/seeed-voicecard b/seeed-voicecard index ab31734..e437c87 100755 --- a/seeed-voicecard +++ b/seeed-voicecard @@ -24,8 +24,11 @@ set -x #exec 1>/var/log/$(basename $0).log 2>&1 export PATH=$PATH:/opt/vc/bin + +# Try Raspbian, Ubuntu, then LibreELEC location for OVERLAYS: OVERLAYS=/boot/overlays [ -d /boot/firmware/overlays ] && OVERLAYS=/boot/firmware/overlays +[ -d /flash/overlays ] && OVERLAYS=/flash/overlays #enable i2c interface dtparam -d $OVERLAYS i2c_arm=on diff --git a/uninstall.sh b/uninstall.sh index b74def9..916e728 100755 --- a/uninstall.sh +++ b/uninstall.sh @@ -62,8 +62,11 @@ echo "remove dtbos" for i in $RPI_HATS; do dtoverlay -r $i done + +# Try Raspbian, Ubuntu, then LibreELEC location for OVERLAYS: OVERLAYS=/boot/overlays [ -d /boot/firmware/overlays ] && OVERLAYS=/boot/firmware/overlays +[ -d /flash/overlays ] && OVERLAYS=/flash/overlays rm ${OVERLAYS}/seeed-2mic-voicecard.dtbo || true rm ${OVERLAYS}/seeed-4mic-voicecard.dtbo || true