Ñò +z2Wc@sddZddkZddklZlZlZlZdefd„ƒYZdefd„ƒYZdS( sModule handlingiÿÿÿÿNi(tConftodicttBadFiletVersionMismatcht ConfModulescBs†eZdZdd„Zd„Zd„Zd„Zd„Zd„Zd„Z d „Z d „Z d „Z d „Z d „Zd„ZRS(sDConfModules(Conf) This reads /etc/modprobe.d/network.conf into a dictionary keyed on device type, holding dictionaries: cm['eth0']['alias'] --> 'smc-ultra' cm['eth0']['options'] --> {'io':'0x300', 'irq':'10'} cm['eth0']['post-install'] --> ['/bin/foo', 'arg1', 'arg2'] path[*] entries are ignored (but not removed) New entries are added at the end to make sure that they come after any path[*] entries. Comments are delimited by initial '#' s/etc/modprobe.d/network.confcCsti||dddƒdS(Nt#s t (Rt__init__(tselftfilename((s?/usr/share/system-config-network/netconfpkg/conf/ConfModules.pyRscCsti|ƒ|iƒdS(N(Rtreadtinitvars(R((s?/usr/share/system-config-network/netconfpkg/conf/ConfModules.pyR s cCsátƒ|_d }|iƒx´|iƒo¦|iƒ}xC|D];}|o.|iƒidƒo||i|ƒ }Pq?q?Wt|ƒdjo3|d|jo"|ii |dƒp:thd d6tƒd6gd6gd6ƒ|i|d}|iƒx+|id|d|ƒo|iƒq3Wq W|i|=|i|ƒdS(Ns^[ ]*s([ ]-k)?[ ]+(R7RRRR;RARB(RR+RDR)((s?/usr/share/system-config-network/netconfpkg/conf/ConfModules.pyt __delitem__Žs   cCs<x(|iiƒD]}|i|||"; this class reads versions 0 and 1 module-info files. s/boot/module-infocCs#ti||dddddƒdS(NRs Rtcreate_if_missingi(RR(RR ((s?/usr/share/system-config-network/netconfpkg/conf/ConfModules.pyR®scCsti|ƒ|iƒdS(N(RR R (R((s?/usr/share/system-config-network/netconfpkg/conf/ConfModules.pyR °s c Cs&h|_|iƒd}d}d}d}|}|iƒ}|iƒt|ddƒp¨xº|iƒo“|iƒ}|d|ijo|}h|i|<|}nI||joW|iƒ} | d|i|ds "