Update of /cvsroot/devil-linux/build/config/etc/initrd
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv29979/config/etc/initrd
Modified Files:
mount_cdrom
Log Message:
- fixed boot command line parameter DL_device (Frank Weis / Heiko)
Index: mount_cdrom
===================================================================
RCS file: /cvsroot/devil-linux/build/config/etc/initrd/mount_cdrom,v
retrieving revision 1.35
retrieving revision 1.36
diff -u -d -r1.35 -r1.36
--- mount_cdrom 6 Oct 2005 19:20:55 -0000 1.35
+++ mount_cdrom 19 Feb 2006 17:01:07 -0000 1.36
@@ -26,6 +26,16 @@
CDROM_SCSI=`find /dev -name "sr*" 2> /dev/null`
CDROMS="$DEVICES_IDE $CDROM_SCSI"
+DEVICE_USER=`awk -v RS=' ' -v FS='=' '/^DL_device=/ { print $2 }' /proc/cmdline`
+DEVICE_USER_ONLY=`grep -c DL_device /proc/cmdline`
+
+if [ "$DEVICE_USER_ONLY" != "0" ]; then
+ $RED
+ echo "Disabling automatic scanning for Devil-Linux iso image! Good Luck."
+ $NORMAL
+ CDROMS=$DEVICE_USER
+fi
+
if [ "$3" != "silent" ]; then
$GREEN
echo "Search list: $CDROMS"
@@ -62,6 +72,13 @@
DISCS_SCSI=`find /dev -name "sd*" 2> /dev/null`
DISCS="$DEVICES_IDE $DISCS_SCSI"
+if [ "$DEVICE_USER_ONLY" != "0" ]; then
+ $RED
+ echo "Disabling automatic scanning for Devil-Linux iso image! Good Luck."
+ $NORMAL
+ DISCS=$DEVICE_USER
+fi
+
for disk in $DISCS
do
echo -n "checking $disk "
|