[__start_on_boot] Begin to add alpine support

This commit is contained in:
Nico Schottelius 2019-04-15 16:32:54 +02:00
parent c7a9e60de0
commit e32d92c109
2 changed files with 5 additions and 2 deletions

View file

@ -1,6 +1,6 @@
#!/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)
#
# This file is part of cdist.
@ -88,6 +88,9 @@ else
# OpenBSD 5.7 and higher
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
exit 1

View file

@ -55,7 +55,7 @@ Nico Schottelius <nico-cdist--@--schottelius.org>
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
published by the Free Software Foundation, either version 3 of the
License, or (at your option) any later version.