diff options
author | Chris Buechler <cmb@pfsense.org> | 2016-02-02 00:08:35 -0600 |
---|---|---|
committer | Chris Buechler <cmb@pfsense.org> | 2016-02-02 00:08:35 -0600 |
commit | a2b813bff254f7f3f2a3ac6f49c4735ddd5506e1 (patch) | |
tree | 4f2646b38823e718549381acb144db6e555ca0cd /src/etc/inc/upgrade_config.inc | |
parent | 3fafb89b1a72cfc78faeceaa75a367b8151e342d (diff) | |
download | pfsense-a2b813bff254f7f3f2a3ac6f49c4735ddd5506e1.zip pfsense-a2b813bff254f7f3f2a3ac6f49c4735ddd5506e1.tar.gz |
Remove old pppoerestart cron job if it exists. Ticket #1905
Diffstat (limited to 'src/etc/inc/upgrade_config.inc')
-rw-r--r-- | src/etc/inc/upgrade_config.inc | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/etc/inc/upgrade_config.inc b/src/etc/inc/upgrade_config.inc index 21bc2ef..0848d0e 100644 --- a/src/etc/inc/upgrade_config.inc +++ b/src/etc/inc/upgrade_config.inc @@ -4399,5 +4399,15 @@ function upgrade_141_to_142() { $dyndns['domainname'] = implode(".", array_slice($dparts, $domain_offset)); } } + + /* unset old pppoerestart cron job if it exists. redmine 1905 */ + if (is_array($config['cron']['item'])) { + foreach ($config['cron']['item'] as $idx => $cronitem) { + if ($cronitem['command'] == "/etc/pppoerestart") { + unset($config['cron']['item'][$idx]); + } + } + } } + ?> |