summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPoul-Henning Kamp <phk@FreeBSD.org>2004-04-28 13:20:15 +0000
committerPoul-Henning Kamp <phk@FreeBSD.org>2004-04-28 13:20:15 +0000
commitd8337944e0fe447407a0a7fb1df8d2e8024b0836 (patch)
treebd2ebeaaface80df3276878be90005aafb6f3b0f
parent8956ceaff076760eb051cd37f060453be0e28406 (diff)
Notes
-rw-r--r--etc/rc.d/ipfw8
-rw-r--r--etc/rc.d/netif6
2 files changed, 10 insertions, 4 deletions
diff --git a/etc/rc.d/ipfw b/etc/rc.d/ipfw
index 990c14ead4eb..2e8100c2b8a0 100644
--- a/etc/rc.d/ipfw
+++ b/etc/rc.d/ipfw
@@ -37,7 +37,9 @@ ipfw_start()
if [ -r "${firewall_script}" ]; then
. "${firewall_script}"
echo -n 'Firewall rules loaded, starting divert daemons:'
- /etc/rc.d/natd start
+ if [ -f /etc/rc.d/natd ] ; then
+ /etc/rc.d/natd start
+ fi
elif [ "`ipfw l 65535`" = "65535 deny ip from any to any" ]; then
echo 'Warning: kernel has firewall functionality, but' \
' firewall rules are not enabled.'
@@ -62,7 +64,9 @@ ipfw_stop()
# Disable the firewall
#
${SYSCTL_W} net.inet.ip.fw.enable=0
- /etc/rc.d/natd stop
+ if [ -f /etc/rc.d/natd ] ; then
+ /etc/rc.d/natd stop
+ fi
}
load_rc_config $name
diff --git a/etc/rc.d/netif b/etc/rc.d/netif
index 44d06f912da8..42a35b0e90e6 100644
--- a/etc/rc.d/netif
+++ b/etc/rc.d/netif
@@ -57,8 +57,10 @@ network_start()
# Configure the interface(s).
network_common ifn_start verbose
- # Resync ipfilter
- /etc/rc.d/ipfilter resync
+ if [ -f /etc/rc.d/ipfilter ] ; then
+ # Resync ipfilter
+ /etc/rc.d/ipfilter resync
+ fi
}
network_stop()