summaryrefslogtreecommitdiffstats
path: root/etc/rc.d/netif
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>2004-04-28 13:20:15 +0000
committerphk <phk@FreeBSD.org>2004-04-28 13:20:15 +0000
commitc37cc5e191d567fe04506549ff2e4fa3f06870ad (patch)
treebd2ebeaaface80df3276878be90005aafb6f3b0f /etc/rc.d/netif
parentbeede09a6df4d537c41af2a64fd53fa2d5d035c4 (diff)
downloadFreeBSD-src-c37cc5e191d567fe04506549ff2e4fa3f06870ad.zip
FreeBSD-src-c37cc5e191d567fe04506549ff2e4fa3f06870ad.tar.gz
Protect som cross-script invocations by checks to see that the target
script exists. This allows pruning of rc.d scripts without getting too many ugly boottime error message
Diffstat (limited to 'etc/rc.d/netif')
-rw-r--r--etc/rc.d/netif6
1 files changed, 4 insertions, 2 deletions
diff --git a/etc/rc.d/netif b/etc/rc.d/netif
index 44d06f9..42a35b0 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()
OpenPOWER on IntegriCloud