diff options
author | yar <yar@FreeBSD.org> | 2006-12-31 10:37:18 +0000 |
---|---|---|
committer | yar <yar@FreeBSD.org> | 2006-12-31 10:37:18 +0000 |
commit | dc9f8423c3772111565181a8568c60c4da0a1689 (patch) | |
tree | 7ed36d4fe8965c59b37bcccfa387cf77469cbeef /etc/rc.d/hcsecd | |
parent | 58a4c67f05bc56e76c61ca19ed42f2e412cfd55f (diff) | |
download | FreeBSD-src-dc9f8423c3772111565181a8568c60c4da0a1689.zip FreeBSD-src-dc9f8423c3772111565181a8568c60c4da0a1689.tar.gz |
Use $required_modules wherever suitable. Use load_kld() in special
cases. So we get rid of quite a few lines of duplicated code.
Diffstat (limited to 'etc/rc.d/hcsecd')
-rw-r--r-- | etc/rc.d/hcsecd | 16 |
1 files changed, 1 insertions, 15 deletions
diff --git a/etc/rc.d/hcsecd b/etc/rc.d/hcsecd index 413b898..c78ce9d 100644 --- a/etc/rc.d/hcsecd +++ b/etc/rc.d/hcsecd @@ -14,21 +14,7 @@ name="hcsecd" command="/usr/sbin/${name}" pidfile="/var/run/${name}.pid" rcvar=`set_rcvar` -start_precmd="hcsecd_prestart" - -hcsecd_prestart() -{ - if ! kldstat -q -m ng_btsocket ; then - if kldload ng_btsocket > /dev/null 2>&1 ; then - info 'ng_btsocket module loaded' - else - warn 'ng_btsocket module failed to load' - return 1 - fi - fi - - return 0 -} +required_modules="ng_btsocket" load_rc_config $name config="${hcsecd_config:-/etc/bluetooth/${name}.conf}" |