[Pkg-wmaker-commits] [wmifs] 10/118: wmifs: Add auto interface.
Doug Torrance
dtorrance-guest at moszumanska.debian.org
Thu Aug 27 02:37:46 UTC 2015
This is an automated email from the git hooks/post-receive script.
dtorrance-guest pushed a commit to branch master
in repository wmifs.
commit 59739a1a92d37821c98e3d3cdc3c0db1d0484ab6
Author: Doug Torrance <dtorrance at monmouthcollege.edu>
Date: Wed Oct 22 16:34:38 2014 -0500
wmifs: Add auto interface.
Patch by Tom Marshall <tommy at 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.c | 10 +++++++++-
1 file changed, 9 insertions(+), 1 deletion(-)
diff --git a/wmifs/wmifs.c b/wmifs/wmifs.c
index 9f5374b..b653e6e 100644
--- a/wmifs/wmifs.c
+++ b/wmifs/wmifs.c
@@ -74,6 +74,10 @@
----
Changes:
---
+ 02/29/2004 (Tom Marshall, tommy at 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, peter at 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;
+ }
}
}
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-wmaker/wmifs.git
More information about the Pkg-wmaker-commits
mailing list