op_osupgrade: show finish message
authorGrazvydas Ignotas <notasas@gmail.com>
Thu, 17 Oct 2013 23:04:41 +0000 (02:04 +0300)
committerGrazvydas Ignotas <notasas@gmail.com>
Thu, 17 Oct 2013 23:04:41 +0000 (02:04 +0300)
this should close by itself, but sometimes it hangs, SIGPIPE
misdelivered? At least show a message for that case.

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

index c410dda..83f54f1 100644 (file)
@@ -5,7 +5,7 @@ COMPATIBLE_MACHINE = "omap3-pandora"
 
 RDEPENDS = "bash sed gawk grep zenity"
 
-PR = "r148"
+PR = "r149"
 
 SRC_URI = " \
           file://op_paths.sh \
index 197433e..186515b 100644 (file)
@@ -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