summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorColin Smith <colin@pfsense.org>2005-07-14 04:32:00 +0000
committerColin Smith <colin@pfsense.org>2005-07-14 04:32:00 +0000
commit62624f215a2209e8459629033fae5e3cf1eb4919 (patch)
tree58f17c42ed900b69391152f51024fb968c9facf7 /etc
parentf36d4bd2977b1de2c30db745ccaa46aff9c6a8a9 (diff)
downloadpfsense-62624f215a2209e8459629033fae5e3cf1eb4919.zip
pfsense-62624f215a2209e8459629033fae5e3cf1eb4919.tar.gz
Use exec() instead of backticks.
Diffstat (limited to 'etc')
-rw-r--r--etc/inc/pfsense-utils.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/etc/inc/pfsense-utils.inc b/etc/inc/pfsense-utils.inc
index 4fdf3bc..1407ab1 100644
--- a/etc/inc/pfsense-utils.inc
+++ b/etc/inc/pfsense-utils.inc
@@ -59,7 +59,7 @@ function log_error($error) {
* $mac - the mac address of the interface
******/
function get_interface_mac_address($interface) {
- $mac = `ifconfig ' . $interface . ' | grep ether | cut -d" " -f 2`;
+ $mac = exec('ifconfig ' . $interface . ' | grep ether | cut -d" " -f 2');
$mac = str_replace("\n", "", $mac);
$mac = str_replace("\r", "", $mac);
return $mac;
OpenPOWER on IntegriCloud