19 lines
412 B
Bash
19 lines
412 B
Bash
|
#!/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
|