diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2005-12-07 23:52:01 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2005-12-07 23:52:01 +0000 |
commit | 97daae9e2cc7ca64cd4c00b9b064bf42be06204b (patch) | |
tree | 14745fa9e5f0dd8fb6c8a0556cb35c5e727648bf | |
parent | 341187ac08e30acaee4dfcb85d575ac1baa2a136 (diff) | |
download | pfsense-97daae9e2cc7ca64cd4c00b9b064bf42be06204b.zip pfsense-97daae9e2cc7ca64cd4c00b9b064bf42be06204b.tar.gz |
Remove inetd.conf if it exists before reloading it
-rw-r--r-- | etc/inc/filter.inc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/etc/inc/filter.inc b/etc/inc/filter.inc index bd73258..1ee89e5 100644 --- a/etc/inc/filter.inc +++ b/etc/inc/filter.inc @@ -570,6 +570,9 @@ function filter_nat_rules_generate() { $natrules .= "rdr on $wanif proto ipv6 from any to any -> {$config['diag']['ipv6nat']['ipaddr']}\n"; } + if(file_exists("/var/etc/inetd.conf")) + mwexec("rm /var/etc/inetd.conf"); + if (isset($config['nat']['rule'])) { $natrules .= "# NAT Inbound Redirects\n"; |