[Midnightbsd-cvs] src: ipfw: Change the way ipfw module is loaded.
laffer1 at midnightbsd.org
laffer1 at midnightbsd.org
Sat Jan 17 19:17:36 EST 2009
Log Message:
-----------
Change the way ipfw module is loaded.
Modified Files:
--------------
src/etc/rc.d:
ipfw (r1.5 -> r1.6)
-------------- next part --------------
Index: ipfw
===================================================================
RCS file: /home/cvs/src/etc/rc.d/ipfw,v
retrieving revision 1.5
retrieving revision 1.6
diff -L etc/rc.d/ipfw -L etc/rc.d/ipfw -u -r1.5 -r1.6
--- etc/rc.d/ipfw
+++ etc/rc.d/ipfw
@@ -1,6 +1,6 @@
#!/bin/sh
#
-# $FreeBSD: src/etc/rc.d/ipfw,v 1.10.2.1 2006/01/21 22:42:43 yar Exp $
+# $FreeBSD: src/etc/rc.d/ipfw,v 1.15 2007/04/02 15:38:53 mtm Exp $
# $MidnightBSD$
# PROVIDE: ipfw
@@ -14,20 +14,8 @@
name="ipfw"
rcvar="firewall_enable"
start_cmd="ipfw_start"
-start_precmd="ipfw_precmd"
stop_cmd="ipfw_stop"
-
-ipfw_precmd()
-{
- if ! ${SYSCTL} net.inet.ip.fw.enable > /dev/null 2>&1; then
- if ! kldload ipfw; then
- warn unable to load firewall module.
- return 1
- fi
- fi
-
- return 0
-}
+required_modules="ipfw"
ipfw_start()
{
More information about the Midnightbsd-cvs
mailing list