#!/bin/bash #This is an example file how batocera-settings-set can be utilized #to activate UART in /boot/config.txt # Check status of file and make it writeable [[ -w /boot/config.txt ]] && batocera-es-swissknife --remount batocera-settings-set -f /boot/config.txt enable_uart 1 ret=$? if [[ $ret -eq 0 ]]; then echo "UART activated, uncommented enable_uart" batocera-settings-set -f /boot/config.txt enable_uart 1 else echo "Key: enable_uart not found" echo "Not a Raspberry System?" fi