From: Grazvydas Ignotas Date: Thu, 17 Oct 2013 23:04:41 +0000 (+0300) Subject: op_osupgrade: show finish message X-Git-Tag: sz_160~42 X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?p=openpandora.oe.git;a=commitdiff_plain;h=68331cf465e085b4bf2909c67a35d1137deda6d7 op_osupgrade: show finish message this should close by itself, but sometimes it hangs, SIGPIPE misdelivered? At least show a message for that case. --- diff --git a/recipes/pandora-system/pandora-scripts.bb b/recipes/pandora-system/pandora-scripts.bb index c410dda..83f54f1 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 = "r148" +PR = "r149" SRC_URI = " \ file://op_paths.sh \ diff --git a/recipes/pandora-system/pandora-scripts/op_osupgrade.sh b/recipes/pandora-system/pandora-scripts/op_osupgrade.sh index 197433e..186515b 100644 --- a/recipes/pandora-system/pandora-scripts/op_osupgrade.sh +++ b/recipes/pandora-system/pandora-scripts/op_osupgrade.sh @@ -34,7 +34,9 @@ terminal -x bash -c \ echo "Checking for updated packages..."; \ opkg upgrade 2>&1; \ touch /tmp/upgrade_ok; \ - sync ) | tee /tmp/upgrade.log; \ + sync; \ + echo "Finished, press Ctrl-C to exit" ) \ + | tee /tmp/upgrade.log; \ test -e /tmp/upgrade_ok || sleep 3' sync