ifupdown: implement --force
This commit is contained in:
parent
efe9b60e37
commit
b514d31c26
3 changed files with 7 additions and 2 deletions
|
|
@ -68,13 +68,14 @@ set_no_lock(const char *opt_arg)
|
|||
}
|
||||
|
||||
static void
|
||||
no_op(const char *opt_arg)
|
||||
set_force(const char *opt_arg)
|
||||
{
|
||||
(void) opt_arg;
|
||||
exec_opts.force = true;
|
||||
}
|
||||
|
||||
static struct if_option exec_options[] = {
|
||||
{'f', "force", NULL, "force (de)configuration", false, no_op},
|
||||
{'f', "force", NULL, "force (de)configuration", false, set_force},
|
||||
{'i', "interfaces", "interfaces FILE", "use FILE for interface definitions", true, set_interfaces_file},
|
||||
{'l', "no-lock", NULL, "do not use a lockfile to serialize state changes", false, set_no_lock},
|
||||
{'n', "no-act", NULL, "do not actually run any commands", false, set_no_act},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue