ifquery --version (return code: 0)
ifquery version 0.8.10ubuntu1.2
Copyright (c) 1999-2009 Anthony Towns
2010-2015 Andrew Shadura
2015 Guus Sliepen
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or (at
your option) any later version.
ifquery --help (return code: 0)
Usage: ifquery <options> <ifaces...>
ifquery <options> --list
ifquery --state <ifaces...>
Options:
-h, --help this help
-V, --version copyright and version information
-a, --all process all interfaces marked "auto"
--allow CLASS ignore non-"allow-CLASS" interfaces
-i, --interfaces FILE use FILE for interface definitions
-X, --exclude PATTERN exclude interfaces from the list of
interfaces to operate on by a PATTERN
-v, --verbose print out what would happen before doing it
-o OPTION=VALUE set OPTION to VALUE as though it were in
/etc/network/interfaces
--no-mappings don't run any mappings
--no-scripts don't run any hook scripts
--no-loopback don't act specially on the loopback device
--list list all matching known interfaces
--state show the state of specified interfaces