diff options
author | Ermal Luçi <eri@pfsense.org> | 2008-07-20 14:52:10 +0000 |
---|---|---|
committer | Ermal Luçi <eri@pfsense.org> | 2008-07-20 14:52:10 +0000 |
commit | 33178d86033114d0d916fa13d0a6d89fadab4762 (patch) | |
tree | d5954a8c98a29ce48a8019928d745260f11687bb /etc/inc | |
parent | 0bd73c2cac809995aa238c24d03a66f0cc523872 (diff) | |
download | pfsense-33178d86033114d0d916fa13d0a6d89fadab4762.zip pfsense-33178d86033114d0d916fa13d0a6d89fadab4762.tar.gz |
Remove unnecessary copying of dyndns cache file for ez-ipudate program. It is only a cache file after all and i do not think ez-ipupdate is used anymore.
Diffstat (limited to 'etc/inc')
-rw-r--r-- | etc/inc/services.inc | 23 |
1 files changed, 3 insertions, 20 deletions
diff --git a/etc/inc/services.inc b/etc/inc/services.inc index b2fb155..22c3bbc 100644 --- a/etc/inc/services.inc +++ b/etc/inc/services.inc @@ -467,17 +467,8 @@ function services_dyndns_reset() { conf_mount_ro(); } - if (file_exists("{$g['conf_path']}/ez-ipupdate*.cache")) { - conf_mount_rw(); - unlink("{$g['conf_path']}/ez-ipupdate*.cache"); - conf_mount_ro(); - } - - if (file_exists("{$g['conf_path']}/dyndns*.cache")) { - conf_mount_rw(); - unlink("{$g['conf_path']}/dyndns*.cache"); - conf_mount_ro(); - } + mwexec("rm {$g['varetc_path']}/ez-ipupdate*.cache"); + mwexec("rm {$g['varetc_path']}/dyndns*.cache"); return 0; } @@ -550,7 +541,7 @@ function services_dyndns_configure_old($if) { sigkillbypid("{$g['varrun_path']}/ez-ipupdate_{$if}.pid", "QUIT"); $dyndnscfg = $config['dyndnses']['dyndns']; - $wancfg = $config['interfaces']['wan']; + $wancfg = $config['interfaces'][$if]; sleep(1); @@ -569,7 +560,6 @@ interface={$if} max-interval=2073600 pid-file={$g['varrun_path']}/ez-ipupdate_{$if}.pid cache-file={$g['vardb_path']}/ez-ipupdate_{$if}.cache -execute=/etc/rc.dyndns.storecache {$g['vardb_path']}/ez-ipupdate_{$if}.cache daemon EOD; @@ -595,13 +585,6 @@ EOD; fwrite($fd, $ezipupdateconf); fclose($fd); - /* if we're booting, copy the cache file from /conf */ - if ($g['booting']) { - if (file_exists("{$g['conf_path']}/ez-ipupdate_{$if}.cache")) { - copy("{$g['conf_path']}/ez-ipupdate_{$if}.cache", "{$g['vardb_path']}/ez-ipupdate_{$if}.cache"); - } - } - /* run ez-ipupdate */ mwexec("/usr/local/bin/ez-ipupdate -c {$g['varetc_path']}/ez-ipupdate_{$if}.conf"); |