]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/blobdiff - config/rootfiles/core/28/update.sh
Fix core28 updater kernel version
[people/pmueller/ipfire-2.x.git] / config / rootfiles / core / 28 / update.sh
index 24f47df742da90f8ea69afae14b87486a4d4f8d1..6c61902c3dbb7dd80b56d09f54b4811d9923a910 100755 (executable)
@@ -25,9 +25,9 @@
 /usr/local/bin/backupctrl exclude >/dev/null 2>&1
 #
 OLDVERSION=`grep "version = " /opt/pakfire/etc/pakfire.conf | cut -d'"' -f2`
-NEWVERSION="2.3"
+NEWVERSION="2.5"
 #
-KVER="2.6.27.20"
+KVER="2.6.27.23"
 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`
 # Nur den letzten Parameter verwenden
@@ -35,10 +35,10 @@ echo $MOUNT > /dev/null
 MOUNT=$_
 #
 # check if we the backup file already exist
-if [ -e /var/ipfire/backup/coreupdate28_$KVER.tar.gz ]; then
+if [ -e /var/ipfire/backup/core-upgrade_$KVER.tar.bz2 ]; then
     echo Moving backup to backup-old ...
-    mv -f /var/ipfire/backup/coreupdate28_$KVER.tar.gz \
-       /var/ipfire/backup/coreupdate28_$KVER-old.tar.gz
+    mv -f /var/ipfire/backup/core-upgrade_$KVER.tar.bz2 \
+       /var/ipfire/backup/core-upgrade_$KVER-old.tar.bz2
 fi
 echo First we made a backup of all files that was inside of the
 echo update archive. This may take a while ...
@@ -49,8 +49,8 @@ echo etc/issue >> /opt/pakfire/tmp/ROOTFILES
 echo opt/pakfire/etc/pakfire.conf >> /opt/pakfire/tmp/ROOTFILES
 echo etc/sysconfig/lm_sensors >> /opt/pakfire/tmp/ROOTFILES
 #
-tar czvf /var/ipfire/backup/coreupdate28_$KVER.tar.gz.tar.gz \
-   -T /opt/pakfire/tmp/ROOTFILES --exclude='#*' -C / > /dev/null 2>&1
+tar cjvf /var/ipfire/backup/core-upgrade_$KVER.tar.bz2 \
+    -C / -T /opt/pakfire/tmp/ROOTFILES --exclude='#*' > /dev/null 2>&1
 echo
 echo Update IPfire to $NEWVERSION ...
 # Remove old kernel, configs, initrd, modules ...
@@ -122,7 +122,7 @@ sed -i "s|$OLDVERSION|$NEWVERSION|g" /opt/pakfire/etc/pakfire.conf
 #
 # Create new issue
 #
-echo IPFire v$NEWVERSION - www.ipfire.org > /etc/issue
+echo IPFire v$NEWVERSION beta2 - www.ipfire.org > /etc/issue
 echo =================================== >> /etc/issue
 echo \\n running on \\s \\r \\m >> /etc/issue
 #