[gnome-hwtest] Accept upper-case HWAddr
- From: Owen Taylor <otaylor src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-hwtest] Accept upper-case HWAddr
- Date: Sat, 20 Sep 2014 18:20:14 +0000 (UTC)
commit 308402fab95e1cb25919a0ddf8b4bfcae17ef81c
Author: Owen W. Taylor <otaylor fishsoup net>
Date: Sat Sep 20 14:15:47 2014 -0400
Accept upper-case HWAddr
When looking up hardware addresses, they were compared directly to
addresses in /sys/class/net/<iface_name>, which are lower-case.
js/utils.js | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/js/utils.js b/js/utils.js
index 8f03a21..00f15fc 100644
--- a/js/utils.js
+++ b/js/utils.js
@@ -115,6 +115,8 @@ function findRootDev() {
}
function findIface(hwaddr) {
+ hwaddr = hwaddr.toLowerCase();
+
let netdir = Gio.file_new_for_path('/sys/class/net');
let enumerator = netdir.enumerate_children('standard::name', Gio.FileQueryInfoFlags.NONE, null);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]