diff options
| author | Stefan Pluecken <stefan.pluecken@multimedia-labs.de> | 2007-03-19 18:56:16 +0000 |
|---|---|---|
| committer | Stefan Pluecken <stefan.pluecken@multimedia-labs.de> | 2007-03-19 18:56:16 +0000 |
| commit | e7b3db898270e6a6a252eee7697302fb0c1f7d38 (patch) | |
| tree | 93a0f06932d959a357aa74e09ecd83e33612a975 /lib/python/Components/Sources | |
| parent | 5d71f584400a4302a391289bca750cdc16ed58cb (diff) | |
| download | enigma2-e7b3db898270e6a6a252eee7697302fb0c1f7d38.tar.gz enigma2-e7b3db898270e6a6a252eee7697302fb0c1f7d38.zip | |
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"
Diffstat (limited to 'lib/python/Components/Sources')
0 files changed, 0 insertions, 0 deletions
