forked from ungleich-public/cdist
support adding start on boot on archlinux (no removal so far)
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
This commit is contained in:
parent
6d5c69d5c4
commit
a357d7d794
1 changed files with 3 additions and 3 deletions
|
@ -33,12 +33,12 @@ state_is=$(cat "$__object/explorer/state")
|
|||
os=$(cat "$__global/explorer/os")
|
||||
name="$__object_id"
|
||||
|
||||
# Support runlevels later
|
||||
#runlevel=$(cat $__global/explorer/runlevel)
|
||||
|
||||
case "$state_should" in
|
||||
present)
|
||||
case "$os" in
|
||||
archlinux)
|
||||
echo sed -i /etc/rc.conf \"s/^\\(DAEMONS=.*\\))/\\1 foo)/\"
|
||||
;;
|
||||
debian|ubuntu)
|
||||
# This does not work as expected:
|
||||
# insserv: warning: current start runlevel(s) (3 4 5) of script `postfix' overwrites defaults (2 3 4 5).
|
||||
|
|
Loading…
Reference in a new issue