Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
O
OpnSense
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kulya
OpnSense
Commits
ae5f2995
Commit
ae5f2995
authored
Dec 09, 2014
by
Franco Fichtner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
etc: move rc.update_bogons.sh
parent
24ee8eee
Changes
6
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
10 additions
and
11 deletions
+10
-11
config.xml
conf.default/config.xml
+1
-2
upgrade_config.inc
usr/local/etc/inc/upgrade_config.inc
+1
-1
rc.update_bogons.sh
usr/local/etc/rc.update_bogons.sh
+2
-2
diag_tables.php
usr/local/www/diag_tables.php
+2
-2
system_advanced_firewall.php
usr/local/www/system_advanced_firewall.php
+3
-3
setup_wizard.xml
usr/local/www/wizards/setup_wizard.xml
+1
-1
No files found.
conf.default/config.xml
View file @
ae5f2995
<?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>
...
...
usr/local/etc/inc/upgrade_config.inc
View file @
ae5f2995
...
...
@@ -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
;
...
...
etc/rc.update_bogons.sh
→
usr/local/
etc/rc.update_bogons.sh
View file @
ae5f2995
...
...
@@ -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
...
...
usr/local/www/diag_tables.php
View file @
ae5f2995
...
...
@@ -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
)
{
...
...
usr/local/www/system_advanced_firewall.php
View file @
ae5f2995
...
...
@@ -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'
];
}
...
...
usr/local/www/wizards/setup_wizard.xml
View file @
ae5f2995
...
...
@@ -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>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment