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:
parent
b660846ed8
commit
66e5a431cf
@ -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() {
|
||||
|
Loading…
Reference in New Issue
Block a user