Re: ipw srcipts for hal



On Mon, 2007-06-25 at 14:01 +0200, dragoran wrote:
> Dan Williams wrote:
> > On Mon, 2007-06-25 at 13:33 +0200, dragoran wrote:
> >   
> >> yelo_3 wrote:
> >>     
> >>> I've had a look at your implementation. I have a question:
> >>> Think if someone has 2 ipw cards (I don't know if it is possible, but 
> >>> think it is, since it is an example)
> >>> will he have 2 killswitches in hal, or just one?
> >>> If it has two, the script is executed two times, so it would be better 
> >>> to pass to the script the interface to kill, instead of doing a for 
> >>> among all interfaces which have a killswitch
> >>>       
> >> thats a good question... but It should be possible  (pccard? , but dunno 
> >> if intel offers that) but than both would have the same killswitch 
> >> anyway, but hal would show two.
> >>     
> >
> > I think the scripts will provide multiple killswitches, one for each ipw
> > device found.  And once ipwWirelessCtl uses the UDI that's passed to it,
> > it should work fine with multiple killswitches.
> >
> >   
> yes but we use
> 
> /org/freedesktop/Hal/devices/ipw_wlan_switch
> 
> as uid which would be the same for multiple killswitches we need something more unique  

The killswitch should be attached to the wireless card object, not the
computer (for Bluetooth, you need to attach to the computer, as the
device disappears when killed, for Dell laptops, the device isn't
attached to a specific device).

-- 
Bastien Nocera <hadess hadess net> 




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]