Commit ae5f2995 authored by Franco Fichtner's avatar Franco Fichtner

etc: move rc.update_bogons.sh

parent 24ee8eee
<?xml version="1.0"?> <?xml version="1.0"?>
<!-- pfSense default system configuration -->
<pfsense> <pfsense>
<version>9.9</version> <version>9.9</version>
<lastchange></lastchange> <lastchange></lastchange>
...@@ -651,7 +650,7 @@ ...@@ -651,7 +650,7 @@
<month>*</month> <month>*</month>
<wday>*</wday> <wday>*</wday>
<who>root</who> <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>
<item> <item>
<minute>*/60</minute> <minute>*/60</minute>
......
...@@ -439,7 +439,7 @@ function upgrade_025_to_026() { ...@@ -439,7 +439,7 @@ function upgrade_025_to_026() {
$cron_item['month'] = "*"; $cron_item['month'] = "*";
$cron_item['wday'] = "*"; $cron_item['wday'] = "*";
$cron_item['who'] = "root"; $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; $config['cron']['item'][] = $cron_item;
......
...@@ -85,7 +85,7 @@ process_url /tmp/bogonsv6 "${v6url}" ...@@ -85,7 +85,7 @@ process_url /tmp/bogonsv6 "${v6url}"
if [ "$proc_error" != "" ]; then if [ "$proc_error" != "" ]; then
# Relaunch and sleep # Relaunch and sleep
sh /etc/rc.update_bogons.sh & sh /usr/local/etc/rc.update_bogons.sh &
exit exit
fi fi
...@@ -150,7 +150,7 @@ fi ...@@ -150,7 +150,7 @@ fi
if [ "$checksum_error" != "" ]; then if [ "$checksum_error" != "" ]; then
# Relaunch and sleep # Relaunch and sleep
sh /etc/rc.update_bogons.sh & sh /usr/local/etc/rc.update_bogons.sh &
exit exit
fi fi
......
...@@ -71,7 +71,7 @@ if($_REQUEST['deleteall']) { ...@@ -71,7 +71,7 @@ if($_REQUEST['deleteall']) {
} }
if((($tablename == "bogons") || ($tablename == "bogonsv6")) && ($_POST['Download'])) { 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; $maxtimetowait = 0;
$loading = true; $loading = true;
while($loading == true) { while($loading == true) {
......
...@@ -201,15 +201,15 @@ if ($_POST) { ...@@ -201,15 +201,15 @@ if ($_POST) {
if ($_POST['bogonsinterval'] != $config['system']['bogons']['interval']) { if ($_POST['bogonsinterval'] != $config['system']['bogons']['interval']) {
switch ($_POST['bogonsinterval']) { switch ($_POST['bogonsinterval']) {
case 'daily': 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; break;
case 'weekly': 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; break;
case 'monthly': case 'monthly':
// fall through // fall through
default: 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']; $config['system']['bogons']['interval'] = $_POST['bogonsinterval'];
} }
......
...@@ -633,7 +633,7 @@ ...@@ -633,7 +633,7 @@
unset($config['wizardtemp']); unset($config['wizardtemp']);
write_config(); write_config();
reload_all(); reload_all();
mwexec_bg("/etc/rc.update_bogons.sh now"); mwexec_bg("/usr/local/etc/rc.update_bogons.sh now");
]]> ]]>
</stepafterformdisplay> </stepafterformdisplay>
</step> </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