op_osupgrade: give some advice on errors
authorGrazvydas Ignotas <notasas@gmail.com>
Sun, 12 Oct 2014 18:31:52 +0000 (21:31 +0300)
committerGrazvydas Ignotas <notasas@gmail.com>
Sun, 12 Oct 2014 18:31:52 +0000 (21:31 +0300)
somehow I thought I've added this message long ago..

recipes/pandora-system/pandora-scripts.bb
recipes/pandora-system/pandora-scripts/op_osupgrade.sh

index bd0db83..75ec856 100644 (file)
@@ -5,7 +5,7 @@ COMPATIBLE_MACHINE = "omap3-pandora"
 
 RDEPENDS = "bash sed gawk grep zenity"
 
-PR = "r161"
+PR = "r162"
 
 SRC_URI = " \
           file://op_bright.sh \
index 186515b..9968fe9 100644 (file)
@@ -46,7 +46,7 @@ kernelmd5_new=`md5sum $kernel_path`
 if test -e /tmp/upgrade_ok; then
   rm -f /tmp/upgrade_ok
   zenity --info --title="Upgrade complete" \
-    --text "All operations have been finished.\n\nYou can find a logfile at /tmp/upgrade.log"
+    --text "All operations have been finished.\n\nYou can find a log file at /tmp/upgrade.log"
   if [ "$kernelmd5_old" != "$kernelmd5_new" ]; then
     zenity --question --title="Kernel updated" \
       --text "The kernel has been updated,\nreboot is needed to start it.\n\nReboot now?" \
@@ -55,5 +55,9 @@ if test -e /tmp/upgrade_ok; then
   fi
 else
   zenity --error --title="Errors detected" \
-    --text "Errors detected during update.\n\nYou can find a logfile at /tmp/upgrade.log"
+    --text "Errors detected during update. Please check your Internet connection and try again.
+
+If long update process was interrupted, it is recommended to run the update again before a reboot.
+
+You can find a log file at /tmp/upgrade.log"
 fi