Skip to content

Commit

Permalink
Fixed non-abolute path in WiFi disabling script (openhab#1054)
Browse files Browse the repository at this point in the history
Signed-off-by: Konrad Ponichtera <[email protected]>
  • Loading branch information
kponichtera authored Jul 26, 2020
1 parent f65b524 commit fc4e8e0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion functions/wifi.bash
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit fc4e8e0

Please sign in to comment.