Commit ae5f2995 authored by Franco Fichtner's avatar Franco Fichtner

etc: move rc.update_bogons.sh

parent 24ee8eee
<?xml version="1.0"?>
<!-- pfSense default system configuration -->
<pfsense>
<version>9.9</version>
<lastchange></lastchange>
......@@ -651,7 +650,7 @@
<month>*</month>
<wday>*</wday>
<who>root</who>
<command>/usr/bin/nice -n20 /etc/rc.update_bogons.sh</command>
<command>/usr/bin/nice -n20 /usr/local/etc/rc.update_bogons.sh</command>
</item>
<item>
<minute>*/60</minute>
......
......@@ -439,7 +439,7 @@ function upgrade_025_to_026() {
$cron_item['month'] = "*";
$cron_item['wday'] = "*";
$cron_item['who'] = "root";
$cron_item['command'] = "/usr/bin/nice -n20 /etc/rc.update_bogons.sh";
$cron_item['command'] = "/usr/bin/nice -n20 /usr/local/etc/rc.update_bogons.sh";
$config['cron']['item'][] = $cron_item;
......
......@@ -85,7 +85,7 @@ process_url /tmp/bogonsv6 "${v6url}"
if [ "$proc_error" != "" ]; then
# Relaunch and sleep
sh /etc/rc.update_bogons.sh &
sh /usr/local/etc/rc.update_bogons.sh &
exit
fi
......@@ -150,7 +150,7 @@ fi
if [ "$checksum_error" != "" ]; then
# Relaunch and sleep
sh /etc/rc.update_bogons.sh &
sh /usr/local/etc/rc.update_bogons.sh &
exit
fi
......
......@@ -71,7 +71,7 @@ if($_REQUEST['deleteall']) {
}
if((($tablename == "bogons") || ($tablename == "bogonsv6")) && ($_POST['Download'])) {
mwexec_bg("/etc/rc.update_bogons.sh now");
mwexec_bg("/usr/local/etc/rc.update_bogons.sh now");
$maxtimetowait = 0;
$loading = true;
while($loading == true) {
......@@ -193,4 +193,4 @@ include("head.inc");
</div>
</section>
<?php include('foot.inc');?>
\ No newline at end of file
<?php include('foot.inc');?>
......@@ -201,15 +201,15 @@ if ($_POST) {
if ($_POST['bogonsinterval'] != $config['system']['bogons']['interval']) {
switch ($_POST['bogonsinterval']) {
case 'daily':
install_cron_job("/usr/bin/nice -n20 /etc/rc.update_bogons.sh", true, "1", "3", "*", "*", "*");
install_cron_job("/usr/bin/nice -n20 /usr/local/etc/rc.update_bogons.sh", true, "1", "3", "*", "*", "*");
break;
case 'weekly':
install_cron_job("/usr/bin/nice -n20 /etc/rc.update_bogons.sh", true, "1", "3", "*", "*", "0");
install_cron_job("/usr/bin/nice -n20 /usr/local/etc/rc.update_bogons.sh", true, "1", "3", "*", "*", "0");
break;
case 'monthly':
// fall through
default:
install_cron_job("/usr/bin/nice -n20 /etc/rc.update_bogons.sh", true, "1", "3", "1", "*", "*");
install_cron_job("/usr/bin/nice -n20 /usr/local/etc/rc.update_bogons.sh", true, "1", "3", "1", "*", "*");
}
$config['system']['bogons']['interval'] = $_POST['bogonsinterval'];
}
......
......@@ -633,7 +633,7 @@
unset($config['wizardtemp']);
write_config();
reload_all();
mwexec_bg("/etc/rc.update_bogons.sh now");
mwexec_bg("/usr/local/etc/rc.update_bogons.sh now");
]]>
</stepafterformdisplay>
</step>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment