From 99a8ba5c74104a4c8f90c40fb4ac13df64d53fe0 Mon Sep 17 00:00:00 2001 From: Simon Long Date: Sun, 8 Nov 2020 11:37:54 +0000 Subject: [PATCH] Fix typo in fan setting --- debian/changelog | 6 ++++++ raspi-config | 4 ++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/debian/changelog b/debian/changelog index 77e8815..58e255e 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,9 @@ +raspi-config (20201108) buster; urgency=medium + + * Fix typo in fan controller + + -- Simon Long Sun, 08 Nov 2020 11:37:08 +0000 + raspi-config (20201027) buster; urgency=medium * Add function to check whether board has an analog output jack diff --git a/raspi-config b/raspi-config index 2cde526..8a2fab3 100755 --- a/raspi-config +++ b/raspi-config @@ -1267,9 +1267,9 @@ do_fan() { if ! tail -1 $CONFIG | grep -q "\\[all\\]" ; then sed $CONFIG -i -e "\$a[all]" 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 - 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 ASK_TO_REBOOT=1 if [ "$INTERACTIVE" = True ]; then