Current Path : /compat/linux/proc/68247/root/usr/src/etc/rc.d/ |
FreeBSD hs32.drive.ne.jp 9.1-RELEASE FreeBSD 9.1-RELEASE #1: Wed Jan 14 12:18:08 JST 2015 root@hs32.drive.ne.jp:/sys/amd64/compile/hs32 amd64 |
Current File : //compat/linux/proc/68247/root/usr/src/etc/rc.d/opensm |
#!/bin/sh # # $FreeBSD: release/9.1.0/etc/rc.d/opensm 221006 2011-04-25 05:57:01Z dougb $ # # PROVIDE: opensm # BEFORE: netif # REQUIRE: FILESYSTEMS . /etc/rc.subr name="opensm" start_cmd="opensm_start" rcvar="opensm_enable" command=/usr/bin/opensm command_args="-B" opensm_start() { for guid in `ibstat | grep "Port GUID" | cut -d ':' -f2`; do [ -z "${rc_quiet}" ] && echo "Starting ${guid} opensm." ${command} ${command_args} -g ${guid} >> /dev/null done } load_rc_config $name run_rc_command $*