Add basic change for v1453
Change-Id: I9497a61bbc3717f66413794a4e7dee0347c0bc33
diff --git a/mbtk/rootfs/etc/init.d/mbtk_boot_normal b/mbtk/rootfs/etc/init.d/mbtk_boot_normal
new file mode 100755
index 0000000..5925837
--- /dev/null
+++ b/mbtk/rootfs/etc/init.d/mbtk_boot_normal
@@ -0,0 +1,36 @@
+#!/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
+}
+