[Pkg-alsa-devel] Bug#249539: /etc/modprobe.d/alsa is a floating symlink

Bastian Kleineidam Bastian Kleineidam <calvin@debian.org>, 249539@bugs.debian.org
Tue, 1 Jun 2004 20:53:02 +0200


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi,

the /etc/alsa/modutils stuff should be obsolete. The error is that those
old files are only removed if you uninstall the package, not if you
upgrade it from an older version.

So I suggest putting this piece of code in alsa-base.postinst:

if [ "$1" = "config" -o "$1" = "reconfigure" ]; then
    for file in /etc/alsa/modutils/1.0 /etc/alsa/modutils/0.9 \
        /etc/alsa/modutils/1.0.debconf-backup /etc/alsa/modutils/0.9.debconf-backup \
        /etc/modprobe.d/alsa /etc/modutils/alsa; do
        { [ -e "$file" ] || [ -L "$file" ]; } && rm -f "$file"
    done
fi

cheers, Bastian

- -- 
  ,''`.    Bastian Kleineidam  .  calvin (at) debian.org
 : :' :
 `. `'    GnuPG Schlüssel http://kampfwurst.net/gpgkey.txt
   `-

Men are from Mars. Women are from Venus. Computers are from hell.

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)

iD8DBQFAvNCOeBwlBDLsbz4RAuJtAJ9TyMVnyh4OgjzrTPG+8WEbsaBCGgCeIRwq
9UHlgfypV6xcg0+ipSMt2Cg=
=n2N5
-----END PGP SIGNATURE-----