summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2005-12-07 23:52:01 +0000
committerScott Ullrich <sullrich@pfsense.org>2005-12-07 23:52:01 +0000
commit97daae9e2cc7ca64cd4c00b9b064bf42be06204b (patch)
tree14745fa9e5f0dd8fb6c8a0556cb35c5e727648bf
parent341187ac08e30acaee4dfcb85d575ac1baa2a136 (diff)
downloadpfsense-97daae9e2cc7ca64cd4c00b9b064bf42be06204b.zip
pfsense-97daae9e2cc7ca64cd4c00b9b064bf42be06204b.tar.gz
Remove inetd.conf if it exists before reloading it
-rw-r--r--etc/inc/filter.inc3
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";
OpenPOWER on IntegriCloud