Fix typo in fan setting

This commit is contained in:
Simon Long 2020-11-08 11:37:54 +00:00
parent 954d9bf332
commit 99a8ba5c74
2 changed files with 8 additions and 2 deletions

6
debian/changelog vendored
View File

@ -1,3 +1,9 @@
raspi-config (20201108) buster; urgency=medium
* Fix typo in fan controller
-- Simon Long <simon@raspberrypi.com> Sun, 08 Nov 2020 11:37:08 +0000
raspi-config (20201027) buster; urgency=medium raspi-config (20201027) buster; urgency=medium
* Add function to check whether board has an analog output jack * Add function to check whether board has an analog output jack

View File

@ -1267,9 +1267,9 @@ do_fan() {
if ! tail -1 $CONFIG | grep -q "\\[all\\]" ; then if ! tail -1 $CONFIG | grep -q "\\[all\\]" ; then
sed $CONFIG -i -e "\$a[all]" sed $CONFIG -i -e "\$a[all]"
fi fi
sed $CONFIG -i -e "\$adtoverlay=gpio-fan,gpio_pin=$GPIO,temp=$TEMP" sed $CONFIG -i -e "\$adtoverlay=gpio-fan,gpiopin=$GPIO,temp=$TEMP"
else else
sed $CONFIG -i -e "s/^.*dtoverlay=gpio-fan.*/dtoverlay=gpio-fan,gpio_pin=$GPIO,temp=$TEMP/" sed $CONFIG -i -e "s/^.*dtoverlay=gpio-fan.*/dtoverlay=gpio-fan,gpiopin=$GPIO,temp=$TEMP/"
fi fi
ASK_TO_REBOOT=1 ASK_TO_REBOOT=1
if [ "$INTERACTIVE" = True ]; then if [ "$INTERACTIVE" = True ]; then