Skip to content

Instantly share code, notes, and snippets.

#!/bin/bash
DAEMON="splash"
soundDisabled() {
grep -qE "^[ ]*splash.screen.sound[ ]*=[ ]*0[ ]*$" /boot/batocera-boot.conf
}
do_angels_conversion ()
{
Use time+date-info for update
awk '{ $1=""; gsub(/[^[:digit:]]/,""); print }'
Output from:
5.27 2020/09/12 15:52
Will result
202009121552
### Need to reconfigure to work for ES --- do not work in libretro cores anymore then
<?xml version="1.0"?>
<inputList>
<inputConfig type="joystick" deviceName="idroid:con" deviceGUID="050000005c0a0000028500001b010000">
<input name="a" type="button" id="171" value="1" code="305" />
<input name="b" type="button" id="170" value="1" code="304" />
<input name="down" type="hat" id="0" value="4" />
<input name="hotkey" type="button" id="180" value="1" code="314" />
<input name="joystick1left" type="axis" id="0" value="1" code="0" />
<input name="joystick1up" type="axis" id="1" value="-1" code="1" />
#!/bin/bash
# Stop Splash Screen
[ "$1" = "start" ] || exit 0
abort_splash ()
{
if [ -f "/tmp/video.pid" ]
then
for i in {1..60}
#systemsetting="batocera-settings"
rb_wifi_configure() {
X=$1
if test "$X" = 1
then
settings_ssid="$(batocera-settings -command load -key wifi.ssid)"
settings_key="$(batocera-settings -command load -key wifi.key)"
settings_file="/var/lib/connman/batocera_wifi.config"
settings_name="default"
#!/bin/sh
#
# Auto connect bluetooth controllers
#
case "$1" in
start)
# Restores old settings saved in userdata
batocera-bluetooth restore
enabled="$(batocera-settings -command load -key controllers.bluetooth.enabled)"
#!/bin/bash
fbset | grep -qo 1024x768
ret=$?
if [ "$1" = "start" ]
then
[ $ret -eq 0 ] && reboot
fi
#!/bin/bash
BOOTCONF=/boot/batocera-boot.conf
if ! grep -qE '^[ ]*tinkerfix[ ]*=[ ]*true[ ]*$' "${BOOTCONF}"
then
exit 0
fi
file="/boot/reboot.tinkerfix"
/etc/init.d/S01date
real 0m 0.02s
user 0m 0.01s
sys 0m 0.00s
/etc/init.d/S01syslogd
real 0m 0.01s
user 0m 0.00s
sys 0m 0.00s
/etc/init.d/S02klogd
real 0m 0.01s
#!/bin/bash
BOOTCONF="/boot/batocera-boot.conf"
# only at start
test "$1" != "start" && exit 0
# only when resizing is wanted
grep -qE '^[ ]*autoresize[ ]*=[ ]*true[ ]*$' "${BOOTCONF}" || exit 0
# UI Output with dialog