mirror of
https://github.com/systemd/systemd.git
synced 2024-10-28 11:55:44 +03:00
udevadm: control - --env -> --property
This commit is contained in:
parent
0254b2118f
commit
5654503680
@ -34,7 +34,7 @@ static void print_help(void)
|
|||||||
" --stop-exec-queue keep udevd from executing events, queue only\n"
|
" --stop-exec-queue keep udevd from executing events, queue only\n"
|
||||||
" --start-exec-queue execute events, flush queue\n"
|
" --start-exec-queue execute events, flush queue\n"
|
||||||
" --reload-rules reloads the rules files\n"
|
" --reload-rules reloads the rules files\n"
|
||||||
" --env=<KEY>=<value> set a global environment variable\n"
|
" --property=<KEY>=<value> set a global property for all events\n"
|
||||||
" --max-childs=<N> maximum number of childs\n"
|
" --max-childs=<N> maximum number of childs\n"
|
||||||
" --help print this help text\n\n");
|
" --help print this help text\n\n");
|
||||||
}
|
}
|
||||||
@ -54,7 +54,8 @@ int udevadm_control(struct udev *udev, int argc, char *argv[])
|
|||||||
{ "start_exec_queue", no_argument, NULL, 'S' + 256},
|
{ "start_exec_queue", no_argument, NULL, 'S' + 256},
|
||||||
{ "reload-rules", no_argument, NULL, 'R' },
|
{ "reload-rules", no_argument, NULL, 'R' },
|
||||||
{ "reload_rules", no_argument, NULL, 'R' + 256},
|
{ "reload_rules", no_argument, NULL, 'R' + 256},
|
||||||
{ "env", required_argument, NULL, 'e' },
|
{ "property", required_argument, NULL, 'p' },
|
||||||
|
{ "env", required_argument, NULL, 'p' },
|
||||||
{ "max-childs", required_argument, NULL, 'm' },
|
{ "max-childs", required_argument, NULL, 'm' },
|
||||||
{ "max_childs", required_argument, NULL, 'm' + 256},
|
{ "max_childs", required_argument, NULL, 'm' + 256},
|
||||||
{ "help", no_argument, NULL, 'h' },
|
{ "help", no_argument, NULL, 'h' },
|
||||||
@ -75,7 +76,7 @@ int udevadm_control(struct udev *udev, int argc, char *argv[])
|
|||||||
int i;
|
int i;
|
||||||
char *endp;
|
char *endp;
|
||||||
|
|
||||||
option = getopt_long(argc, argv, "l:sSRe:m:M:h", options, NULL);
|
option = getopt_long(argc, argv, "l:sSRp:m:M:h", options, NULL);
|
||||||
if (option == -1)
|
if (option == -1)
|
||||||
break;
|
break;
|
||||||
|
|
||||||
@ -112,7 +113,7 @@ int udevadm_control(struct udev *udev, int argc, char *argv[])
|
|||||||
udev_ctrl_send_reload_rules(uctrl);
|
udev_ctrl_send_reload_rules(uctrl);
|
||||||
rc = 0;
|
rc = 0;
|
||||||
break;
|
break;
|
||||||
case 'e':
|
case 'p':
|
||||||
if (strchr(optarg, '=') == NULL) {
|
if (strchr(optarg, '=') == NULL) {
|
||||||
fprintf(stderr, "expect <KEY>=<valaue> instead of '%s'\n", optarg);
|
fprintf(stderr, "expect <KEY>=<valaue> instead of '%s'\n", optarg);
|
||||||
goto exit;
|
goto exit;
|
||||||
|
@ -298,9 +298,9 @@
|
|||||||
</listitem>
|
</listitem>
|
||||||
</varlistentry>
|
</varlistentry>
|
||||||
<varlistentry>
|
<varlistentry>
|
||||||
<term><option>--env=<replaceable>KEY</replaceable>=<replaceable>value</replaceable></option></term>
|
<term><option>--property=<replaceable>KEY</replaceable>=<replaceable>value</replaceable></option></term>
|
||||||
<listitem>
|
<listitem>
|
||||||
<para>Set global variable.</para>
|
<para>Set a global property for all events.</para>
|
||||||
</listitem>
|
</listitem>
|
||||||
</varlistentry>
|
</varlistentry>
|
||||||
<varlistentry>
|
<varlistentry>
|
||||||
|
Loading…
Reference in New Issue
Block a user