op_osupgrade.sh: Added lockfile
authorMichael Mrozek <EvilDragon@openpandora.org>
Tue, 16 Oct 2012 11:58:47 +0000 (13:58 +0200)
committerMichael Mrozek <EvilDragon@openpandora.org>
Tue, 16 Oct 2012 12:02:38 +0000 (14:02 +0200)
recipes/pandora-system/pandora-scripts/op_osupgrade.sh

index b3053cc..af57350 100644 (file)
@@ -1,5 +1,5 @@
 #!/bin/bash
 zenity --question --title="Update Firmware OS" --text="This little tool helps you to keep your firmware OS up-to-date with the latest tweaks.\n\nPlease note that this is in TESTING state and\nmight break parts of your system with unstable packages!\n\nMake sure your Pandora is connected to the internet and click the Upgrade-Button.\n\n" --ok-label="Upgrade OS" --cancel-label="Quit"
-opkg update 2>&1 | zenity --progress --auto-close --pulsate --title "Updating feedlist..."
-opkg upgrade 2>&1 | zenity --text-info --title "Updating packages..." --width=600
-zenity --info --title="Upgrade complete" --text "All operations have been finished."
\ No newline at end of file
+opkg update 2>&1 | tee /tmp/upgrade.log | zenity --progress --auto-close --pulsate --title "Updating feedlist..."
+opkg upgrade 2>&1 | tee -a /tmp/upgrade.log | zenity --text-info --title "Updating packages..." --width=600
+zenity --info --title="Upgrade complete" --text "All operations have been finished.\n\nYou can find a logfile in /tmp/upgrade.log"
\ No newline at end of file