Add configuration of power controller INT pin
@@ -247,5 +247,16 @@ if [ "$V" -lt 20210130 ]; then
fi
fi
+if [ "$V" -lt 20210530 ]; then
+ grep "powercontroller.Powercontroller" /newroot/etc/audiocontrol2.conf >/dev/null
+ if [ "$?" != 0 ]; then
+ echo "Adding power controller configuration"
+ cat >>/newroot/etc/audiocontrol2.conf <<EOT
+
+[controller:ac2.plugins.control.powercontroller.Powercontroller]
+intpin=2
+EOT
+ fi
+fi
echo "Upgrading configuration files done"
