From ddb5bd16c923c5aabe465115ca1cb0819dde2cc3 Mon Sep 17 00:00:00 2001 From: Nico Schottelius Date: Wed, 15 Feb 2012 13:36:05 +0100 Subject: [PATCH] also support @daemon syntax from rc.conf Signed-off-by: Nico Schottelius --- conf/type/__start_on_boot/gencode-remote | 3 ++- doc/dev/todo/niconext | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/conf/type/__start_on_boot/gencode-remote b/conf/type/__start_on_boot/gencode-remote index f1788d4b..be2bd98b 100755 --- a/conf/type/__start_on_boot/gencode-remote +++ b/conf/type/__start_on_boot/gencode-remote @@ -58,7 +58,8 @@ case "$state_should" in case "$os" in archlinux) # Replace a) at the beginning b) in the middle c) end d) only - echo "sed -i /etc/rc.conf -e 's/^\\(DAEMONS=(\\)$name /\\1/' -e 's/^\\(DAEMONS=(.* \\)$name \\(.*\\)/\\1\\2/' -e 's/^\\(DAEMONS=(.*\\) $name)/\\1)/' -e 's/^\\(DAEMONS=(\\)$name)/\\1)/'" + # Support @name as well...makes it more ugly, but well... + echo "sed -i /etc/rc.conf -e 's/^\\(DAEMONS=(\\)@\\{0,1\\}$name /\\1/' -e 's/^\\(DAEMONS=(.* \\)@\\{0,1\\}$name \\(.*\\)/\\1\\2/' -e 's/^\\(DAEMONS=(.*\\) @\\{0,1\\}$name)/\\1)/' -e 's/^\\(DAEMONS=(\\)@\\{0,1\\}$name)/\\1)/'" ;; debian|ubuntu) echo update-rc.d -f \"$name\" remove diff --git a/doc/dev/todo/niconext b/doc/dev/todo/niconext index f81c7570..828ff917 100644 --- a/doc/dev/todo/niconext +++ b/doc/dev/todo/niconext @@ -1,4 +1,4 @@ -2.0.8 features / cleanups: +- introduce default parameters - cleanup object_id handling - have a look at singletons