also sprach Matt Zimmerman <email address hidden> [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...
--=20
.''`. martin f. krafft <email address hidden>
: :' : proud Debian developer, admin, user, and author
`. `'`
`- Debian - when you have better things to do than fixing a system
=20
Invalid/expired PGP subkeys? Use subkeys.pgp.net as keyserver!
--mhOzvPhkurUs4vA9
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: Digital signature
Content-Disposition: inline
Message-ID: <email address hidden>
Date: Wed, 9 Feb 2005 01:55:37 +0100
From: martin f krafft <email address hidden>
To: Matt Zimmerman <email address hidden>
Cc: <email address hidden>
Subject: Re: Bug#282344: apt-cdrom: please change default CD-ROM mountpoint
--mhOzvPhkurUs4vA9 Disposition: inline Transfer- Encoding: quoted-printable
Content-Type: text/plain; charset=us-ascii
Content-
Content-
also sprach Matt Zimmerman <email address hidden> [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...
--=20
.''`. martin f. krafft <email address hidden>
: :' : proud Debian developer, admin, user, and author
`. `'`
`- Debian - when you have better things to do than fixing a system
=20
Invalid/expired PGP subkeys? Use subkeys.pgp.net as keyserver!
--mhOzvPhkurUs4vA9 pgp-signature; name="signature .asc" Description: Digital signature Disposition: inline
Content-Type: application/
Content-
Content-
-----BEGIN PGP SIGNATURE-----
JIgvIgzMMSnURAr tkAJ0UPhunEUBOs I2/CJY5c8um8uc6 xQCgiywl NEpqhb68=
Version: GnuPG v1.2.5 (GNU/Linux)
iD8DBQFCCV+
buuOgPV6Zpq18AK
=Orue
-----END PGP SIGNATURE-----
--mhOzvPhkurUs4 vA9--