slitaz-boot-scripts rev 16
Hack on cdrom dev (cmod 0666)
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Sun Jan 06 19:04:40 2008 +0100 (2008-01-06) |
parents | 14f813c4a28a |
children | 05e8997f04ee |
files | etc/init.d/hwconf.sh |
line diff
1.1 --- a/etc/init.d/hwconf.sh Wed Dec 12 13:46:37 2007 +0100 1.2 +++ b/etc/init.d/hwconf.sh Sun Jan 06 19:04:40 2008 +0100 1.3 @@ -34,12 +34,14 @@ 1.4 fi 1.5 fi 1.6 1.7 -# Creat /dev/cdrom if needed (symlink does not exist on LiveCD. 1.8 +# Creat /dev/cdrom if needed (symlink does not exist on LiveCD). Chmod hack 1.9 +# for Asunder and burnbox allowing all users to burn/rip CD/DVD. 1.10 # 1.11 +DRIVE_NAME=`cat /proc/sys/dev/cdrom/info | grep "drive name" | cut -f 3` 1.12 if [ ! "`readlink /dev/cdrom`" ]; then 1.13 - DRIVE_NAME=`cat /proc/sys/dev/cdrom/info | grep "drive name" | cut -f 3` 1.14 echo -n "Creating symlink : /dev/cdrom..." 1.15 ln -s /dev/$DRIVE_NAME /dev/cdrom 1.16 + chmod 0666 /dev/cdrom 1.17 status 1.18 fi 1.19 - 1.20 +chmod 0666 /dev/$DRIVE_NAME