mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-12-28 12:51:44 +01:00
27 lines
867 B
Diff
27 lines
867 B
Diff
Index: distrib/alpine/initpost
|
|
===================================================================
|
|
--- a/distrib/alpine/initpost (revision 2855)
|
|
+++ b/distrib/alpine/initpost (working copy)
|
|
@@ -1,6 +1,6 @@
|
|
#!/bin/bash
|
|
|
|
-# Copyright (C) 2007 Natanael Copa <ncopa@alpinelinux.org>
|
|
+# Copyright (C) 2007, 2009 Natanael Copa <ncopa@alpinelinux.org>
|
|
#
|
|
# 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 "$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
|