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/pflog | |
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/pflog')
-rw-r--r-- | etc/rc.d/pflog | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/etc/rc.d/pflog b/etc/rc.d/pflog index 9de6cc3..09a127a 100644 --- a/etc/rc.d/pflog +++ b/etc/rc.d/pflog @@ -22,15 +22,7 @@ resync_cmd="pflog_resync" pflog_prestart() { - # load pflog kernel module if needed - if ! kldstat -q -m pflog; then - if kldload pflog; then - info 'pflog module loaded.' - else - warn 'pflog module failed to load.' - return 1 - fi - fi + load_kld pflog || return 1 # set pflog0 interface to up state if ! ifconfig pflog0 up; then |