am c5a55890: am 4cc6e2e3: Merge "init: expand_props on trigger"
* commit 'c5a558907a49dae3db6c40c2032a92841c93b2d6': init: expand_props on trigger
This commit is contained in:
commit
708db86525
|
@ -591,7 +591,13 @@ int do_powerctl(int nargs, char **args)
|
|||
|
||||
int do_trigger(int nargs, char **args)
|
||||
{
|
||||
action_for_each_trigger(args[1], action_add_queue_tail);
|
||||
char prop_val[PROP_VALUE_MAX];
|
||||
int res = expand_props(prop_val, args[1], sizeof(prop_val));
|
||||
if (res) {
|
||||
ERROR("trigger: cannot expand '%s'\n", args[1]);
|
||||
return -EINVAL;
|
||||
}
|
||||
action_for_each_trigger(prop_val, action_add_queue_tail);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue