This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "IPFire 2.x development tree".
The branch, master has been updated
via c588f1ae684e0a32891f3fa8b25955a151195174 (commit)
via d85fb69b4b87d14cfb37489a5d3e9ee2932ab4c3 (commit)
from d7aea5bdecae31f62fee176bdccb4ff3d8be26a6 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit c588f1ae684e0a32891f3fa8b25955a151195174
Author: Arne Fitzenreiter <arne_f(a)ipfire.org>
Date: Sun Dec 19 21:34:14 2010 +0100
Updater: add /etc/issue.
commit d85fb69b4b87d14cfb37489a5d3e9ee2932ab4c3
Author: Arne Fitzenreiter <arne_f(a)ipfire.org>
Date: Sun Dec 19 21:24:06 2010 +0100
Updater: run pakfire update and upgrade after update to 2.9.
-----------------------------------------------------------------------
Summary of changes:
config/rootfiles/core/44/filelists/files | 1 +
config/rootfiles/core/44/update.sh | 34 ++++++++++++++++++++++++++---
2 files changed, 31 insertions(+), 4 deletions(-)
Difference in files:
diff --git a/config/rootfiles/core/44/filelists/files b/config/rootfiles/core/44/filelists/files
index cd2840e..f41dd5d 100644
--- a/config/rootfiles/core/44/filelists/files
+++ b/config/rootfiles/core/44/filelists/files
@@ -1,4 +1,5 @@
etc/system-release
+etc/issue
etc/rc.d/init.d/checkfs
etc/rc.d/init.d/checkfstab
etc/rc.d/init.d/firewall
diff --git a/config/rootfiles/core/44/update.sh b/config/rootfiles/core/44/update.sh
index ff04e55..ba3c80a 100644
--- a/config/rootfiles/core/44/update.sh
+++ b/config/rootfiles/core/44/update.sh
@@ -241,7 +241,33 @@ perl -e "require '/var/ipfire/lang.pl'; &Lang::BuildCacheLang"
# Delete old lm-sensor modullist to force search at next boot
#
rm -rf /etc/sysconfig/lm_sensors
-/usr/bin/logger -p syslog.emerg -t kernel "Upgrade finished. If you use a customized grub.cfg"
-/usr/bin/logger -p syslog.emerg -t kernel "Check it before reboot !!!"
-/usr/bin/logger -p syslog.emerg -t kernel " *** Please reboot... *** "
-touch /var/run/need_reboot
+#
+# Change version of Pakfire.conf
+#
+OLDVERSION=`grep "version = " /opt/pakfire/etc/pakfire.conf | cut -d'"' -f2`
+NEWVERSION="2.9"
+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/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-44 "Upgrade finished. If you use a customized grub.cfg"' >> /tmp/pak_update
+echo '/usr/bin/logger -p syslog.emerg -t core-upgrade-44 "Check it before reboot !!!"' >> /tmp/pak_update
+echo '/usr/bin/logger -p syslog.emerg -t core-upgrade-44 " *** Please reboot... *** "' >> /tmp/pak_update
+echo 'touch /var/run/need_reboot ' >> /tmp/pak_update
+#
+chmod +x /tmp/pak_update
+/tmp/pak_update &
+echo
+echo Please wait until pakfire has ended...
+echo
hooks/post-receive
--
IPFire 2.x development tree