blob: 983f5fafdd109b72d3a7593e7c1655c8738bea75 [file] [log] [blame]
#!/bin/sh
mbtk_start() {
echo "start : $1" > /dev/kmsg
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