summaryrefslogtreecommitdiffstats
path: root/usr/local/www/guiconfig.inc
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2006-01-15 03:33:18 +0000
committerScott Ullrich <sullrich@pfsense.org>2006-01-15 03:33:18 +0000
commit767a716ecd96105621e239633c04651a02bd8fb8 (patch)
treea9455173dba67b71599f611cb3eebb6aaa584745 /usr/local/www/guiconfig.inc
parent3e789a8b1385cbd0ccc952b7eac5e1e01ff1a478 (diff)
downloadpfsense-767a716ecd96105621e239633c04651a02bd8fb8.zip
pfsense-767a716ecd96105621e239633c04651a02bd8fb8.tar.gz
Correct warnings and errors found eclipse
Diffstat (limited to 'usr/local/www/guiconfig.inc')
-rwxr-xr-xusr/local/www/guiconfig.inc9
1 files changed, 6 insertions, 3 deletions
diff --git a/usr/local/www/guiconfig.inc b/usr/local/www/guiconfig.inc
index 81dcb7d..9f581d1 100755
--- a/usr/local/www/guiconfig.inc
+++ b/usr/local/www/guiconfig.inc
@@ -172,7 +172,8 @@ function exec_rc_script($scriptname) {
if (file_exists($d_sysrebootreqd_path))
return 0;
-
+ $execoutput = "";
+ $retval = "";
exec($scriptname . " >/dev/null 2>&1", $execoutput, $retval);
return $retval;
}
@@ -180,7 +181,8 @@ function exec_rc_script($scriptname) {
function exec_rc_script_async($scriptname) {
global $d_sysrebootreqd_path;
-
+ $execoutput = "";
+ $retval = "";
if (file_exists($d_sysrebootreqd_path))
return 0;
@@ -548,7 +550,8 @@ function update_changedesc($update) {
function dump_clog($logfile, $tail, $withorig = true, $grepfor = "", $grepinvert = "") {
global $g, $config;
- $sor = isset($config['syslog']['reverse']) ? "-r" : "";
+ $sor = isset($config['syslog']['reverse']) ? "-r" : "";
+ $logarr = "";
exec("/usr/sbin/clog {$logfile} | /usr/bin/tail {$sor} -n {$tail}", $logarr);
if(is_array($grepfor)) {
$i = 0;
OpenPOWER on IntegriCloud