??????????????
Warning: Cannot modify header information - headers already sent by (output started at /home/mybf1/public_html/mentol.bf1.my/SS1.php:4) in /home/mybf1/public_html/mentol.bf1.my/SS1.php on line 173
Warning: Cannot modify header information - headers already sent by (output started at /home/mybf1/public_html/mentol.bf1.my/SS1.php:4) in /home/mybf1/public_html/mentol.bf1.my/SS1.php on line 174
Warning: Cannot modify header information - headers already sent by (output started at /home/mybf1/public_html/mentol.bf1.my/SS1.php:4) in /home/mybf1/public_html/mentol.bf1.my/SS1.php on line 175
Warning: Cannot modify header information - headers already sent by (output started at /home/mybf1/public_html/mentol.bf1.my/SS1.php:4) in /home/mybf1/public_html/mentol.bf1.my/SS1.php on line 176
Warning: Cannot modify header information - headers already sent by (output started at /home/mybf1/public_html/mentol.bf1.my/SS1.php:4) in /home/mybf1/public_html/mentol.bf1.my/SS1.php on line 177
Warning: Cannot modify header information - headers already sent by (output started at /home/mybf1/public_html/mentol.bf1.my/SS1.php:4) in /home/mybf1/public_html/mentol.bf1.my/SS1.php on line 178
ó
c‰`c @ sp d Z d d g Z d d l Z d d l Z d d l m Z d d l m Z d d l m Z d „ Z
d „ Z d S(
s. Functions to search for and change ifcfg filest search_ifcfg_of_interfacet ifcfg_set_zone_of_interfaceiÿÿÿÿN( t config( t log( t ifcfgc C s t j j t j ƒ s d Sx» t t j t j ƒ ƒ D]¡ } | j d ƒ sM q2 n x5 d d d d d d g D] } | j | ƒ rf qf qf qf Wd | k r— q2 n t
d t j | f ƒ } | j ƒ | j d
ƒ | k r2 | Sq2 Wd t j | f } t j j | ƒ rt
| ƒ } | j ƒ | Sd S(
s6 search ifcfg file for the interface in config.IFCFGDIRs ifcfg-s .baks .origs .rpmnews .rpmorigs .rpmsaves -ranget .s %s/%st DEVICEs %s/ifcfg-%sN(
t ost patht existsR t IFCFGDIRt Nonet sortedt listdirt
startswitht endswithR t readt get( t interfacet filenamet ignoredt
ifcfg_file( ( s: /usr/lib/python2.7/site-packages/firewall/core/fw_ifcfg.pyR ! s*
c C sŸ | d k r d } n t | ƒ } | d k r› | j d ƒ | k r› | j d ƒ d k o` | d k r› t j d | | j f ƒ | j d | ƒ | j ƒ n d S( sY Set zone (ZONE=) in the ifcfg file that uses the interface
(DEVICE=)t t ZONEs Setting ZONE=%s in '%s'N( R R R R t debug1R t sett write( t zoneR R ( ( s: /usr/lib/python2.7/site-packages/firewall/core/fw_ifcfg.pyR ? s !"( t __doc__t __all__R t os.patht firewallR t firewall.core.loggerR t firewall.core.io.ifcfgR R R ( ( ( s: /usr/lib/python2.7/site-packages/firewall/core/fw_ifcfg.pyt s