hal-set-property from a callout broken

Phillip Susi psusi at cfl.rr.com
Sun Jan 15 09:40:13 PST 2006


Let's try this again, hopefully thunderbird won't reply to the wrong 
message this time. 

Danny Kukawka wrote:

>On Saturday 14 January 2006 20:39, Phillip Susi wrote:
>  
>
>>I'm trying to write a callout that will perform some extra configuration
>>of a device and set some properties on it in the hal database.  When I
>>try to call hal-set-property from within the callout, it prints this:
>>
>>error: libhal_ctx_init: (null): (null)
>>    
>>
>
>Could you post the complete script/binary and the related fdi-file? It's not 
>easy to say something without take a look at your code.
>
>Cheers,
>
>Danny
>_______________________________________________
>hal mailing list
>hal at lists.freedesktop.org
>http://lists.freedesktop.org/mailman/listinfo/hal
>
>  
>

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 15-storage-pktcdvd.fdi
Type: text/xml
Size: 340 bytes
Desc: not available
Url : http://lists.freedesktop.org/archives/hal/attachments/20060115/d1cc3ec7/15-storage-pktcdvd.bin
-------------- next part --------------
#!/bin/bash
set -e
DEVNUM=`pktsetup $HAL_PROP_BLOCK_DEVICE | cut -d ':' -f 2`
DEVNAME=/dev/pktcdvd/pktcdvd$DEVNUM
echo hal-set-property --udi $HAL_PROP_INFO_UDI --key block.device.pktcdvdnum --int $DEVNUM 
echo hal-set-property --udi $HAL_PROP_INFO_UDI --key block.device.pktcdvd --strlist $DEVNAME
sleep 2 ; hal-set-property --udi $HAL_PROP_INFO_UDI --key block.device.pktcdvdnum --int $DEVNUM ; hal-set-property --udi $HAL_PROP_INFO_UDI --key block.device.pktcdvd --strlist $DEVNAME






More information about the hal mailing list