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.
This commit is contained in:
Ed Maste 2009-09-14 16:52:38 +00:00
parent b660846ed8
commit 66e5a431cf
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=197196

View File

@ -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() {