support removal and correct adding daemons on archlinux

Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
This commit is contained in:
Nico Schottelius 2012-01-20 15:34:18 +01:00
parent a357d7d794
commit 6d14e32911

View file

@ -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
;;