Execute hook on *cmd as well - smdev - suckless mdev
 (HTM) git clone git://git.suckless.org/smdev
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) README
 (DIR) LICENSE
       ---
 (DIR) commit 13d80055a7d58231c3ad43be51b383fa222d2f3c
 (DIR) parent 8243d1a683e336ff6edb1ea1b65cde089a6322cb
 (HTM) Author: sin <sin@2f30.org>
       Date:   Wed, 21 Aug 2013 17:31:26 +0100
       
       Execute hook on *cmd as well
       
       Diffstat:
         M smdev.c                             |       4 +---
       
       1 file changed, 1 insertion(+), 3 deletions(-)
       ---
 (DIR) 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);