From 53c0db449b711f8e5d7662605837b882827e2450 Mon Sep 17 00:00:00 2001 From: Hin-Tak Leung Date: Thu, 27 Aug 2020 13:15:03 +0100 Subject: [PATCH] make the overlay un-install directory configurable, for Ubuntu --- uninstall.sh | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/uninstall.sh b/uninstall.sh index c9491d6..2d28681 100755 --- a/uninstall.sh +++ b/uninstall.sh @@ -55,9 +55,12 @@ echo "remove dtbos" for i in $RPI_HATS; do dtoverlay -r $i done -rm /boot/overlays/seeed-2mic-voicecard.dtbo || true -rm /boot/overlays/seeed-4mic-voicecard.dtbo || true -rm /boot/overlays/seeed-8mic-voicecard.dtbo || true +OVERLAYS=/boot/overlays +[ -d /boot/firmware/overlays ] && OVERLAYS=/boot/firmware/overlays + +rm ${OVERLAYS}/seeed-2mic-voicecard.dtbo || true +rm ${OVERLAYS}/seeed-4mic-voicecard.dtbo || true +rm ${OVERLAYS}/seeed-8mic-voicecard.dtbo || true echo "remove alsa configs" rm -rf /etc/voicecard/ || true