summaryrefslogtreecommitdiffstats
path: root/etc/inc/rrd.inc
diff options
context:
space:
mode:
authorsmos <seth.mos@dds.nl>2012-06-02 10:19:24 +0200
committersmos <seth.mos@dds.nl>2012-06-02 10:19:46 +0200
commit488595df35a0e245790e7cf559938c57ffc2d4a4 (patch)
tree789bd1964d3904c9515a9960679712ffdb572b1c /etc/inc/rrd.inc
parentd27a8a3d39e8e951b485e1eb915b874a67ce47fe (diff)
downloadpfsense-488595df35a0e245790e7cf559938c57ffc2d4a4.zip
pfsense-488595df35a0e245790e7cf559938c57ffc2d4a4.tar.gz
Escape the shell variable
Diffstat (limited to 'etc/inc/rrd.inc')
-rw-r--r--etc/inc/rrd.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/etc/inc/rrd.inc b/etc/inc/rrd.inc
index a427feb..31b4b6d 100644
--- a/etc/inc/rrd.inc
+++ b/etc/inc/rrd.inc
@@ -391,7 +391,7 @@ function enable_rrd_graphing() {
$rrdupdatesh .= "\n";
$rrdupdatesh .= "# polling wireless for interface $ifname $realif \n";
$rrdupdatesh .= "WIFI=`$ifconfig {$realif} list sta| $awk 'gsub(\"M\", \"\") {getline 2;print substr(\$5, 0, length(\$5)-2) \":\" $4 \":\" $3}'`\n";
- $rrdupdatesh .= "$rrdtool update $rrddbpath$ifname$wireless N:${WIFI}\n";
+ $rrdupdatesh .= "$rrdtool update $rrddbpath$ifname$wireless N:\${WIFI}\n";
}
/* OpenVPN, set up the rrd file */
OpenPOWER on IntegriCloud