mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2025-01-05 12:52:37 +01:00
main: Remove --config command line option
This commit is contained in:
parent
7e4a6e8a49
commit
7e5ddb15d7
17
src/main.c
17
src/main.c
@ -113,7 +113,6 @@ static void usage(void)
|
|||||||
"\t-I, --nointerfaces Interfaces to ignore\n"
|
"\t-I, --nointerfaces Interfaces to ignore\n"
|
||||||
"\t-p, --phys Phys to manage\n"
|
"\t-p, --phys Phys to manage\n"
|
||||||
"\t-P, --nophys Phys to ignore\n"
|
"\t-P, --nophys Phys to ignore\n"
|
||||||
"\t-c, --config Configuration directory to use\n"
|
|
||||||
"\t-l, --plugin Plugins to include\n"
|
"\t-l, --plugin Plugins to include\n"
|
||||||
"\t-L, --noplugin Plugins to exclude\n"
|
"\t-L, --noplugin Plugins to exclude\n"
|
||||||
"\t-d, --debug Enable debug output\n"
|
"\t-d, --debug Enable debug output\n"
|
||||||
@ -128,7 +127,6 @@ static const struct option main_options[] = {
|
|||||||
{ "nointerfaces", required_argument, NULL, 'I' },
|
{ "nointerfaces", required_argument, NULL, 'I' },
|
||||||
{ "phys", required_argument, NULL, 'p' },
|
{ "phys", required_argument, NULL, 'p' },
|
||||||
{ "nophys", required_argument, NULL, 'P' },
|
{ "nophys", required_argument, NULL, 'P' },
|
||||||
{ "config", required_argument, NULL, 'c' },
|
|
||||||
{ "plugin", required_argument, NULL, 'l' },
|
{ "plugin", required_argument, NULL, 'l' },
|
||||||
{ "noplugin", required_argument, NULL, 'L' },
|
{ "noplugin", required_argument, NULL, 'L' },
|
||||||
{ "debug", optional_argument, NULL, 'd' },
|
{ "debug", optional_argument, NULL, 'd' },
|
||||||
@ -347,7 +345,7 @@ int main(int argc, char *argv[])
|
|||||||
bool enable_dbus_debug = false;
|
bool enable_dbus_debug = false;
|
||||||
int exit_status;
|
int exit_status;
|
||||||
struct l_dbus *dbus;
|
struct l_dbus *dbus;
|
||||||
const char *config_dir = NULL;
|
const char *config_dir;
|
||||||
char **config_dirs;
|
char **config_dirs;
|
||||||
uint32_t eap_mtu;
|
uint32_t eap_mtu;
|
||||||
int i;
|
int i;
|
||||||
@ -355,7 +353,7 @@ int main(int argc, char *argv[])
|
|||||||
for (;;) {
|
for (;;) {
|
||||||
int opt;
|
int opt;
|
||||||
|
|
||||||
opt = getopt_long(argc, argv, "Bi:I:p:P:c:d::vh",
|
opt = getopt_long(argc, argv, "Bi:I:p:P:d::vh",
|
||||||
main_options, NULL);
|
main_options, NULL);
|
||||||
if (opt < 0)
|
if (opt < 0)
|
||||||
break;
|
break;
|
||||||
@ -376,9 +374,6 @@ int main(int argc, char *argv[])
|
|||||||
case 'P':
|
case 'P':
|
||||||
nophys = optarg;
|
nophys = optarg;
|
||||||
break;
|
break;
|
||||||
case 'c':
|
|
||||||
config_dir = optarg;
|
|
||||||
break;
|
|
||||||
case 'l':
|
case 'l':
|
||||||
plugins = optarg;
|
plugins = optarg;
|
||||||
break;
|
break;
|
||||||
@ -426,11 +421,9 @@ int main(int argc, char *argv[])
|
|||||||
|
|
||||||
l_info("Wireless daemon version %s", VERSION);
|
l_info("Wireless daemon version %s", VERSION);
|
||||||
|
|
||||||
if (!config_dir) {
|
config_dir = getenv("CONFIGURATION_DIRECTORY");
|
||||||
config_dir = getenv("CONFIGURATION_DIRECTORY");
|
if (!config_dir)
|
||||||
if (!config_dir)
|
config_dir = DAEMON_CONFIGDIR;
|
||||||
config_dir = DAEMON_CONFIGDIR;
|
|
||||||
}
|
|
||||||
|
|
||||||
l_debug("Using configuration directory %s", config_dir);
|
l_debug("Using configuration directory %s", config_dir);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user