diff options
author | Colin Smith <colin@pfsense.org> | 2005-07-14 04:29:48 +0000 |
---|---|---|
committer | Colin Smith <colin@pfsense.org> | 2005-07-14 04:29:48 +0000 |
commit | 5eab9f144d1fe4e256b66e9b48a892a55fb63815 (patch) | |
tree | 166becf7b8dd1160e12dbac895b9610f42944ff3 /etc | |
parent | 94e8082f59e0c55bee9fc9d5f1d44a6c18f2fec3 (diff) | |
download | pfsense-5eab9f144d1fe4e256b66e9b48a892a55fb63815.zip pfsense-5eab9f144d1fe4e256b66e9b48a892a55fb63815.tar.gz |
Take $interface parameter.
Diffstat (limited to 'etc')
-rw-r--r-- | etc/inc/pfsense-utils.inc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/etc/inc/pfsense-utils.inc b/etc/inc/pfsense-utils.inc index 4f4d895..4fdf3bc 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 fxp0 | grep ether | cut -d" " -f 2`; + $mac = `ifconfig ' . $interface . ' | grep ether | cut -d" " -f 2`; $mac = str_replace("\n", "", $mac); $mac = str_replace("\r", "", $mac); return $mac; @@ -991,4 +991,4 @@ function generate_random_mac() { return $mac; } -?>
\ No newline at end of file +?> |