Update of /cvsroot/devil-linux/build/scripts/scripts
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv11368/scripts/scripts
Modified Files:
pre_init
Log Message:
upgrade initrd after iso upgrade
Index: pre_init
===================================================================
RCS file: /cvsroot/devil-linux/build/scripts/scripts/pre_init,v
retrieving revision 1.15
retrieving revision 1.16
diff -u -d -r1.15 -r1.16
--- pre_init 15 Feb 2004 17:49:09 -0000 1.15
+++ pre_init 17 Feb 2004 00:16:25 -0000 1.16
@@ -22,6 +22,7 @@
GREEN="echo -en \\033[1;32m"
YELLOW="echo -en \\033[1;33m"
RED="echo -en \\033[1;31m"
+BLUE="echo -en \\033[1;34m"
trap ":" INT QUIT TSTP
@@ -29,6 +30,16 @@
echo "Changed Root"
$NORMAL
+# check the DL ISO got upgraded
+if [ -e /shm/dl_iso_replaced ]; then
+ $BLUE
+ echo "Upgrading InitRD"
+ $NORMAL
+ cp -fp /boot/initrd.gz /initrd/mnt/
+ sync
+ reboot -f
+fi
+
echo "Un-Mounting old Filesystems"
umount /initrd/dev &> /dev/null
umount /initrd/floppy &> /dev/null
|