blob: 5925837ffaffe75ac97fe745e83d767826f927b3 [file] [log] [blame]
#!/bin/sh /etc/rc.common
# Copyright (C) 2006-2011 OpenWrt.org
START=15
USE_PROCD=1
#MBTK_ADB=`getprop persist.mbtk.adb 2> /dev/null`
mbtk_start() {
echo "start : $1" > /dev/kmsg
procd_open_instance
procd_set_param command $@
procd_close_instance
}
mbtk_start_with_try() {
echo "start_with_try : $1" > /dev/kmsg
procd_open_instance
procd_set_param command $@
procd_set_param respawn 3600 3 0
procd_close_instance
}
start_service() {
echo "--mbtk normal boot start--" > /dev/kmsg
# mbtk_start /bin/mbtk_test
# mbtk_start /bin/mbtk_test "normal" 123
[ -e /bin/mbtk_adbd ] && mbtk_start /bin/mbtk_adbd
[ -e /bin/mbtk_servicesd ] && mbtk_start_with_try /bin/mbtk_servicesd
echo "--mbtk normal boot end--" > /dev/kmsg
}