hiby-r2ii-custom-firmware/custom-files/usr/bin/hiby_player.sh

19 lines
412 B
Bash
Raw Permalink Normal View History

2023-11-09 14:48:18 -06:00
#!/bin/sh
killall hiby_player &>/dev/null
killall -9 hiby_player &>/dev/null
if [ -f "/usr/bin/batd" ]; then
killall batd &>/dev/null
killall -9 batd &>/dev/null
/usr/bin/batd -v -s -t5 -o /mnt/sd_0/batlog.txt &
fi
if [ -f /mnt/sd_0/startup.sh ]; then
/bin/sh -c '/bin/sh /mnt/sd_0/startup.sh' 2>/mnt/sd_0/startup_err.log >/mnt/sd_0/startup_out.log
fi
/usr/bin/hiby_player
sleep 1
reboot