Callout not called when USB disk removed?

Andrey Borzenkov arvidjaar at mail.ru
Mon Jul 10 10:14:40 PDT 2006


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

On Monday 10 July 2006 20:34, Peter Valdemar Mørch wrote:
> I have an external USB drive. The callout gets called/run on insert, but
> not on removal of the USB drive. Where did I go wrong? :D
>
> details:
>  > cat /etc/hal/fdi/policy/devLinks.fdi
>
> <?xml version="1.0" encoding="UTF-8"?> <!-- -*- SGML -*- -->
>
> <deviceinfo version="0.2">
>    <device>
>      <match key="info.udi"
> string="/org/freedesktop/Hal/devices/storage_serial_Maxtor_4_D040H2_1200E00
>0022237521"> <append key="info.callouts.add"
> type="strlist">devLinks.pl</append> </match>
>    </device>
>

why do you expect "add" callout be called on remove event? Add callout to 
info.callouts.remove key. 

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

iD8DBQFEsosAR6LMutpd94wRAsmwAJ9+J5BfNns5jtF7D6hEqXygAJZI/gCeJNnv
qZGOdXb7+qk+T8Q7xx5HSRs=
=Exar
-----END PGP SIGNATURE-----


More information about the hal mailing list