Comment 12 for bug 368683

Revision history for this message
Aron Griffis (agriffis) wrote :

Regarding "exec 2> /tmp/openct-script.log 2>&1" -- this is a mistake. It redirects stderr first to the file then redirects stderr to stdout. That's why the logfile was created but blank. You meant "exec 2> /tmp/openct-script.log 1>&2" to capture both stdout and stderr. Alternatively "exec 2> /tmp/openct-script.log" would suffice because "set -x" outputs on stderr.

The reason the hotplug is failing is that the udev script calls udevinfo which has been subsumed recently by udevadm. Additionally the script is faulty because it will fall through if udevinfo produces no output, since /dev/ satisfies the -n and -e checks.

Here is a patch to fix both problems. I've tested this on karmic (openct-0.6.14-3ubuntu2)