/etc/init.d/scst: Make this script independent of the installation directory (/usr/local versus /usr)

git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@5128 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
Bart Van Assche
2013-11-19 17:01:36 +00:00
parent 136cbaebb9
commit cde37a8e3c

View File

@@ -79,6 +79,7 @@ fi
cat <<"EOF"
SCST_CFG=/etc/scst.conf
ISCSI_DAEMON="$(which iscsi-scstd)"
show_status() {
_rc_status_ret=$?
@@ -159,7 +160,7 @@ parse_scst_conf() {
SCST_OPT_MODULES="crc32c-intel $SCST_OPT_MODULES";;
esac
SCST_OPT_MODULES="crc32c $SCST_OPT_MODULES"
SCST_DAEMONS="/usr/local/sbin/iscsi-scstd $SCST_DAEMONS"
SCST_DAEMONS="${ISCSI_DAEMON} $SCST_DAEMONS"
fi
}