From fc4e8e041e4ae5181793d6df4ad4a808de6f3fb8 Mon Sep 17 00:00:00 2001 From: Konpon96 Date: Sun, 26 Jul 2020 21:19:51 +0200 Subject: [PATCH] Fixed non-abolute path in WiFi disabling script (#1054) Signed-off-by: Konrad Ponichtera --- functions/wifi.bash | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/functions/wifi.bash b/functions/wifi.bash index b1027e873..a97da4f64 100644 --- a/functions/wifi.bash +++ b/functions/wifi.bash @@ -18,7 +18,7 @@ enable_disable_wifi() { elif [[ $1 == "disable" ]]; then echo -n "$(timestamp) [openHABian] Disabling WiFi... " if ! grep -qsE "^[[:space:]]*dtoverlay=(pi3-)?disable-wifi" /boot/config.txt; then - if echo "dtoverlay=disable-wifi" >> boot/config.txt; then echo "OK (Reboot needed)"; else echo "FAILED"; return 1; fi + if echo "dtoverlay=disable-wifi" >> /boot/config.txt; then echo "OK (Reboot needed)"; else echo "FAILED"; return 1; fi else echo "OK" fi