Getting hal to invoke callouts

Andrey Borzenkov arvidjaar at mail.ru
Sat Jan 7 03:37:38 PST 2006


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

On Saturday 07 January 2006 06:54, Phillip Susi wrote:
> I have been trying to get the hal to make a callout to an external
> utility required to configure detected cdrw drives, and can't get it to
> to work.  I have created the following hal fdi policy file:
>
> <?xml version="1.0" encoding="UTF-8"?> <!-- -*- SGML -*- -->
>
> <deviceinfo version="0.2">
>   <device>
>     <match key="storage.cdrom.cdrw" bool="true">
>       <match key="block.is_volume" bool="false">
>         <merge key="info.callouts.add"
> type="string">/home/psusi/dump</merge> </match>

you need append, callouts is strlist. Attempt to set it to string is silently 
ignored.

<append key="info.callouts.add"> type="strlist">/home/psusi/dump</append>

- -andrey

>     </match>
>   </device>
> </deviceinfo>
>
> dump is an executable shell script I wrote just to dump the parameters
> and environment to log files so I can inspect them, but the log files
> never get created.  What am I doing wrong with the policy files?
>
> My goal here is to write a policy file that will have the hal run
> pktsetup on detected cdrw devices to create a packet writing virtual
> device, which allows you to mount a cdrw disc in full read/write mode
> like a giant floppy.  I also need to get the hal to invoke a callout
> when media is detected in such drives to look at the track info and
> decide if it has been formatted for packet mode, and if so, apply some
> merge fdi rules to change block.device, block.major, block.minor, and
> block.sysfs_path so that the disc is correctly auto mounted in
> read/write mode via the pktcdvd device node.
>
>
> _______________________________________________
> hal mailing list
> hal at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/hal
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (GNU/Linux)

iD8DBQFDv6gCR6LMutpd94wRAsX6AKCWH3sEgDsqlrGVH5gxnPBbB9EKKACgnJMM
BA0PjFITok1iVix+4h+n7kE=
=epfk
-----END PGP SIGNATURE-----


More information about the hal mailing list