1
0
mirror of https://github.com/gryf/wicd.git synced 2025-12-19 20:38:00 +01:00

Added distro-specific init scripts based on those used by NM (these are very experimental and likely broken in many cases).

Updated setup.py to pick which initscript to install based on the distro detected.
Updated MANIFEST.in to make sure launchdaemon.sh is included in the sdist build.
Fixed a bunch of crash bugs in tool detection system when tools are detected.
Made tool detection work correctly when "which" returns output if no match is found (as opposed to no output).  Eventually we might want to hardcode possible paths instead of using which at all...
Fixed some message formatting in the daemon.
Added some docstrings.
Added a pidfile system for increased initscript compatibility (sort of, it's somewhat incomplete).
This commit is contained in:
imdano
2008-03-24 00:03:35 +00:00
parent c055ea0d36
commit ef9b5cc7f3
18 changed files with 567 additions and 188 deletions

View File

@@ -56,14 +56,6 @@ if __name__ == '__main__':
class Controller(object):
""" Parent class for the different interface types. """
connecting_thread = None
before_script = None
after_script = None
disconnect_script = None
driver = None
wiface = None
liface = None
def __init__(self):
""" Initialise the class. """
self.global_dns_1 = None
@@ -74,6 +66,13 @@ class Controller(object):
self._dhcp_client = None
self._flush_tool = None
self._debug = None
self.connecting_thread = None
self.before_script = None
self.after_script = None
self.disconnect_script = None
self.driver = None
self.wiface = None
self.liface = None
def set_wireless_iface(self, value):
self._wireless_interface = value