Package: ndiswrapper
Version: 1.60-8
User: [email protected]
Tags: patch
Usertags: colis-shparser

Hi,

the command "postrm purge" may fail after having already removed
the config file or directory /etc/ndiswrapper. In this case, the
package will be in the state "Config-files", but some of its
config files have disappeared, which at least is strange.

This happens when /etc/modprobe.d/ndiswrapper.conf is a directory
since in this case the rm will fail.

Possible solutions are:

1: replace [ -e /etc/modprobe.d/ndiswrapper.conf ]  by
   [ -f /etc/modprobe.d/ndiswrapper.conf ]

2: Inverse the order of the two conditionals:

    if [ -e /etc/modprobe.d/ndiswrapper.conf ]; then
        rm /etc/modprobe.d/ndiswrapper.conf
    fi
    if [ -e /etc/ndiswrapper ]; then
        rm -r /etc/ndiswrapper
    fi

-Nicolas and Ralf.
-- 
Ralf Treinen
Institut de Recherche en Informatique Fondamentale
Équipe Preuves, Programmes et Systèmes
Université Paris Diderot, Paris, France.
http://www.irif.fr/~treinen/

Reply via email to