slitaz-boot-scripts rev 91
rcS: add cdrom= parameter
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Tue May 20 15:58:16 2008 +0000 (2008-05-20) |
parents | 4c2fb6625173 |
children | 4ac520b89d9b |
files | etc/init.d/rcS |
line diff
1.1 --- a/etc/init.d/rcS Sun May 18 17:37:24 2008 +0200 1.2 +++ b/etc/init.d/rcS Tue May 20 15:58:16 2008 +0000 1.3 @@ -57,6 +57,9 @@ 1.4 # Add also /dev/cdrom to fstab if entry dos not exist. 1.5 # 1.6 DRIVE_NAME=`cat /proc/sys/dev/cdrom/info | grep "drive name" | cut -f 3` 1.7 +if grep -q " cdrom=" /proc/cmdline; then 1.8 + DRIVE_NAME=`cat /proc/cmdline | sed 's/.* cdrom=\([^ ]*\).*/\1/'` 1.9 +fi 1.10 if [ -n "$DRIVE_NAME" -a ! "`readlink /dev/cdrom`" ]; then 1.11 echo -n "Creating symlink : /dev/cdrom..." 1.12 ln -s /dev/$DRIVE_NAME /dev/cdrom