[__start_on_boot] Begin to add alpine support

remotes/katolaz/master
Nico Schottelius 6 years ago
parent c7a9e60de0
commit e32d92c109
  1. 5
      cdist/conf/type/__start_on_boot/explorer/state
  2. 2
      cdist/conf/type/__start_on_boot/man.rst

@ -1,6 +1,6 @@
#!/bin/sh #!/bin/sh
# #
# 2012-2015 Nico Schottelius (nico-cdist at schottelius.org) # 2012-2019 Nico Schottelius (nico-cdist at schottelius.org)
# 2013 Daniel Heule (hda at sfs.biz) # 2013 Daniel Heule (hda at sfs.biz)
# #
# This file is part of cdist. # This file is part of cdist.
@ -88,6 +88,9 @@ else
# OpenBSD 5.7 and higher # OpenBSD 5.7 and higher
rcctl ls on | grep "^${name}$" && state='present' rcctl ls on | grep "^${name}$" && state='present'
;; ;;
alpine)
state="absent"
rc-update show | sed 's/ *//' | grep -q "^${name} |" && state="present"
*) *)
echo "Unsupported os: $os" >&2 echo "Unsupported os: $os" >&2
exit 1 exit 1

@ -55,7 +55,7 @@ Nico Schottelius <nico-cdist--@--schottelius.org>
COPYING COPYING
------- -------
Copyright \(C) 2012 Nico Schottelius. You can redistribute it Copyright \(C) 2012-2019 Nico Schottelius. You can redistribute it
and/or modify it under the terms of the GNU General Public License as and/or modify it under the terms of the GNU General Public License as
published by the Free Software Foundation, either version 3 of the published by the Free Software Foundation, either version 3 of the
License, or (at your option) any later version. License, or (at your option) any later version.

Loading…
Cancel
Save