slitaz-boot-scripts rev 49

Chmod cdrom on each boot...
author Christophe Lincoln <pankso@slitaz.org>
date Mon Mar 10 10:43:27 2008 +0100 (2008-03-10)
parents 07a3b7b65370
children 5535068053f4
files etc/init.d/rcS
line diff
     1.1 --- a/etc/init.d/rcS	Sun Mar 09 23:28:30 2008 +0000
     1.2 +++ b/etc/init.d/rcS	Mon Mar 10 10:43:27 2008 +0100
     1.3 @@ -56,16 +56,13 @@
     1.4  
     1.5  else #logged
     1.6  
     1.7 -# Creat /dev/cdrom if needed (symlink does not exist on LiveCD). Chmod
     1.8 -# hack for Asunder and burnbox allowing all users to burn/rip CD/DVD.
     1.9 +# Creat /dev/cdrom if needed (symlink does not exist on LiveCD).
    1.10  # Add also /dev/cdrom to fstab if entry dos not exist.
    1.11  #
    1.12  DRIVE_NAME=`cat /proc/sys/dev/cdrom/info | grep "drive name" | cut -f 3`
    1.13  if [ -n "$DRIVE_NAME" -a ! "`readlink /dev/cdrom`" ]; then
    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 -	chmod 0666 /dev/$DRIVE_NAME
    1.18  	status
    1.19  fi
    1.20  if ! grep -q "/dev/cdrom" /etc/fstab; then
    1.21 @@ -74,6 +71,14 @@
    1.22  		>> /etc/fstab
    1.23  	status
    1.24  fi
    1.25 +# Chmod hack on each boot for Asunder and burnbox. Allowing all users
    1.26 +# to burn/rip CD/DVD.
    1.27 +if [ -n "$DRIVE_NAME" -a "`readlink /dev/cdrom`" ]; then
    1.28 +	echo -n "Chmoding cdrom device..."
    1.29 +	chmod 0666 /dev/cdrom
    1.30 +	chmod 0666 /dev/$DRIVE_NAME
    1.31 +	status
    1.32 +fi
    1.33  
    1.34  # Handle kernel cmdline parameter modprobe=<module_list> 
    1.35  if grep -q " modprobe=" /proc/cmdline; then