diff options
Diffstat (limited to 'dynamicdevice.c')
-rw-r--r-- | dynamicdevice.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/dynamicdevice.c b/dynamicdevice.c index c694313..0567a57 100644 --- a/dynamicdevice.c +++ b/dynamicdevice.c @@ -284,6 +284,13 @@ attach: Skins.QueueMessage(mtInfo, *osdMsg); } cDynamiteStatus::SetStartupChannel(); + if (attachHook != NULL) { + cString hookCmd = cString::sprintf("%s --device=%s", **attachHook, DevPath); + isyslog("dynamite: calling attach hook %s", *hookCmd); + int status = SystemExec(*hookCmd, true); + if (!WIFEXITED(status) || WEXITSTATUS(status)) + esyslog("SystemExec() failed with status %d", status); + } return ddrcSuccess; } |