[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: how to be sure, that /dev/cdrom exists?



Hi .. 

thnx for your answer .. 

On Mon, Oct 28, 2002 at 11:07:07AM -0600, Steve Langasek wrote:
>> I'm maintaining pbbuttonsd for PPC-Notebooks.
>> I'm preparing the new upstream version and I stuck at this point, that
>> the pbbuttonsd wants to have a link /dev/cdrom.
>Can the software not function without /dev/cdrom?  Unless I'm mistaken,
>this software has plenty of uses even if there's no cdrom installed in
>the machine.

The softwares behavior on missing devices is cruel ;(
If the /dev/cdrom does not exists, it will stop starting ... 
To solve this, I see two ways, set the link /dev/cdrom or put the right
device into the the configfile .. 

>The best way to make sure the /dev/cdrom link is present is to check for
>it, use debconf to prompt the user if it's absent, and then create the
>link (possibly with some /proc autodetection) if the user agrees to let
>you create the link.

yes .... I think this, too ... thnx 

	Jan
-- 
  .''`.    Jan-Hendrik Palic     |
 : :' : ** Debian GNU/ Linux **  |   ** OpenOffice.org **       ,.. ,..
 `. `'   http://www.debian.org   | http://www.openoffice.org  ,: ..`   `
   `-  jan.palic@linux-debian.de |                           '  `  `

Attachment: pgpr8OGYArdmg.pgp
Description: PGP signature


Reply to: