Compared files  

Left
/fw/dreame.vacuum.p2041o/4.1.2_1107/xout/_root/usr/bin/miio_sdk.sh
Last modified2021-04-23 09:59:54
Size1.3 Kb (72 Lines)
EncodingLatin 1 - ANSI (CP1252) default
Right
/fw/dreame.vacuum.p2041/4.3.2_1108/xout/_root/usr/bin/miio_sdk.sh
Last modified2021-11-04 08:52:09
Size1.4 Kb (74 Lines)
EncodingUnicode 8 bits (UTF-8) - without signature autodetected


   Comparison Statistics  

Detailed Statistics

All Changes
 BlocksLines
Unchanged252
Inserted00
Deleted00
Ignored00
Changed142




   Comparison Details  

21 skipped lines
22 22 }
23 23  
24 24 do_restart() {
25     rm -f ${MIIO_COUNTRY_FILE} ${MIIO_UID_FILE} > /dev/null 2>&1 25     avacmd iot '{"type":"iot", "notify":"close_server"}' &
26   26     sleep 0.2
27     # restart miio sdk if has wifi.conf 27  
28     if [ -f ${WIFI_CONF_FILE} -o ! -f ${MIIO_TOKEN_FILE} ] 28     touch ${RESTART_MIIO} && sync
29     then 29     # stop miio processes
30         avacmd iot '{"type":"iot", "notify":"close_server"}' & 30     /etc/rc.d/miio.sh stop
31         sleep 0.2 31     sleep 0.1
32   32  
33         touch ${RESTART_MIIO} 33     # must remove device.token wifi.conf device.uid when reset miio
34         rm -f ${WIFI_CONF_FILE} 34     rm -f ${MIIO_TOKEN_FILE} ${WIFI_CONF_FILE} ${MIIO_UID_FILE} > /dev/null 2>&1
35         sync 35     # clean some miio configuration files
36         killall miio_client_helper_nomqtt.sh 36     rm -f ${MIIO_CONFIG_DB_FILE} > /dev/null 2>&1
37         killall miio_recv_line miio_agent 37     # remove device.country, otherwise config net from oversea to cn,it will still set oversea
38         killall miio_client 38     rm -f ${MIIO_COUNTRY_FILE} > /dev/null 2>&1
  39     sync
39         sleep 0.2 40     sleep 0.1
  41  
  42     # start miio processes
40         /etc/rc.d/miio.sh 43     /etc/rc.d/miio.sh
41         (sleep 2 && rm -f ${RESTART_MIIO}) & 44     (sleep 2 && rm -f ${RESTART_MIIO}) &
42         sleep 0.2 45     sleep 0.2
43         avacmd iot '{"type":"iot", "notify":"open_server"}' & 46     avacmd iot '{"type":"iot", "notify":"open_server"}' &
44     fi  
45 47 }
46 48  
47 49 do_check_netcfg() {
25 skipped lines

   Text comparison Options  

Syntax colouring language used: Shell
Match character case: yes.
Match line endings: no.
Match spaces

At start of lines: yes,
In middle of lines: yes,
At end of lines: yes.
Blank lines as empty lines: no.
Activate comparison algorithm
At word level: yes,
At character level: no.


   Legend  

Unchanged lineExample of unchanged line
Modified lineExample of modified line
Added lineExample of added line
Removed lineExample of removed line
Ignored lineExample of ignored line