blob: ba26a21a95eee4ed95cc72ae72d67b422928fce8 [file] [log] [blame]
b.liud440f9f2025-04-18 10:44:31 +08001#!/bin/sh /etc/rc.common
2# Copyright (C) 2006-2011 OpenWrt.org
3
4START=98
5USE_PROCD=1
6
7#MBTK_ADB=`getprop persist.mbtk.adb 2> /dev/null`
8
9mbtk_start() {
10 echo "start : $1" > /dev/kmsg
11
12 if [ -e $1 ];then
13 procd_open_instance
14 procd_set_param command $@
15 procd_close_instance
16 fi
17}
18
19start_service() {
20 echo "--mbtk last boot start--" > /dev/kmsg
21# mbtk_start /bin/mbtk_test
22# mbtk_start /bin/mbtk_test "last" 123
b.liu35419042025-06-24 15:25:00 +080023
24 DEBUG_ENABLE=`getprop persist.mbtk.appdump 2> /dev/null`
25 if [ "$DEBUG_ENABLE" == "1" ];then
26 ulimit -c unlimited
27 fi
b.liud440f9f2025-04-18 10:44:31 +080028
b.liu32a35782025-04-23 13:47:48 +080029 # [ -e /bin/mbtk_otad ] && mbtk_start /bin/mbtk_otad -a fota
b.liud440f9f2025-04-18 10:44:31 +080030
31 echo "--mbtk last boot end--" > /dev/kmsg
32}
33