diff options
author | Colin Smith <colin@pfsense.org> | 2005-07-14 04:32:55 +0000 |
---|---|---|
committer | Colin Smith <colin@pfsense.org> | 2005-07-14 04:32:55 +0000 |
commit | 3cb6f873fdbf827c9771983c19a40f484f33d9f7 (patch) | |
tree | 2e9a8d063808fc690febf36d4ed2bcf5b85b1710 /etc | |
parent | 62624f215a2209e8459629033fae5e3cf1eb4919 (diff) | |
download | pfsense-3cb6f873fdbf827c9771983c19a40f484f33d9f7.zip pfsense-3cb6f873fdbf827c9771983c19a40f484f33d9f7.tar.gz |
Clean up.
Diffstat (limited to 'etc')
-rw-r--r-- | etc/inc/pfsense-utils.inc | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/etc/inc/pfsense-utils.inc b/etc/inc/pfsense-utils.inc index 1407ab1..8a07ae7 100644 --- a/etc/inc/pfsense-utils.inc +++ b/etc/inc/pfsense-utils.inc @@ -60,9 +60,7 @@ function log_error($error) { ******/ function get_interface_mac_address($interface) { $mac = exec('ifconfig ' . $interface . ' | grep ether | cut -d" " -f 2'); - $mac = str_replace("\n", "", $mac); - $mac = str_replace("\r", "", $mac); - return $mac; + return str_replace(array("\n", "\r"), "", $mac); } /****f* pfsense-utils/return_dir_as_array |