From 4cd3b9d637438927c66e855fdb50b2f1e9d4647e Mon Sep 17 00:00:00 2001 From: Martijn Lina Date: Fri, 4 Oct 2013 16:30:39 +0200 Subject: [PATCH] replace dashes in rc.conf keys (which are based on freebsd rc.d filenames) to underscores --- library/system/service | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/library/system/service b/library/system/service index 478a59a58f..ff2f799eb5 100644 --- a/library/system/service +++ b/library/system/service @@ -103,6 +103,7 @@ import tempfile import shlex import select import time +import string class Service(object): """ @@ -873,7 +874,7 @@ class NetBsdService(Service): if os.path.isfile(rcfile): self.rcconf_file = rcfile - self.rcconf_key = "%s" % self.name + self.rcconf_key = "%s" % string.replace(self.name,"-","_"); return self.service_enable_rcconf()