diff --git a/src/etc/config.xml b/src/etc/config.xml
index 1d961f54b..55e66a0a6 100644
--- a/src/etc/config.xml
+++ b/src/etc/config.xml
@@ -649,7 +649,7 @@
*
*
root
- /usr/local/etc/rc.update_bogons.sh
+ /usr/local/etc/rc.update_bogons
-
*/60
diff --git a/src/etc/inc/config.lib.inc b/src/etc/inc/config.lib.inc
index 1b9c76466..b70fb20fb 100644
--- a/src/etc/inc/config.lib.inc
+++ b/src/etc/inc/config.lib.inc
@@ -378,7 +378,7 @@ function convert_config() {
if (is_array($config['cron'])) {
$cron_item_count = count($config['cron']['item']);
for($x=0; $x<$cron_item_count; $x++) {
- if(stristr($config['cron']['item'][$x]['command'], "rc.update_bogons.sh")) {
+ if(stristr($config['cron']['item'][$x]['command'], 'rc.update_bogons')) {
if($config['cron']['item'][$x]['hour'] == "*" ) {
$config['cron']['item'][$x]['hour'] = "3";
write_config(gettext("Updated bogon update frequency to 3am"));
diff --git a/src/etc/inc/upgrade_config.inc b/src/etc/inc/upgrade_config.inc
index 5bf311263..e7ddc4122 100644
--- a/src/etc/inc/upgrade_config.inc
+++ b/src/etc/inc/upgrade_config.inc
@@ -426,7 +426,7 @@ function upgrade_025_to_026() {
$cron_item['month'] = "*";
$cron_item['wday'] = "*";
$cron_item['who'] = "root";
- $cron_item['command'] = "/usr/local/etc/rc.update_bogons.sh";
+ $cron_item['command'] = "/usr/local/etc/rc.update_bogons";
$config['cron']['item'][] = $cron_item;
@@ -2031,7 +2031,7 @@ function upgrade_054_to_055() {
enable_rrd_graphing();
/* Let's save the RRD graphs after we run enable RRD graphing */
/* The function will restore the rrd.tgz so we will save it after */
- exec("cd /; LANG=C NO_REMOUNT=1 RRDDBPATH='{$rrddbpath}' CF_CONF_PATH='/cf/conf' /usr/local/etc/rc.backup_rrd.sh");
+ exec("cd /; LANG=C NO_REMOUNT=1 RRDDBPATH='{$rrddbpath}' CF_CONF_PATH='/cf/conf' /usr/local/etc/rc.backup_rrd");
unlink_if_exists("{$g['vardb_path']}/rrd/*.xml");
if ($g['booting'])
echo "Updating configuration...";
@@ -2713,7 +2713,7 @@ function upgrade_080_to_081() {
enable_rrd_graphing();
/* Let's save the RRD graphs after we run enable RRD graphing */
/* The function will restore the rrd.tgz so we will save it after */
- exec("cd /; LANG=C NO_REMOUNT=1 RRDDBPATH='{$rrddbpath}' CF_CONF_PATH='/cf/conf' /usr/local/etc/rc.backup_rrd.sh");
+ exec("cd /; LANG=C NO_REMOUNT=1 RRDDBPATH='{$rrddbpath}' CF_CONF_PATH='/cf/conf' /usr/local/etc/rc.backup_rrd");
if ($g['booting'])
echo "Updating configuration...";
foreach($config['filter']['rule'] as & $rule) {
@@ -3046,7 +3046,7 @@ function upgrade_095_to_096() {
enable_rrd_graphing();
/* Let's save the RRD graphs after we run enable RRD graphing */
/* The function will restore the rrd.tgz so we will save it after */
- exec("cd /; LANG=C NO_REMOUNT=1 RRDDBPATH='{$rrddbpath}' CF_CONF_PATH='/cf/conf' /usr/local/etc/rc.backup_rrd.sh");
+ exec("cd /; LANG=C NO_REMOUNT=1 RRDDBPATH='{$rrddbpath}' CF_CONF_PATH='/cf/conf' /usr/local/etc/rc.backup_rrd");
}
function upgrade_096_to_097() {
diff --git a/src/etc/rc.backup_dhcpleases.sh b/src/etc/rc.backup_dhcpleases
similarity index 100%
rename from src/etc/rc.backup_dhcpleases.sh
rename to src/etc/rc.backup_dhcpleases
diff --git a/src/etc/rc.backup_rrd.sh b/src/etc/rc.backup_rrd
similarity index 100%
rename from src/etc/rc.backup_rrd.sh
rename to src/etc/rc.backup_rrd
diff --git a/src/etc/rc.reboot b/src/etc/rc.reboot
index e37dfed24..28c216a2c 100755
--- a/src/etc/rc.reboot
+++ b/src/etc/rc.reboot
@@ -19,8 +19,8 @@ DISK_NAME=`/bin/df /var/db/rrd | /usr/bin/tail -1 | /usr/bin/awk '{print $1;}'`
DISK_TYPE=`/usr/bin/basename ${DISK_NAME} | /usr/bin/cut -c1-2`
# If we are not on a full install, or if the full install wants RAM disks, or if the full install _was_ using RAM disks, but isn't for the next boot...
if [ "${PLATFORM}" != "pfSense" ] || [ ${USE_MFS_TMPVAR} -gt 0 ] || [ "${DISK_TYPE}" = "md" ]; then
- /usr/local/etc/rc.backup_rrd.sh
- /usr/local/etc/rc.backup_dhcpleases.sh
+ /usr/local/etc/rc.backup_rrd
+ /usr/local/etc/rc.backup_dhcpleases
fi
sleep 1
diff --git a/src/etc/rc.shutdown b/src/etc/rc.shutdown
index d4cebbbad..de1e348ad 100755
--- a/src/etc/rc.shutdown
+++ b/src/etc/rc.shutdown
@@ -32,6 +32,6 @@ DISK_NAME=`/bin/df /var/db/rrd | /usr/bin/tail -1 | /usr/bin/awk '{print $1;}'`
DISK_TYPE=`/usr/bin/basename ${DISK_NAME} | /usr/bin/cut -c1-2`
# If we are not on a full install, or if the full install wants RAM disks, or if the full install _was_ using RAM disks, but isn't for the next boot...
if [ "${PLATFORM}" != "pfSense" ] || [ ${USE_MFS_TMPVAR} -gt 0 ] || [ "${DISK_TYPE}" = "md" ]; then
- /usr/local/etc/rc.backup_rrd.sh
- /usr/local/etc/rc.backup_dhcpleases.sh
+ /usr/local/etc/rc.backup_rrd
+ /usr/local/etc/rc.backup_dhcpleases
fi
diff --git a/src/etc/rc.update_bogons.sh b/src/etc/rc.update_bogons
similarity index 92%
rename from src/etc/rc.update_bogons.sh
rename to src/etc/rc.update_bogons
index 73bf90f15..3713c0559 100755
--- a/src/etc/rc.update_bogons.sh
+++ b/src/etc/rc.update_bogons
@@ -57,17 +57,17 @@ process_url() {
fi
}
-echo "rc.update_bogons.sh is starting up." | logger
+echo "rc.update_bogons is starting up." | logger
# Sleep for some time, unless an argument is specified.
if [ "$1" = "" ]; then
# Grab a random value
value=`od -A n -d -N2 /dev/random | awk '{ print $1 }'`
- echo "rc.update_bogons.sh is sleeping for $value" | logger
+ echo "rc.update_bogons is sleeping for $value" | logger
sleep $value
fi
-echo "rc.update_bogons.sh is beginning the update cycle." | logger
+echo "rc.update_bogons is beginning the update cycle." | logger
# Set default values if not overriden
v4url=${v4url:-"https://files.pfsense.org/lists/fullbogons-ipv4.txt"}
@@ -80,7 +80,7 @@ process_url /tmp/bogonsv6 "${v6url}"
if [ "$proc_error" != "" ]; then
# Relaunch and sleep
- sh /usr/local/etc/rc.update_bogons.sh &
+ sh /usr/local/etc/rc.update_bogons &
exit
fi
@@ -145,8 +145,8 @@ fi
if [ "$checksum_error" != "" ]; then
# Relaunch and sleep
- sh /usr/local/etc/rc.update_bogons.sh &
+ sh /usr/local/etc/rc.update_bogons &
exit
fi
-echo "rc.update_bogons.sh is ending the update cycle." | logger
+echo "rc.update_bogons is ending the update cycle." | logger
diff --git a/src/www/diag_tables.php b/src/www/diag_tables.php
index 10417c230..68eac2002 100644
--- a/src/www/diag_tables.php
+++ b/src/www/diag_tables.php
@@ -1,4 +1,5 @@
0), $minute="0", "*/{$config['system']['rrdbackup']}");
+ install_cron_job("/usr/local/etc/rc.backup_rrd", ($config['system']['rrdbackup'] > 0), $minute="0", "*/{$config['system']['rrdbackup']}");
}
if (isset($_POST['dhcpbackup'])) {
$config['system']['dhcpbackup'] = $_POST['dhcpbackup'];
- install_cron_job("/usr/local/etc/rc.backup_dhcpleases.sh", ($config['system']['dhcpbackup'] > 0), $minute="0", "*/{$config['system']['dhcpbackup']}");
+ install_cron_job("/usr/local/etc/rc.backup_dhcpleases", ($config['system']['dhcpbackup'] > 0), $minute="0", "*/{$config['system']['dhcpbackup']}");
}
write_config();
diff --git a/src/www/wizards/setup_wizard.xml b/src/www/wizards/setup_wizard.xml
index 6f421f219..61d781782 100644
--- a/src/www/wizards/setup_wizard.xml
+++ b/src/www/wizards/setup_wizard.xml
@@ -618,7 +618,7 @@
unset($config['wizardtemp']);
write_config();
reload_all();
- mwexec_bg("/usr/local/etc/rc.update_bogons.sh now");
+ mwexec_bg("/usr/local/etc/rc.update_bogons now");
]]>