option to enable display control during installation and some bugfixes (#119)

This commit is contained in:
Masoko
2024-05-24 19:27:11 +03:00
committed by GitHub
parent ad6b240c14
commit 360a980732
2 changed files with 21 additions and 6 deletions

View File

@@ -132,6 +132,12 @@ update_config(){
fi
sed -i "s/rpi-MQTT-monitor/${TOPIC}/" src/config.py
printf "Do you need to control your monitors? (default is No): "
read CONTROL
if [[ "$CONTROL" =~ ^([yY][eE][sS]|[yY])$ ]]; then
sed -i "s/display_control = False/display_control = True/g" src/config.py
fi
print_green "+ config.py is updated with provided settings"
# Get the local version