guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

17/20: installer: Use a cleaner method of detecting wireless capability


From: John Darrington
Subject: 17/20: installer: Use a cleaner method of detecting wireless capability for ethernet interfaces.
Date: Thu, 12 Jan 2017 20:41:04 +0000 (UTC)

jmd pushed a commit to branch wip-installer
in repository guix.

commit 3ce64524feea9b859f854d0862df9417c880b35b
Author: John Darrington <address@hidden>
Date:   Wed Jan 11 08:06:03 2017 +0100

    installer: Use a cleaner method of detecting wireless capability for 
ethernet interfaces.
    
    * gnu/system/installer/network.scm (interfaces) : Avoid one use of system*.
---
 gnu/system/installer/network.scm |    3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/gnu/system/installer/network.scm b/gnu/system/installer/network.scm
index 2209877..04861cf 100644
--- a/gnu/system/installer/network.scm
+++ b/gnu/system/installer/network.scm
@@ -44,8 +44,7 @@
          `((name .  ,ifce)
            (class . ,(cond
                       ((loopback-network-interface? ifce) 'loopback)
-                      ((zero? (system* "iw" "dev" ifce "info"))
-                       'wireless)
+                      ((string-prefix? ifce "wl") 'wireless)
                       (else 'ethernet)))))
        (all-network-interface-names)))
 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]