This commit is contained in:
Simon Long 2020-10-05 18:45:52 +01:00
parent a64cfdcf0e
commit afd52609a2

View File

@ -1220,7 +1220,7 @@ do_fan() {
fi
if [ $RET -eq 0 ]; then
if ! grep -q "dtoverlay=gpio-fan" $CONFIG ; then
if ! tail -1 $CONFIG | grep -q "\\[all\\]" ; then
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"