From fb211fc8cddf39fee146133d9d538413678fe682 Mon Sep 17 00:00:00 2001 From: Natanael Copa Date: Sat, 25 Feb 2012 19:06:06 +0100 Subject: [PATCH] Alpine Linux switched to openrc --- distrib/alpine/initpost | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/distrib/alpine/initpost b/distrib/alpine/initpost index d700067..4bb639d 100644 --- a/distrib/alpine/initpost +++ b/distrib/alpine/initpost @@ -1,6 +1,6 @@ #!/bin/bash -# Copyright (C) 2007 Natanael Copa +# Copyright (C) 2007, 2009 Natanael Copa # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by @@ -37,7 +37,12 @@ vserver="$1" $_VSERVER "$vserver" stop &>/dev/null || true $_VSERVER "$vserver" start --rescue --rescue-init /bin/busybox sh -c ' /bin/busybox --install -s - /sbin/rc_add -s 20 -k syslog + if [ -x /sbin/rc-update ]; then + /sbin/rc-update add syslog boot + /bin/rmdir /etc/rcL.d /etc/rcK.d + else + /sbin/rc_add -s 20 -k syslog + fi ' # set up hostname -- 1.8.1.5