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)

-- 
Openct needs to be restarted when inserting an eToken
https://bugs.launchpad.net/bugs/368683
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to