plugins are now able to add device specific text to /etc/networking/interfaces
authorStefan Pluecken <stefan.pluecken@multimedia-labs.de>
Mon, 19 Mar 2007 18:56:16 +0000 (18:56 +0000)
committerStefan Pluecken <stefan.pluecken@multimedia-labs.de>
Mon, 19 Mar 2007 18:56:16 +0000 (18:56 +0000)
commite7b3db898270e6a6a252eee7697302fb0c1f7d38
tree93a0f06932d959a357aa74e09ecd83e33612a975
parent5d71f584400a4302a391289bca750cdc16ed58cb
plugins are now able to add device specific text to /etc/networking/interfaces
example:

where = PluginDescriptor.WHERE_NETWORKSETUP, fnc={"ifaceSupported": callFunction, "configStrings": configStrings}

with
def PluginFunction(session, iface):
session.open(<MainPlugin>, iface)

def callFunction(iface):
if <iface is supported by plugin>:
return PluginFunction
else:
return None

def configSrings(iface):
return "# would add this to adapter iface into /etc/networking/interfaces"
lib/python/Components/Network.py
lib/python/Screens/NetworkSetup.py