summaryrefslogtreecommitdiffstats
path: root/etc/inc
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2005-10-11 23:38:20 +0000
committerScott Ullrich <sullrich@pfsense.org>2005-10-11 23:38:20 +0000
commitacd910bfc537e037011f1c22e052a987be1db9c0 (patch)
treef247cd3c4a8bf92875d1493a35e3b9df2f211e99 /etc/inc
parentf9118d49680ce4882a87a55706917e6230a4d0c8 (diff)
downloadpfsense-acd910bfc537e037011f1c22e052a987be1db9c0.zip
pfsense-acd910bfc537e037011f1c22e052a987be1db9c0.tar.gz
Add developer header which will output:
services_dnsmasq_configure() being called microtime()
Diffstat (limited to 'etc/inc')
-rw-r--r--etc/inc/services.inc50
1 files changed, 49 insertions, 1 deletions
diff --git a/etc/inc/services.inc b/etc/inc/services.inc
index 67e89a3..9a4a340 100644
--- a/etc/inc/services.inc
+++ b/etc/inc/services.inc
@@ -34,6 +34,10 @@ require_once("functions.inc");
require_once("dyndns.class");
function services_dhcpd_configure() {
+ if(isset($config['system']['developer'])) {
+ $mt = microtime();
+ echo "services_dhcpd_configure($if) being called $mt\n"
+ }
global $config, $g;
/* kill any running dhcpd */
@@ -259,6 +263,10 @@ EOD;
}
function interfaces_staticarp_configure($if) {
+ if(isset($config['system']['developer'])) {
+ $mt = microtime();
+ echo "interfaces_staticarp_configure($if) being called $mt\n"
+ }
global $config, $g;
$ifcfg = $config['interfaces'][$if];
@@ -284,6 +292,10 @@ function interfaces_staticarp_configure($if) {
}
function services_dhcrelay_configure() {
+ if(isset($config['system']['developer'])) {
+ $mt = microtime();
+ echo "services_dhcrelay_configure() being called $mt\n"
+ }
global $config, $g;
/* kill any running dhcrelay */
@@ -354,6 +366,10 @@ function services_dhcrelay_configure() {
}
function services_dyndns_reset() {
+ if(isset($config['system']['developer'])) {
+ $mt = microtime();
+ echo "services_dyndns_reset() being called $mt\n"
+ }
global $config, $g;
if (file_exists("{$g['vardb_path']}/ez-ipupdate.cache")) {
@@ -370,6 +386,11 @@ function services_dyndns_reset() {
}
function services_dyndns_configure() {
+ if(isset($config['system']['developer'])) {
+ $mt = microtime();
+ echo "services_dyndns_configure() being called $mt\n"
+ }
+
global $config, $g;
$dyndnscfg = $config['dyndns'];
@@ -407,6 +428,11 @@ function services_dyndns_configure() {
}
function services_dyndns_configure_old() {
+ if(isset($config['system']['developer'])) {
+ $mt = microtime();
+ echo "services_dyndns_configure_old() being called $mt\n"
+ }
+
global $config, $g;
/* kill any running ez-ipupdate */
@@ -486,6 +512,11 @@ EOD;
function services_dnsmasq_configure() {
+ if(isset($config['system']['developer'])) {
+ $mt = microtime();
+ echo "services_dnsmasq_configure() being called $mt\n"
+ }
+
global $config, $g;
/* kill any running dnsmasq */
@@ -530,6 +561,10 @@ function services_dnsmasq_configure() {
}
function services_snmpd_configure() {
+ if(isset($config['system']['developer'])) {
+ $mt = microtime();
+ echo "services_snmpd_configure() being called $mt\n"
+ }
global $config, $g;
/* kill any running snmpd */
@@ -674,7 +709,12 @@ EOD;
return 0;
}
-function services_proxyarp_configure() {
+function services_proxyarp_configure() {
+ if(isset($config['system']['developer'])) {
+ $mt = microtime();
+ echo "services_proxyarp_configure() being called $mt\n"
+ }
+
global $config, $g;
/* kill any running choparp */
@@ -722,6 +762,10 @@ function services_proxyarp_configure() {
}
function services_dnsupdate_process() {
+ if(isset($config['system']['developer'])) {
+ $mt = microtime();
+ echo "services_dnsupdate_process() being called $mt\n"
+ }
global $config, $g;
/* Dynamic DNS updating active? */
@@ -792,6 +836,10 @@ EOD;
}
function setup_wireless_olsr($interface) {
+ if(isset($config['system']['developer'])) {
+ $mt = microtime();
+ echo "setup_wireless_olsr($interface) being called $mt\n"
+ }
$fd = fopen("{$g['varetc_path']}/{$interface}_olsr.conf", "w");
$olsr .= <<<EOD
#
OpenPOWER on IntegriCloud