kldxref revision 112354
117574Sache#!/bin/sh 218950Sache# 312031Sache# $FreeBSD: head/etc/rc.d/kldxref 112354 2003-03-17 23:15:53Z cjc $ 412031Sache# 518950Sache 612031Sache# PROVIDE: kldxref 718950Sache# REQUIRE: root mountcritlocal 818950Sache# BEFORE: network1 918950Sache# KEYWORD: FreeBSD 1018950Sache 1117574Sache. /etc/rc.subr 1218950Sache 1312031Sachercvar="kldxref_enable" 1419115Sachename="kldxref" 1517574Sachestop_cmd=":" 1619115Sachestart_cmd="kldxref_start" 1719115Sache 1819115Sachekldxref_start () { 1919115Sache if [ -n "$kldxref_module_path" ]; then 2019115Sache MODULE_PATHS="$kldxref_module_path" 2119115Sache else 2218950Sache MODULE_PATHS=`sysctl -n kern.module_path` 2317574Sache fi 2419115Sache IFS=';' 2519115Sache for MODULE_DIR in $MODULE_PATHS; do 2619115Sache if [ ! -f "$MODULE_DIR/linker.hints" ] || 2719115Sache checkyesno kldxref_clobber; then 2819115Sache echo "Building $MODULE_DIR/linker.hints" 2919115Sache kldxref "$MODULE_DIR" 3018950Sache fi 3112031Sache done 3218950Sache} 33 34load_rc_config $name 35run_rc_command "$1" 36