From c7938357289cc7d346e0ce02e479edaef5858d53 Mon Sep 17 00:00:00 2001 From: Grazvydas Ignotas Date: Sun, 12 Oct 2014 21:31:52 +0300 Subject: [PATCH] op_osupgrade: give some advice on errors somehow I thought I've added this message long ago.. --- recipes/pandora-system/pandora-scripts.bb | 2 +- recipes/pandora-system/pandora-scripts/op_osupgrade.sh | 8 ++++++-- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/recipes/pandora-system/pandora-scripts.bb b/recipes/pandora-system/pandora-scripts.bb index bd0db83..75ec856 100644 --- a/recipes/pandora-system/pandora-scripts.bb +++ b/recipes/pandora-system/pandora-scripts.bb @@ -5,7 +5,7 @@ COMPATIBLE_MACHINE = "omap3-pandora" RDEPENDS = "bash sed gawk grep zenity" -PR = "r161" +PR = "r162" SRC_URI = " \ file://op_bright.sh \ diff --git a/recipes/pandora-system/pandora-scripts/op_osupgrade.sh b/recipes/pandora-system/pandora-scripts/op_osupgrade.sh index 186515b..9968fe9 100644 --- a/recipes/pandora-system/pandora-scripts/op_osupgrade.sh +++ b/recipes/pandora-system/pandora-scripts/op_osupgrade.sh @@ -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 -- 2.39.5