| #!/bin/sh |
| |
| mbtk_start() { |
| echo "start : $1" > /dev/kmsg |
| |
| DEBUG_ENABLE=`getprop persist.mbtk.appdump 2> /dev/null` |
| if [ "$DEBUG_ENABLE" == "1" ];then |
| ulimit -c unlimited |
| fi |
| |
| if [ -e $1 ];then |
| # stdout and stderr > /dev/null |
| #$@ &> /dev/null & |
| (while ! $@ &> /dev/null; do echo "Restarting $@ ..."; done) & |
| fi |
| } |
| |
| start_service() { |
| echo "--mbtk server ready boot start--" > /dev/kmsg |
| |
| #mbtk_start /bin/mbtk_info_test |
| mbtk_start /bin/mbtk_logd |
| # i2s ×ó¶ÔÆë´«ÊäģʽÉèÖÃÖ¸Áî |
| #ubus call audio_if config_pcmexpert "{ 'frame_format': 1, 'invert_frame' : 0, 'frame_polarity' : 1, 'bitclk_polarity' : 0, 'fsyc_shift' : 1}" |
| echo "--mbtk server ready boot end--" > /dev/kmsg |
| } |
| |
| start_service |