diff options
author | mtm <mtm@FreeBSD.org> | 2003-04-24 08:20:47 +0000 |
---|---|---|
committer | mtm <mtm@FreeBSD.org> | 2003-04-24 08:20:47 +0000 |
commit | a6c5ee3cc4da9ead0959ff4821507c2229de063f (patch) | |
tree | c0744a674488d76a59082db26fc4805a539f9646 /etc/rc.d/ipfilter | |
parent | 2b308e25a03938ef728237c7cc2d42d7bdac5f43 (diff) | |
download | FreeBSD-src-a6c5ee3cc4da9ead0959ff4821507c2229de063f.zip FreeBSD-src-a6c5ee3cc4da9ead0959ff4821507c2229de063f.tar.gz |
Make ipfilter, ipnat, ipmon, and ipfs behave more like the old rc.
o group them together so they run one right after another
o use the NetBSD supplied ipfs script instead of tacking
it on to the end of ipnat
o Load the ipl module in ipnat and ipfilter, if it's not already
loaded
o In ipmon and ipnat show a warning if neither ipfilter nor
ipnat is enabled or the ipl module is not loaded, and exit
Approved by: markm (mentor) (implicit)
Tested by: leafy <leafy@leafy.idv.tw>
Diffstat (limited to 'etc/rc.d/ipfilter')
-rwxr-xr-x | etc/rc.d/ipfilter | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/etc/rc.d/ipfilter b/etc/rc.d/ipfilter index b13a807..46d1840 100755 --- a/etc/rc.d/ipfilter +++ b/etc/rc.d/ipfilter @@ -5,7 +5,8 @@ # # PROVIDE: ipfilter -# REQUIRE: root beforenetlkm mountcritlocal tty +# REQUIRE: root beforenetlkm mountcritlocal tty ipmon +# BEFORE: netif # KEYWORD: FreeBSD NetBSD . /etc/rc.subr @@ -43,8 +44,7 @@ FreeBSD) if kldload ipl; then echo 'IP-filter module loaded.' else - warn 'IP-filter module failed to load.' - return 1 + err 1 'IP-filter module failed to load.' fi fi |