rpi-config: Add option to enable One-wire interface

Signed-off-by: Khem Raj <raj.khem@gmail.com>
This commit is contained in:
Khem Raj
2022-05-02 18:41:27 -07:00
committed by Andrei Gherzan
parent c97a9e34ab
commit 6afb32b00e
2 changed files with 20 additions and 0 deletions

View File

@@ -290,6 +290,12 @@ do_deploy() {
echo "# Enable WM8960" >> $CONFIG
echo "dtoverlay=wm8960-soundcard" >> $CONFIG
fi
# W1-GPIO - One-Wire Interface
if [ "${ENABLE_W1}" = "1" ]; then
echo "# Enable One-Wire Interface" >> $CONFIG
echo "dtoverlay=w1-gpio" >> $CONFIG
fi
}
do_deploy:append:raspberrypi3-64() {