This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
DAEMON="splash" | |
soundDisabled() { | |
grep -qE "^[ ]*splash.screen.sound[ ]*=[ ]*0[ ]*$" /boot/batocera-boot.conf | |
} | |
do_angels_conversion () | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Use time+date-info for update | |
awk '{ $1=""; gsub(/[^[:digit:]]/,""); print }' | |
Output from: | |
5.27 2020/09/12 15:52 | |
Will result | |
202009121552 | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### 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" /> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Stop Splash Screen | |
[ "$1" = "start" ] || exit 0 | |
abort_splash () | |
{ | |
if [ -f "/tmp/video.pid" ] | |
then | |
for i in {1..60} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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)" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
fbset | grep -qo 1024x768 | |
ret=$? | |
if [ "$1" = "start" ] | |
then | |
[ $ret -eq 0 ] && reboot | |
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
BOOTCONF=/boot/batocera-boot.conf | |
if ! grep -qE '^[ ]*tinkerfix[ ]*=[ ]*true[ ]*$' "${BOOTCONF}" | |
then | |
exit 0 | |
fi | |
file="/boot/reboot.tinkerfix" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
NewerOlder