diff options
author | Poul-Henning Kamp <phk@FreeBSD.org> | 2004-04-28 13:20:15 +0000 |
---|---|---|
committer | Poul-Henning Kamp <phk@FreeBSD.org> | 2004-04-28 13:20:15 +0000 |
commit | d8337944e0fe447407a0a7fb1df8d2e8024b0836 (patch) | |
tree | bd2ebeaaface80df3276878be90005aafb6f3b0f /etc/rc.d/netif | |
parent | 8956ceaff076760eb051cd37f060453be0e28406 (diff) | |
download | src-d8337944e0fe447407a0a7fb1df8d2e8024b0836.tar.gz src-d8337944e0fe447407a0a7fb1df8d2e8024b0836.zip |
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
Notes
Notes:
svn path=/head/; revision=128714
Diffstat (limited to 'etc/rc.d/netif')
-rw-r--r-- | etc/rc.d/netif | 6 |
1 files changed, 4 insertions, 2 deletions
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() |