summaryrefslogtreecommitdiff
path: root/dynamicdevice.c
diff options
context:
space:
mode:
authorLars Hanisch <dvb@flensrocker.de>2011-12-18 13:19:32 +0100
committerLars Hanisch <dvb@flensrocker.de>2011-12-18 13:19:32 +0100
commit660c47ab44cef67a2b2bb6d3e8daa276129797f7 (patch)
tree4d081768db86bacbcdeca8951f4f36753447cb07 /dynamicdevice.c
parent4f34c22781754c73ba7300cf015696de9d34fcd1 (diff)
downloadvdr-plugin-dynamite-660c47ab44cef67a2b2bb6d3e8daa276129797f7.tar.gz
vdr-plugin-dynamite-660c47ab44cef67a2b2bb6d3e8daa276129797f7.tar.bz2
add attach-hook, argument is --device=/dev/pathv0.0.8j
Diffstat (limited to 'dynamicdevice.c')
-rw-r--r--dynamicdevice.c7
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;
}