openSUSE 12.1 automatically transforms commands like

"/etc/init.d/scst start" into a systemd start command. Since that doesn't
work for the SCST init script, disable systemd wrapping.

See also bug #738281 "Upgrading from openSUSE 11.4 to openSUSE 12.1 breaks third-party
LSB-compliant System V style init scripts" in the Novell bugzilla database
(https://bugzilla.novell.com/show_bug.cgi?id=738281).

Signed-off-by: Bart Van Assche <bvanassche@acm.org>



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@4023 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
Vladislav Bolkhovitin
2011-12-21 03:02:13 +00:00
parent 31403966b6
commit 6d8ca195f7

View File

@@ -53,6 +53,7 @@ cat <<"EOF"
if [ -e /lib/lsb/init-functions ]; then
# Debian, RHEL, Fedora, SLES and openSUSE.
SYSTEMD_NO_WRAP="true"
. /lib/lsb/init-functions
else
# Slackware (Gentoo has these functions).