Not writing dtoverlay=seeed-*mic-voicecard to /boot/config.txt

It is easier for debugging, and easier for switching cards around, too.
This commit is contained in:
Hin-Tak Leung 2021-04-19 18:15:57 +01:00
parent fdd67ea2c4
commit eab694c170

View file

@ -130,10 +130,10 @@ if [ "$overlay" ]; then
if [[ "$kernel_ver" =~ ^4\.19.*$ || "$kernel_ver" =~ ^5\.*$ ]]; then
for i in $RPI_HATS; do
if [ "$i" == "$overlay" ]; then
do_overlay $overlay 0
/bin/true #do_overlay $overlay 0
else
echo Uninstall $i ...
do_overlay $i 1
/bin/true #do_overlay $i 1
fi
done
fi