blob: aec28900fa5dc32ac0e58cc82a9f6b5dbb29e53f [file] [log] [blame]
lh9ed821d2023-04-07 01:36:19 -07001#!/bin/sh
2#
3# $Id: lan.sh
4#
5
6update_type=`nv get update_type`
7fota_dm_vendor=`nv get fota_dm_vendor`
8if [ "$update_type" == "mifi_local" ]; then
9 echo "update_type: mifi_local"
10fi
11
12if [ "$update_type" == "mifi_fota" ]; then
13 echo "update_type: mifi_fota"
14 if [ "$fota_dm_vendor" == "zx" ]; then
15 fota_dm_zx &
16 else
17 fota_dm_gs &
18 fi
19fi
20
21if [ "$update_type" == "mdl_local" ]; then
22 echo "update_type: mdl_local"
23 localUpdate &
24fi
25
26if [ "$update_type" == "mdl_fota" ]; then
27 echo "update_type: mdl_fota"
28 if [ "$fota_dm_vendor" == "zx" ]; then
29 fota_dm_zx &
30 else
31 fota_dm_gs &
32 fi
33fi
34
35if [ "$update_type" == "none" ]; then
36 echo "update_type: none"
37fi