Group :: Sistema/Kernel e hardware
RPM: ib-scripts
Main Changelog Spec Patches Sources Download Gear Bugs e FR Repocop
ib-scripts-1.0.0/ 0000755 0000000 0000000 00000000000 10760751725 0013577 5 ustar 00root root 0000000 0000000 ib-scripts-1.0.0/etc/ 0000755 0000000 0000000 00000000000 10760751725 0014352 5 ustar 00root root 0000000 0000000 ib-scripts-1.0.0/etc/init.d/ 0000755 0000000 0000000 00000000000 10760751725 0015537 5 ustar 00root root 0000000 0000000 ib-scripts-1.0.0/etc/init.d/ib 0000755 0000000 0000000 00000001512 10760751725 0016056 0 ustar 00root root 0000000 0000000 #!/bin/sh
#
# template Summary of the service.
#
# chkconfig: 2345 90 10
# description: loads or unloads infiniband modules
# Do not load RH compatibility interface.
WITHOUT_RC_COMPAT=1
# Source function library.
. /etc/init.d/functions
MODULES="ib_addr ib_cm ib_umad ib_uverbs iw_cm rdma_cm rdma_ucm ib_sa ib_ucm ib_core"
RETVAL=0
start()
{
action "Loading ib module " /sbin/modprobe -a $MODULES
RETVAL=$?
return $RETVAL
}
stop()
{
action "Unloading ib module " modprobe -a -r $MODULES
RETVAL=$?
return $RETVAL
}
# See how we were called.
case "$1" in
start)
start
;;
stop)
stop
;;
restart)
stop
start
;;
reload)
stop
start
;;
condrestart)
stop
start
;;
condreload)
stop
start
;;
*)
msg_usage "${0##*/} {start|stop|restart|condrestart|reload|condreload}"
RETVAL=1
esac
exit $RETVAL