hc
2023-05-31 43fd8d44e8182b691c8ee61d487cec02ca11afd2
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
#!/bin/sh
 
start_sayinfo_os()
{
   printf "========== Start  sayinfo os ===========================\n"
 
    LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/oem/lib
    export LD_LIBRARY_PATH=/oem/lib
    
 
    cp /oem/sai_config/sai.q /userdata/sai.q -rf
    cp /oem/sai_config/sai_sdk_release.log /userdata/sai_sdk_release.log -rf
 
    mount --bind /userdata/sai.q /oem/sai_config/sai.q
    mount --bind /userdata/sai_sdk_release.log /oem/sai_config/sai_sdk_release.log
    
    /oem/enable_ipv6.sh &
   
    sleep 1
    /oem/sai_client &
 
    sleep 1
    /oem/cmcc_voip &  
    
     sleep 1
    /oem/qplay_client &
 
     sleep 1
    #/oem/rsdlclient &
    
    /usr/bin/ota_demo &
    
    sleep 1
    /oem/watch_sai_service.sh &
}
 
stop_sayinfo_os()
{
   printf "========== Stop talk_droid =============================\n"
    
    ps -ef | grep -iE "watch_sai_service" | grep -v "grep" | awk '{print $1}' | xargs kill -9
    ps -ef | grep -iE "sai_client" | grep -v "grep" | awk '{print $1}' | xargs kill -9
    ps -ef | grep -iE "cmcc_voip" | grep -v "grep" | awk '{print $1}' | xargs kill -9
    ps -ef | grep -iE "qplay_client" | grep -v "grep" | awk '{print $1}' | xargs kill -9
}
 
 
case $1 in
   "start") start_sayinfo_os ;;
   "stop")  stop_sayinfo_os  ;;
   *) echo "param should be [start|stop]" ;;
esac