Kaydet (Commit) 092dbedc authored tarafından Bahadır Kandemir's avatar Bahadır Kandemir

callScrip(profile, state) for executing profile scripts under…

callScrip(profile, state) for executing profile scripts under /etc/network/netlink.d/profilename.state
All kudos go to Nihat Ciddi
üst 32c2d57d
2009-05-11 Bahadır Kandemir <bahadir@pardus.org.tr>
* network: callScrip(profile, state) for executing profile scripts under
/etc/network/netlink.d/profilename.state
All kudos go to Nihat Ciddi
2009-05-10 Bahadır Kandemir <bahadir@pardus.org.tr>
* network: Moved common network code under comar.network module.
......
......@@ -107,3 +107,10 @@ def registerNameServers(profile, iface):
def unregisterNameServers(iface):
call(NET_STACK, "Network.Stack", "unregisterNameServers", (iface.name, [], ""))
def callScript(self, name, state):
path = os.path.join("/etc/network/netlink.d", "%s.%s" % (name, state))
if os.path.exists(path):
try:
subprocess.call([path])
except:
pass
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment