From 6d14e32911c78130860718515115fe8a1ec248b1 Mon Sep 17 00:00:00 2001 From: Nico Schottelius Date: Fri, 20 Jan 2012 15:34:18 +0100 Subject: [PATCH] support removal and correct adding daemons on archlinux Signed-off-by: Nico Schottelius --- conf/type/__start_on_boot/gencode-remote | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/conf/type/__start_on_boot/gencode-remote b/conf/type/__start_on_boot/gencode-remote index c13013ad..61a6b465 100755 --- a/conf/type/__start_on_boot/gencode-remote +++ b/conf/type/__start_on_boot/gencode-remote @@ -37,7 +37,7 @@ case "$state_should" in present) case "$os" in archlinux) - echo sed -i /etc/rc.conf \"s/^\\(DAEMONS=.*\\))/\\1 foo)/\" + echo sed -i /etc/rc.conf \"s/^\\(DAEMONS=.*\\))/\\1 $name)/\" ;; debian|ubuntu) # This does not work as expected: @@ -64,6 +64,9 @@ case "$state_should" in absent) case "$os" in + archlinux) + echo sed -i /etc/rc.conf -e \"s/ $name / /g\" -e \"s/($name/(/\" -e \"s/ $name)/)/\" + ;; debian|ubuntu) echo update-rc.d -f \"$name\" remove ;;