The init script either needs to depend on 'rdma' or 'openibd'
scripts being started. The actual script depends on the target
operating system.
Signed-off-by: Sean Hefty <sean.hefty@intel.com>
fi\r
AC_SUBST(sbindir)\r
\r
+AC_ARG_VAR(rdmascript, [Required dependency script name])\r
+if test "x$rdmascript" = "x"; then\r
+ if test -n "`grep -q 'release 6' /etc/redhat-release`"; then\r
+ AC_SUBST(rdmascript, rdma)\r
+ else\r
+ AC_SUBST(rdmascript, openibd)\r
+ fi\r
+fi\r
+\r
AC_CONFIG_FILES([Makefile ibacm.spec ibacm.init])\r
AC_OUTPUT\r
# Provides: ibacm
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
-# Required-Start: rdma $network
-# Required-Stop: rdma $network
+# Required-Start: @rdmascript@ $network
+# Required-Stop: @rdmascript@ $network
# Should-Start:
# Should-Stop:
# Short-Description: Starts and stops the InfiniBand ACM service