From e4113804e008a7e31b59ee099be1530fdf6b0137 Mon Sep 17 00:00:00 2001 From: Franco Fichtner Date: Sun, 26 Mar 2017 21:11:17 +0200 Subject: [PATCH] dynamic dns: if we change/split these scripts, we can also rename them ".update" does not bring any value to the table, especially since there is no other script there and the intent is somewhat clear... --- plist | 4 ++-- src/etc/inc/plugins.inc.d/dyndns.inc | 2 +- src/etc/inc/plugins.inc.d/rfc2136.inc | 2 +- src/etc/{rc.dyndns.update => rc.dyndns} | 0 src/etc/{rc.rfc2136.update => rc.rfc2136} | 0 src/opnsense/service/conf/actions.d/actions_dyndns.conf | 2 +- src/opnsense/service/conf/actions.d/actions_rfc2136.conf | 2 +- 7 files changed, 6 insertions(+), 6 deletions(-) rename src/etc/{rc.dyndns.update => rc.dyndns} (100%) rename src/etc/{rc.rfc2136.update => rc.rfc2136} (100%) diff --git a/plist b/plist index 83b4c2682..885771468 100644 --- a/plist +++ b/plist @@ -83,7 +83,7 @@ /usr/local/etc/rc.d/configd /usr/local/etc/rc.d/flowd_aggregate /usr/local/etc/rc.d/netflow -/usr/local/etc/rc.dyndns.update +/usr/local/etc/rc.dyndns /usr/local/etc/rc.expireaccounts /usr/local/etc/rc.filter_configure /usr/local/etc/rc.filter_synchronize @@ -129,7 +129,7 @@ /usr/local/etc/rc.reload_interfaces /usr/local/etc/rc.resolv_conf_generate /usr/local/etc/rc.restart_webgui -/usr/local/etc/rc.rfc2136.update +/usr/local/etc/rc.rfc2136 /usr/local/etc/rc.shutdown /usr/local/etc/rc.sshd /usr/local/etc/rc.syshook diff --git a/src/etc/inc/plugins.inc.d/dyndns.inc b/src/etc/inc/plugins.inc.d/dyndns.inc index 7eb8e9654..6798f9ab6 100644 --- a/src/etc/inc/plugins.inc.d/dyndns.inc +++ b/src/etc/inc/plugins.inc.d/dyndns.inc @@ -81,7 +81,7 @@ function dyndns_cron() $jobs = array(); if (dyndns_enabled()) { - $jobs[]['autocron'] = array('/usr/local/etc/rc.dyndns.update', '11', '1'); + $jobs[]['autocron'] = array('/usr/local/etc/rc.dyndns', '11', '1'); } return $jobs; diff --git a/src/etc/inc/plugins.inc.d/rfc2136.inc b/src/etc/inc/plugins.inc.d/rfc2136.inc index 16c9a364c..f5710c274 100644 --- a/src/etc/inc/plugins.inc.d/rfc2136.inc +++ b/src/etc/inc/plugins.inc.d/rfc2136.inc @@ -78,7 +78,7 @@ function rfc2136_cron() $jobs = array(); if (rfc2136_enabled()) { - $jobs[]['autocron'] = array('/usr/local/etc/rc.rfc2136.update', '16', '1'); + $jobs[]['autocron'] = array('/usr/local/etc/rc.rfc2136', '16', '1'); } return $jobs; diff --git a/src/etc/rc.dyndns.update b/src/etc/rc.dyndns similarity index 100% rename from src/etc/rc.dyndns.update rename to src/etc/rc.dyndns diff --git a/src/etc/rc.rfc2136.update b/src/etc/rc.rfc2136 similarity index 100% rename from src/etc/rc.rfc2136.update rename to src/etc/rc.rfc2136 diff --git a/src/opnsense/service/conf/actions.d/actions_dyndns.conf b/src/opnsense/service/conf/actions.d/actions_dyndns.conf index e1ecd95fb..294b7da84 100644 --- a/src/opnsense/service/conf/actions.d/actions_dyndns.conf +++ b/src/opnsense/service/conf/actions.d/actions_dyndns.conf @@ -1,5 +1,5 @@ [reload] -command:/usr/local/etc/rc.dyndns.update +command:/usr/local/etc/rc.dyndns description:Dynamic DNS Update parameters:%s type:script diff --git a/src/opnsense/service/conf/actions.d/actions_rfc2136.conf b/src/opnsense/service/conf/actions.d/actions_rfc2136.conf index 55be9f45b..10d4ea5f0 100644 --- a/src/opnsense/service/conf/actions.d/actions_rfc2136.conf +++ b/src/opnsense/service/conf/actions.d/actions_rfc2136.conf @@ -1,5 +1,5 @@ [reload] -command:/usr/local/etc/rc.rfc2136.update +command:/usr/local/etc/rc.rfc2136 description:RFC 2136 Update parameters:%s type:script