Ñò
+z2Wc @ sO d d k Z d d k l Z l Z d d k l Z d Z d d d YZ d S( i˙˙˙˙N( t HW_SYSTEMt Card( t
getDeviceTypes org.freedesktop.Hal.Devicet NCBackendHalc B sG e Z d Z d Z d Z d Z d Z d Z d Z RS( c C sL t i | _ | i i d d | _ t i | i d | _ g | _ d S( Ns org.freedesktop.Hals /org/freedesktop/Hal/Managers org.freedesktop.Hal.Manager( t dbust SystemBust _dbusBust
get_objectt
halManagerObjt Interfacet
halManagert cards( t self( ( s; /usr/share/system-config-network/netconfpkg/NCBackendHal.pyt __init__ s c C s. | i | d t p d S| i | d t S( Nt dbus_interface( t PropertyExistst HAL_DEVICE_IFACEt Nonet GetProperty( R t objt prop( ( s; /usr/share/system-config-network/netconfpkg/NCBackendHal.pyt getProperty$ s c C s | } x | o t | oy | i i d | } | i | d } | d j o | | i | d f S| i | d } | d j o Pn | } q Wd S( Ns org.freedesktop.Hals info.vendors info.products info.parent( t lenR R R R ( R t udit parentUdiR t vendort
new_parentUdi( ( s; /usr/share/system-config-network/netconfpkg/NCBackendHal.pyt getVendor) s
c C s | } x| | ot t | og | i i d | } | i | d } | d j o | S| i | d } | d j o Pn | } q Wd S( Ns org.freedesktop.Hals info.buss info.parent( R R R R R ( R R R R t busR ( ( s; /usr/share/system-config-network/netconfpkg/NCBackendHal.pyt getBus7 s
c C s | } x| | ot t | og | i i d | } | i | d } | d j o | S| i | d } | d j o Pn | } q Wd S( Ns org.freedesktop.Hals info.linux.drivers info.parent( R R R R R ( R R R R t driverR ( ( s; /usr/share/system-config-network/netconfpkg/NCBackendHal.pyt getDriverE s
c
C sk | i i d | } | i | d } | d j o3| i | d o | i | d } | d j o d Sd d k l } | } | i | d } t | } | i | } | oĞ | }
t |
_ | |
_ | |
_
d |
_ y+ | i | } | o d
| |
_ n Wn n Xt
|
_ | i | d } | d j o | i | |
i _ n |
Sn d S( Ns org.freedesktop.Hals linux.subsystemt nets
net.interfaces net.arp_proto_hw_idi i˙˙˙˙( t getHardwareFactoryt s %s %ss net.physical_device( R R R R t netconfpkg.NCHardwareFactoryR! R t getHardwareClassR t Namet Typet DescriptionR R t StatusR t
ModuleName(
R R R t categoryt arp_proto_hw_idR! t hwft namet htypet hwct hwR t index( ( s; /usr/share/system-config-network/netconfpkg/NCBackendHal.pyt
getDevicesS s:
c C s] g | _ | i i d } x8 | D]0 } | i | } | o | i i | q" q" W| i S( NR ( R R
t FindDeviceByCapabilityR2 t append( R t udiListR t ncard( ( s; /usr/share/system-config-network/netconfpkg/NCBackendHal.pyt
probeCardsw s ( t __name__t
__module__R
R R R R R2 R7 ( ( ( s; /usr/share/system-config-network/netconfpkg/NCBackendHal.pyR s $( ( R t netconfpkg.NCHardwareR R t netconfpkg.NC_functionsR R R ( ( ( s; /usr/share/system-config-network/netconfpkg/NCBackendHal.pyt