home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / boot / i386 / root / usr / lib / YaST2 / bin / create_udev_cdrom_rules < prev    next >
Text File  |  2006-11-29  |  293b  |  12 lines

  1. #!/bin/bash
  2. /usr/lib/YaST2/bin/y2base /usr/share/YaST2/clients/create_udev_cdrom.ycp ncurses
  3. FILES=`hwinfo --cdrom 2>/dev/null | grep "SysFS ID:" | \
  4.        sed -e "s:^[^/]*::" -e "s:^:/sys:" -e "s:$:/uevent:"`
  5. if [ -n "$FILES" ]
  6. then
  7.     for i in $FILES
  8.     do
  9.     echo add > $FILES
  10.     done
  11. fi
  12.