Compared files  

Left
/fw/dreame.vacuum.p2041/4.1.2_1041/xout/_root/usr/bin/factory_reset.sh
Last modified2020-09-29 16:43:14
Size1.1 Kb (64 Lines)
EncodingUnicode 8 bits (UTF-8) - without signature autodetected
Right
/fw/dreame.vacuum.p2041/4.1.2_1051/xout/_root/usr/bin/factory_reset.sh
Last modified2020-11-04 14:13:54
Size1.5 Kb (77 Lines)
EncodingUnicode 8 bits (UTF-8) - without signature autodetected


   Comparison Statistics  

Detailed Statistics

All Changes
 BlocksLines
Unchanged1048
Inserted110
Deleted24
Ignored00
Changed631




   Comparison Details  

11 skipped lines
12 12     touch ${FACTORY_RESET}
13 13 fi
14 14  
15    
16 if [ "$1" != "rescue_ava_brick" ] 15 if [ "$1" == "rescue_ava_brick" ]
17 16 then
18     avacmd media '{"type":"media", "cmd":"play", "file_number":26,"mode":2}' &  
19 else  
20    
21 17     RET="ZH"
22 18     if [ -f ${MEDIA_LANGUAGE_IN_USE_PATH} ];then
23 19         RET=`cat ${MEDIA_LANGUAGE_IN_USE_PATH}`
10 skipped lines
34 30     fi
35 31  
36 32     ogg123 ${MUSIC_PATH}
  33 elif [ "$1" == "monitor_rescue_brick" ]
  34 then
  35     mkdir -p /tmp/miio/
  36     mkdir -p /tmp/wifi/
  37  
  38     cp -dfR /data/config/miio/* /tmp/miio/
  39     cp -dfR /data/config/wifi/* /tmp/wifi/
  40     sync
  41 else
  42     avacmd media '{"type":"media", "cmd":"play", "file_number":26,"mode":2}' &
37 43 fi
38 44  
39 45 sleep 3
40 46  
41 47 if [ -f ${OTA_START_MAKR} ]
42 48 then
43     log  "Machines are being upgraded" 49     log  "Machines are being upgraded"
44     exit -1 50     exit -1
45 51 else
46    
47 52     rm -rf /data/*
48 53     mkdir -p /data/log
49 54     tar xf ${FACTORY_RESET_PKG} -C /data/
50       55         TAR_RET=$?
  56  
  57     if [ "$1" == "monitor_rescue_brick" ]
51     if [ $? -eq 0 ]; then 58     then
  59         cp -dfR /tmp/miio/* /data/config/miio/
  60         cp -dfR /tmp/wifi/* /data/config/wifi/
52         echo  `date "+%Y-%m-%d %H:%M:%S"` "factory reset by user success" > /data/log/factory_reset.log 61         echo `date` "factory reset bmonitor rescue brick" > /data/log/factory_reset.log
  62         touch ${QUIET_START_MARK}
53 63     else
  64         if [ ${TAR_RET} -eq 0 ]; then
  65         echo  `date "+%Y-%m-%d %H:%M:%S"` "factory reset by user success" > /data/log/factory_reset.log
  66         else
54         echo  `date "+%Y-%m-%d %H:%M:%S"` "factory reset by user fail" > /data/log/factory_reset.log 67         echo  `date "+%Y-%m-%d %H:%M:%S"` "factory reset by user fail" > /data/log/factory_reset.log
  68         fi
55 69     fi
56       70  
57 71     sync
58 72     sleep 5
59 73     sync
60       74  
61     reboot 75     reboot
62    
63 76 fi
64 77  

   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