Core38 updater: fix wait for pakfire end.
authorArne Fitzenreiter <arne_f@ipfire.org>
Tue, 8 Jun 2010 19:55:13 +0000 (21:55 +0200)
committerArne Fitzenreiter <arne_f@ipfire.org>
Tue, 8 Jun 2010 19:55:13 +0000 (21:55 +0200)
config/rootfiles/core/38/update.sh

index 1b1e86a..f15ea1f 100644 (file)
@@ -239,23 +239,23 @@ sed -i "s|$OLDVERSION|$NEWVERSION|g" /opt/pakfire/etc/pakfire.conf
 #
 # After pakfire has ended run it again and update the lists and do upgrade
 #
-echo '#!/bin/bash'                                        >  /tmp/pakfire_update
-echo 'while [ "$(ps -A | grep " update.sh")" != "" ]; do' >> /tmp/pakfire_update
-echo '    sleep 1'                                        >> /tmp/pakfire_update
-echo 'done'                                               >> /tmp/pakfire_update
-echo 'while [ "$(ps -A | grep " pakfire")" != "" ]; do'   >> /tmp/pakfire_update
-echo '    sleep 1'                                        >> /tmp/pakfire_update
-echo 'done'                                               >> /tmp/pakfire_update
-echo '/opt/pakfire/pakfire update -y --force'             >> /tmp/pakfire_update
-echo '/opt/pakfire/pakfire upgrade -y'                    >> /tmp/pakfire_update
-echo '/opt/pakfire/pakfire upgrade -y'                    >> /tmp/pakfire_update
-echo '/opt/pakfire/pakfire upgrade -y'                    >> /tmp/pakfire_update
-echo '/usr/bin/logger -p syslog.emerg -t core-upgrade-38 "Upgrade finished. If you use a customized grub.cfg"' >> /tmp/pakfire_update
-echo '/usr/bin/logger -p syslog.emerg -t core-upgrade-38 "Check it before reboot !!!"' >> /tmp/pakfire_update
-echo '/usr/bin/logger -p syslog.emerg -t core-upgrade-38 " *** Please reboot... *** "' >> /tmp/pakfire_update
-#
-chmod +x /tmp/pakfire_update
-/tmp/pakfire_update &
+echo '#!/bin/bash'                                        >  /tmp/pak_update
+echo 'while [ "$(ps -A | grep " update.sh")" != "" ]; do' >> /tmp/pak_update
+echo '    sleep 1'                                        >> /tmp/pak_update
+echo 'done'                                               >> /tmp/pak_update
+echo 'while [ "$(ps -A | grep " pakfire")" != "" ]; do'   >> /tmp/pak_update
+echo '    sleep 1'                                        >> /tmp/pak_update
+echo 'done'                                               >> /tmp/pak_update
+echo '/opt/pakfire/pakfire update -y --force'             >> /tmp/pak_update
+echo '/opt/pakfire/pakfire upgrade -y'                    >> /tmp/pak_update
+echo '/opt/pakfire/pakfire upgrade -y'                    >> /tmp/pak_update
+echo '/opt/pakfire/pakfire upgrade -y'                    >> /tmp/pak_update
+echo '/usr/bin/logger -p syslog.emerg -t core-upgrade-38 "Upgrade finished. If you use a customized grub.cfg"' >> /tmp/pak_update
+echo '/usr/bin/logger -p syslog.emerg -t core-upgrade-38 "Check it before reboot !!!"' >> /tmp/pak_update
+echo '/usr/bin/logger -p syslog.emerg -t core-upgrade-38 " *** Please reboot... *** "' >> /tmp/pak_update
+#
+chmod +x /tmp/pak_update
+/tmp/pak_update &
 #
 echo
 echo Please wait until pakfire has ended...