cfumass (f5dfe75da5ba2937f8766792f625f32fc3ef4757) cfumass (b11974c250671368e1eb869ca8ce2ed70622917f)
1#!/bin/sh
2#
3# $FreeBSD$
4#
5
6# PROVIDE: cfumass
7# REQUIRE: var
8# KEYWORD: nojail

--- 61 unchanged lines hidden (view full) ---

70 -o vendor="${cfumass_vendor}" -o product="${cfumass_product}" \
71 -S 0 > /dev/null
72 err=$?
73 if [ "${err}" -ne 0 ]; then
74 warn "unable to create CTL LUN"
75 return "${err}"
76 fi
77
1#!/bin/sh
2#
3# $FreeBSD$
4#
5
6# PROVIDE: cfumass
7# REQUIRE: var
8# KEYWORD: nojail

--- 61 unchanged lines hidden (view full) ---

70 -o vendor="${cfumass_vendor}" -o product="${cfumass_product}" \
71 -S 0 > /dev/null
72 err=$?
73 if [ "${err}" -ne 0 ]; then
74 warn "unable to create CTL LUN"
75 return "${err}"
76 fi
77
78 load_kld cfumass
78 load_kld -e cfumass cfumass
79
80 # If the template is already switched to Mass Storage, then reset
81 # it to -1 to force the host to reenumerate it; otherwise it might
82 # not notice the new LUN.
83 _template=`sysctl -n hw.usb.template`
84 if [ "${_template}" -eq 0 ]; then
85 sysctl hw.usb.template=-1 > /dev/null
86 err=$?

--- 63 unchanged lines hidden ---
79
80 # If the template is already switched to Mass Storage, then reset
81 # it to -1 to force the host to reenumerate it; otherwise it might
82 # not notice the new LUN.
83 _template=`sysctl -n hw.usb.template`
84 if [ "${_template}" -eq 0 ]; then
85 sysctl hw.usb.template=-1 > /dev/null
86 err=$?

--- 63 unchanged lines hidden ---