[Feature][YUKUAI_patch]add 18.02 code
Only Configure: No
Affected branch: master
Affected module: unknow
Is it affected on both ZXIC and MTK: only ZXIC
Self-test: Yes
Doc Update: No
Change-Id: I7f71153004f10fc0ea5adfa083866aaeeb1053ac
diff --git a/rootfs/sbin/start_update_app.sh b/rootfs/sbin/start_update_app.sh
new file mode 100755
index 0000000..aec2890
--- /dev/null
+++ b/rootfs/sbin/start_update_app.sh
@@ -0,0 +1,37 @@
+#!/bin/sh
+#
+# $Id: lan.sh
+#
+
+update_type=`nv get update_type`
+fota_dm_vendor=`nv get fota_dm_vendor`
+if [ "$update_type" == "mifi_local" ]; then
+ echo "update_type: mifi_local"
+fi
+
+if [ "$update_type" == "mifi_fota" ]; then
+ echo "update_type: mifi_fota"
+ if [ "$fota_dm_vendor" == "zx" ]; then
+ fota_dm_zx &
+ else
+ fota_dm_gs &
+ fi
+fi
+
+if [ "$update_type" == "mdl_local" ]; then
+ echo "update_type: mdl_local"
+ localUpdate &
+fi
+
+if [ "$update_type" == "mdl_fota" ]; then
+ echo "update_type: mdl_fota"
+ if [ "$fota_dm_vendor" == "zx" ]; then
+ fota_dm_zx &
+ else
+ fota_dm_gs &
+ fi
+fi
+
+if [ "$update_type" == "none" ]; then
+ echo "update_type: none"
+fi
\ No newline at end of file