#!/bin/bash #This is an example file how batocera-settings-set can be utilized #to activate UART in /boot/config.txt batocera-settings-set -f /boot/config.txt enable_uart 1 ret=$? if [[ $ret -eq 0 ]]; then echo "UART activated, uncommented enable_uart" elif [[ $ret -eq 2 ]]; then echo "File is write protected!" echo "Remounting boot-partition with write permissions..." mount -o remount, rw /boot batocera-settings-set -f /boot/config.txt enable_uart 1 if [[ $ret -eq 0 ]]; then echo "UART activated, uncommented enable_uart" fi else echo "Key: enable_uart not found" echo "Not a Raspberry System?" fi