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

Bug#282344: apt-cdrom: please change default CD-ROM mountpoint



also sprach Matt Zimmerman <mdz@debian.org> [2005.02.09.0140 +0100]:
> Not exactly; it would need to parse /etc/fstab to know which one to use.

True, although I wonder how many systems have a /media/cdrom
directory and continue to use /cdrom.

Anyway, parsing /etc/fstab should not be that hard, no?

if grep -q '[[:space:]]/media/cdrom' /etc/fstab; then
  if grep -q '[[:space:]]/cdrom' /etc/fstab; then
    # use /cdrom
  else
    # use /media/cdrom
  fi
else
  # use /cdrom
fi

This is conservative...

-- 
 .''`.     martin f. krafft <madduck@debian.org>
: :'  :    proud Debian developer, admin, user, and author
`. `'`
  `-  Debian - when you have better things to do than fixing a system
 
Invalid/expired PGP subkeys? Use subkeys.pgp.net as keyserver!

Attachment: signature.asc
Description: Digital signature


Reply to: