Skip to content

Commit fe97500

Browse files
author
olevole
committed
check if bridge module loaded
1 parent 663ea53 commit fe97500

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

tools/cbsdd

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,11 @@ configure_default_vs_bridge()
128128
_ret=$?
129129
;;
130130
*)
131+
${KLDSTAT_CMD} -qn if_bridge;
132+
if [ ${_ret} -ne 0 ]; then
133+
${ECHO} "${N1_COLOR}${CBSD_APP}: loading if_bridge.ko${N2_COLOR}"
134+
${KLDLOAD_CMD} if_bridge
135+
fi
131136
${IFCONFIG_CMD} ${_cbsd_vs} create
132137
${IFCONFIG_CMD} ${_cbsd_vs} name ${configure_default_cbsd_vs_name}
133138
${IFCONFIG_CMD} ${configure_default_cbsd_vs_name} ${_usable_range_start}/24

0 commit comments

Comments
 (0)