Project

General

Profile

Setting the watchdog-timeout with udev

Added by lhanisch almost 14 years ago

In a udev rule you have the possibility to set properties on the device which gets currently added.

This udev rule

ACTION=="add", SUBSYSTEM=="dvb", ENV{DVB_DEVICE_TYPE}=="frontend", ENV{dynamite_timeout}="10" 

adds the property "dynamite_timeout" with a value of "10" to every frontend.

The dynamite udev-monitor now parse this property and sets automatically the timeout for this device. If you only have one specific device for which you want to set a timeout you only have to identify this device in your udev rule, set the timeout and you're done.

But for now this only works for devices which gets attached with the udev-monitor. It is not working for devices which are present when vdr/dynamite starts.

I had to modify the vdr-patch a bit but there shouldn't be any ABI changes.

I add a new command for cDynamicDeviceProbe called "ddpcService". With this command you can queue calls to the dynamite-Service-interface. Since the udev-monitor queues the attach-command for a new dvb-device it can't set the timeout immediately after queueing. It has to be queued, too. Hence the new command which makes this more flexible.


Comments