diff options
author | Alexey Shvetsov <alexxy@gentoo.org> | 2009-07-23 17:53:58 +0000 |
---|---|---|
committer | Alexey Shvetsov <alexxy@gentoo.org> | 2009-07-23 17:53:58 +0000 |
commit | fd998bc323766b174580d67a6e6f79696d3b2df3 (patch) | |
tree | 85e8e995bd77a03673da5d927dabdabcdac2137c /sys-block/vblade | |
parent | [sys-block/aoetools] version bump. thanks to Andrei Vinogradov aka slepnoga (diff) | |
download | gentoo-2-fd998bc323766b174580d67a6e6f79696d3b2df3.tar.gz gentoo-2-fd998bc323766b174580d67a6e6f79696d3b2df3.tar.bz2 gentoo-2-fd998bc323766b174580d67a6e6f79696d3b2df3.zip |
[sys-block/vblade] Fix init.d to work with openrc. thanks to Andrei Vinogradov aka slepnoga. fix bug #218043
(Portage version: 2.2_rc33/cvs/Linux x86_64)
Diffstat (limited to 'sys-block/vblade')
-rw-r--r-- | sys-block/vblade/ChangeLog | 9 | ||||
-rw-r--r-- | sys-block/vblade/files/init.d-vblade.vblade0 | 18 |
2 files changed, 20 insertions, 7 deletions
diff --git a/sys-block/vblade/ChangeLog b/sys-block/vblade/ChangeLog index 5c8c097bb6fc..36d70392bacd 100644 --- a/sys-block/vblade/ChangeLog +++ b/sys-block/vblade/ChangeLog @@ -1,6 +1,11 @@ # ChangeLog for sys-block/vblade -# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/sys-block/vblade/ChangeLog,v 1.21 2008/08/03 23:53:19 caleb Exp $ +# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/sys-block/vblade/ChangeLog,v 1.22 2009/07/23 17:53:58 alexxy Exp $ + + 23 Jul 2009; Alexey Shvetsov <alexxy@gentoo.org> + files/init.d-vblade.vblade0: + Fix init.d to work with openrc. thanks to Andrei Vinogradov aka slepnoga. + fix bug #218043 *vblade-18 (03 Aug 2008) diff --git a/sys-block/vblade/files/init.d-vblade.vblade0 b/sys-block/vblade/files/init.d-vblade.vblade0 index 198d0939209b..f27d4d8dee34 100644 --- a/sys-block/vblade/files/init.d-vblade.vblade0 +++ b/sys-block/vblade/files/init.d-vblade.vblade0 @@ -1,7 +1,6 @@ #!/sbin/runscript -# Copyright 1999-2006 Gentoo Foundation +# Copyright 1999-2009 Gentoo Foundation # Distributed under the terms of the GNU General Public License, v2 or later -# $Header: /var/cvsroot/gentoo-x86/sys-block/vblade/files/init.d-vblade.vblade0,v 1.4 2008/08/03 23:53:20 caleb Exp $ opts="${opts} checkconfig" @@ -9,9 +8,18 @@ depend() { need net } -conf="$(add_suffix /etc/conf.d/vblade)" -[[ -e "${conf}" ]] && source "${conf}" -vblade_name="${myservice#*.}" +# bug #218043 + + if [ ! -f /etc/init.d/sysfs ]; then + conf="$(add_suffix /etc/conf.d/vblade)" + [[ -e "${conf}" ]] && source "${conf}" + vblade_name="${myservice#*.}" + else + conf="/etc/conf.d/vblade" + [[ -e "${conf}" ]] && source "${conf}" + vblade_name="${RC_SVCNAME#*.}" + fi + vblade_conf_variable="config_${vblade_name}" vblade_conf="${!vblade_conf_variable}" pidfile="/var/run/vblade-${vblade_name}.pid" |