Patch by Tom Marshall <to...@home.tig-grr.com>.  First appeared in Debian
package version 1.3b1-15.

For more information, see:
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=204873
---
 wmifs/wmifs/wmifs.c | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)

diff --git a/wmifs/wmifs/wmifs.c b/wmifs/wmifs/wmifs.c
index 9f5374b..b653e6e 100644
--- a/wmifs/wmifs/wmifs.c
+++ b/wmifs/wmifs/wmifs.c
@@ -74,6 +74,10 @@
        ----
        Changes:
        ---
+       02/29/2004 (Tom Marshall, to...@home.tig-grr.com)
+               * Patch to add a special interface name "auto" for the -i
+                 option. "wmifs -i auto" will automatically select the
+                 first up interface.
        01/08/2004 (Peter Samuelson, pe...@samba-tng.org)
                * Patch to make make sampling and scrolling intervals
                  customizable, adds new options -I and -s.
@@ -399,9 +403,13 @@ void wmifs_routine(int argc, char **argv) {
 
        stat_current = 0;
        if (active_interface) {
+               int isauto = !strcmp(active_interface, "auto");
                for (i=0; i<stat_online; i++) {
-                       if (!strcmp(stat_devices[i].name, active_interface))
+                       if ((isauto && stillonline(stat_devices[i].name)) ||
+                           !strcmp(stat_devices[i].name, active_interface)) {
                                stat_current = i;
+                               break;
+                       }
                }
        }
        
-- 
1.9.1


-- 
To unsubscribe, send mail to wmaker-dev-unsubscr...@lists.windowmaker.org.

Reply via email to