]> git.ipfire.org Git - ipfire-2.x.git/commitdiff
Change version to 2.7 on core38.
authorArne Fitzenreiter <arne_f@ipfire.org>
Mon, 7 Jun 2010 22:08:09 +0000 (00:08 +0200)
committerArne Fitzenreiter <arne_f@ipfire.org>
Mon, 7 Jun 2010 22:08:09 +0000 (00:08 +0200)
config/rootfiles/core/38/filelists/files
config/rootfiles/core/38/update.sh

index 6c7f0c60c9d2431a9357d669f135e7b466912b1b..8290804c4dea816a6f58fb0b33215459a93ac791 100644 (file)
@@ -1,4 +1,5 @@
 etc/system-release
 etc/system-release
+etc/issue
 etc/e2fsck.conf
 etc/httpd/conf/vhosts.d/ipfire-interface.conf
 etc/rc.d/init.d/leds
 etc/e2fsck.conf
 etc/httpd/conf/vhosts.d/ipfire-interface.conf
 etc/rc.d/init.d/leds
index 59a718c7b9e13b020f11624169b5c88b7d4a8725..9af7aad156cea769e8bc2c620589e2b869a527d2 100644 (file)
 . /opt/pakfire/lib/functions.sh
 /usr/local/bin/backupctrl exclude >/dev/null 2>&1
 #
 . /opt/pakfire/lib/functions.sh
 /usr/local/bin/backupctrl exclude >/dev/null 2>&1
 #
+OLDVERSION=`grep "version = " /opt/pakfire/etc/pakfire.conf | cut -d'"' -f2`
+#
+# Test if we running on xen
+#
+uname -r | grep "ipfire-xen";
+if [ ${?} = 0 ]; then
+       #Xen Kernel is active
+       NEWVERSION="2.7-xen"
+else
+       #Normal Kernel
+       NEWVERSION="2.7"
+fi
+#
 KVER="2.6.32.15"
 ROOT=`grep "root=" /boot/grub/grub.conf | cut -d"=" -f2 | cut -d" " -f1 | tail -n 1`
 MOUNT=`grep "kernel" /boot/grub/grub.conf | tail -n 1`
 KVER="2.6.32.15"
 ROOT=`grep "root=" /boot/grub/grub.conf | cut -d"=" -f2 | cut -d" " -f1 | tail -n 1`
 MOUNT=`grep "kernel" /boot/grub/grub.conf | tail -n 1`
@@ -220,6 +233,9 @@ echo "cryptodev" >> /etc/sysconfig/modules
 echo "" >> /etc/sysconfig/modules
 echo "# End /etc/sysconfig/modules" >> /etc/sysconfig/modules
 chmod 644 /etc/sysconfig/modules
 echo "" >> /etc/sysconfig/modules
 echo "# End /etc/sysconfig/modules" >> /etc/sysconfig/modules
 chmod 644 /etc/sysconfig/modules
+# Change version of Pakfire.conf
+#
+sed -i "s|$OLDVERSION|$NEWVERSION|g" /opt/pakfire/etc/pakfire.conf
 #
 # This core-update need a reboot
 /usr/bin/logger -p syslog.emerg -t core-upgrade-38 "Upgrade finished. If you use a customized grub.cfg"
 #
 # This core-update need a reboot
 /usr/bin/logger -p syslog.emerg -t core-upgrade-38 "Upgrade finished. If you use a customized grub.cfg"