#!/bin/bash #This is an example file how batocera-settings-get can be utilized #to read a value out from /userdata/system/batocera.conf value="$(batocera-settings-get power.switch.device)" ret=$? if [[ $ret -eq 0 ]]; then echo "Power Switch detected: '$value'" else echo "No Power Switch detected!" fi