示例#1
0
文件: be_external.py 项目: gryf/wicd
    def __init__(self, iface, verbose=False):
        """Initialize the object.

        Keyword arguments:
        iface -- the name of the interface
        verbose -- whether to print every command run

        """
        BaseInterface.__init__(self, iface, verbose)
        self.Check()
示例#2
0
文件: be-external.py 项目: M157q/wicd
    def __init__(self, iface, verbose=False):
        """ Initialize the object.

        Keyword arguments:
        iface -- the name of the interface
        verbose -- whether to print every command run

        """
        BaseInterface.__init__(self, iface, verbose)
        self.Check()
示例#3
0
文件: be_ioctl.py 项目: gryf/wicd
    def __init__(self, iface, verbose=False):
        """Initialise the object.

        Keyword arguments:
        iface -- the name of the interface
        verbose -- whether to print every command run

        """
        BaseInterface.__init__(self, iface, verbose)
        self.sock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
        self.Check()
示例#4
0
    def __init__(self, iface, verbose=False):
        """ Initialise the object.

        Keyword arguments:
        iface -- the name of the interface
        verbose -- whether to print every command run

        """
        BaseInterface.__init__(self, iface, verbose)
        self.sock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
        self.Check()
示例#5
0
文件: be_ioctl.py 项目: gryf/wicd
 def CheckWirelessTools(self):
     """Check for the existence needed wireless tools"""
     if not WPACTRL_AVAIL:
         BaseInterface.CheckWirelessTools(self)