From 824ec459ea3ce1dbc2c2751071a42eb235eae66e Mon Sep 17 00:00:00 2001 From: Nico Schottelius Date: Wed, 15 Feb 2012 08:50:26 +0100 Subject: [PATCH] cleanups in gencode Signed-off-by: Nico Schottelius --- conf/type/__start_on_boot/gencode-remote | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/conf/type/__start_on_boot/gencode-remote b/conf/type/__start_on_boot/gencode-remote index 3db7293f..f1788d4b 100755 --- a/conf/type/__start_on_boot/gencode-remote +++ b/conf/type/__start_on_boot/gencode-remote @@ -32,13 +32,10 @@ case "$state_should" in present) case "$os" in archlinux) - echo sed -i /etc/rc.conf \'s/^\\(DAEMONS=.*\\))/\\1 $name)/\' + echo "sed -i /etc/rc.conf \'s/^\\(DAEMONS=.*\\))/\\1 $name)/\'" ;; debian|ubuntu) - # FIXME: This does not work as expected: - # insserv: warning: current start runlevel(s) (3 4 5) of script `postfix' overwrites defaults (2 3 4 5). - #echo update-rc.d \"$name\" defaults - echo update-rc.d \"$name\" defaults + echo "update-rc.d \"$name\" defaults >/dev/null" ;; # FIXME: Disabled until the explorer is checked @@ -61,7 +58,7 @@ 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)/'" + 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)/'" ;; debian|ubuntu) echo update-rc.d -f \"$name\" remove