Browse Source

Solve the problem that usb does not save the log

chunyu 4 years ago
parent
commit
29d4648921
1 changed files with 3 additions and 1 deletions
  1. 3 1
      output/board/ark1668e_c281/buildroot/target/opt/usb/mountusb.sh

+ 3 - 1
output/board/ark1668e_c281/buildroot/target/opt/usb/mountusb.sh

@@ -6,8 +6,10 @@ sync
 
 if [ ! -d "/mnt/usb/logs" ]; then
         cp -rf /usr/log/logs /mnt/usb/
+	sync
 fi
 
 if [ -f "/mnt/usb/awtk_update/update.sh" ]; then
         /mnt/usb/awtk_update/update.sh
-fi
+	sync
+fi