Commit 1688139c by Michael DeHaan

Merge pull request #4370 from hostage-nl/devel

replace dashes to underscores in rc.conf keys (based on freebsd rc.d filenames)
parents 198c9a59 4cd3b9d6
...@@ -103,6 +103,7 @@ import tempfile ...@@ -103,6 +103,7 @@ import tempfile
import shlex import shlex
import select import select
import time import time
import string
class Service(object): class Service(object):
""" """
...@@ -873,7 +874,7 @@ class NetBsdService(Service): ...@@ -873,7 +874,7 @@ class NetBsdService(Service):
if os.path.isfile(rcfile): if os.path.isfile(rcfile):
self.rcconf_file = rcfile self.rcconf_file = rcfile
self.rcconf_key = "%s" % self.name self.rcconf_key = "%s" % string.replace(self.name,"-","_");
return self.service_enable_rcconf() return self.service_enable_rcconf()
......
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