Fix missing rw/ro mount parameter on ct'server update
authorArne Fitzenreiter <arne_f@ipfire.org>
Wed, 16 Sep 2009 15:04:42 +0000 (17:04 +0200)
committerArne Fitzenreiter <arne_f@ipfire.org>
Wed, 16 Sep 2009 15:04:42 +0000 (17:04 +0200)
config/rootfiles/core/31/update.sh

index 1780a1325cdd2c06f43976df251588913416f595..87cc51923687537259e1513e39fb3c5f7fd60bb6 100644 (file)
@@ -30,6 +30,9 @@ MOUNT=`grep "kernel" /boot/grub/grub.conf | tail -n 1`
 # Nur den letzten Parameter verwenden
 echo $MOUNT > /dev/null
 MOUNT=$_
+if [ ! $MOUNT == "rw" ]; then
+       MOUNT="ro"
+fi
 #
 # check if we the backup file already exist
 if [ -e /var/ipfire/backup/core-upgrade_$KVER.tar.bz2 ]; then