summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authoremaste <emaste@FreeBSD.org>2009-09-14 16:52:38 +0000
committeremaste <emaste@FreeBSD.org>2009-09-14 16:52:38 +0000
commit403f1dccfc9bbfa9926906210e82cbad7c64d5a4 (patch)
treeefaeedb20242485e36ac671622965a4494743998 /etc
parentf871b1b7129d57d314cd680ad649b96650e2aa01 (diff)
downloadFreeBSD-src-403f1dccfc9bbfa9926906210e82cbad7c64d5a4.zip
FreeBSD-src-403f1dccfc9bbfa9926906210e82cbad7c64d5a4.tar.gz
Protect cross-script invocation by checking that the target script exists.
This allows pruning of rc.d scripts without getting too many ugly boottime error messages. Inspired by phk's r128714 change to netif.
Diffstat (limited to 'etc')
-rwxr-xr-xetc/rc.d/ppp8
1 files changed, 6 insertions, 2 deletions
diff --git a/etc/rc.d/ppp b/etc/rc.d/ppp
index b3991fe..84d6bc4 100755
--- a/etc/rc.d/ppp
+++ b/etc/rc.d/ppp
@@ -95,8 +95,12 @@ ppp_poststart()
{
# Re-Sync ipfilter and pf so they pick up any new network interfaces
#
- /etc/rc.d/ipfilter quietresync
- /etc/rc.d/pf quietresync
+ if [ -f /etc/rc.d/ipfilter ]; then
+ /etc/rc.d/ipfilter quietresync
+ fi
+ if [ -f /etc/rc.d/pf ]; then
+ /etc/rc.d/pf quietresync
+ fi
}
ppp_stop_profile() {
OpenPOWER on IntegriCloud