| #!/bin/sh /etc/rc.common |
| # Copyright (C) 2006-2011 OpenWrt.org |
| |
| START=98 |
| USE_PROCD=1 |
| |
| #MBTK_ADB=`getprop persist.mbtk.adb 2> /dev/null` |
| |
| mbtk_start() { |
| echo "start : $1" > /dev/kmsg |
| |
| if [ -e $1 ];then |
| procd_open_instance |
| procd_set_param command $@ |
| procd_close_instance |
| fi |
| } |
| |
| start_service() { |
| echo "--mbtk last boot start--" > /dev/kmsg |
| # mbtk_start /bin/mbtk_test |
| # mbtk_start /bin/mbtk_test "last" 123 |
| |
| DEBUG_ENABLE=`getprop persist.mbtk.appdump 2> /dev/null` |
| if [ "$DEBUG_ENABLE" == "1" ];then |
| ulimit -c unlimited |
| fi |
| |
| # [ -e /bin/mbtk_otad ] && mbtk_start /bin/mbtk_otad -a fota |
| |
| echo "--mbtk last boot end--" > /dev/kmsg |
| } |
| |