commit 13d80055a7d58231c3ad43be51b383fa222d2f3c
parent 8243d1a683e336ff6edb1ea1b65cde089a6322cb
Author: sin <sin@2f30.org>
Date: Wed, 21 Aug 2013 17:31:26 +0100
Execute hook on *cmd as well
Diffstat:
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/smdev.c b/smdev.c
@@ -148,13 +148,11 @@ create_dev(const char *path)
/* Run command hooks for this rule */
if (Rule->cmd) {
switch (Rule->cmd[0]) {
+ case '*':
case '@':
system(&Rule->cmd[1]);
break;
case '$':
- case '*':
- fprintf(stderr, "Unsupported command '%s' for target '%s'\n",
- Rule->cmd, Rule->devregex);
break;
default:
eprintf("Invalid command '%s'\n", Rule->cmd);