mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-11-28 19:52:44 +00:00
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
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=197196
@ -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