#
# Author: Miquel van Smoorenburg, <miquels@drinkel.nl.mugnet.org>
# Hacked by: Greg Galloway and Marc Ewing
-# Modified for TLD Linux by:
+# Modified for PLD Linux by:
# Marek Obuchowicz <elephant@pld-linux.org>
# Arkadiusz Miśkiewicz <misiek@pld-linux.org>
# Michał Kochanowicz <mkochano@pld-linux.org>
# Łukasz Pawelczyk <havner@pld-linux.org>
+# Modified for TLD Linux by:
+# Marcin Krol <hawk@tld-linux.org>
# First set up a default search path.
export PATH="/sbin:/usr/sbin:/bin:/usr/bin"
[ -r /etc/sysconfig/system ] && . /etc/sysconfig/system
[ -r /etc/sysconfig/bootsplash ] && . /etc/sysconfig/bootsplash
-# if initscript is invoked via bash, enable RedHat/Fedora compatibility
-# RC_FEDORA is "set" if enabled and "unset" when not, but it's "value" is always empty
-# this is useful for inline constructs
-if [ "${BASH_VERSION+set}" = "set" ]; then
- RC_LOGGING=yes
- FASTRC=no
- RC_FEDORA=
-else
- unset RC_FEDORA || :
-fi
-
if [ -z "$VSERVER" -o "$VSERVER" = "detect" ]; then
{
while read _f _ctx; do
}
ok() {
- echo -ne "$_ok${RC_FEDORA+\\r}${RC_FEDORA-\\n}"
+ echo "$_ok"
}
started() {
}
fail() {
- echo -ne "$_fail${RC_FEDORA+\\r}${RC_FEDORA-\\n}"
+ echo "$_fail"
return 1
}
cd /
export HOME=/tmp TMPDIR=/tmp
if is_no "$RC_LOGGING"; then
- ${user:+setuidgid -s $user} "$@" 2>&1
+ ${user:+setuidgid -s $user} eval "$@" 2>&1
else
${user:+setuidgid -s $user} initlog -c "$*" 2>&1
fi