wacom-tools init.d script is broken
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
wacom-tools (Ubuntu) |
Fix Released
|
Medium
|
Unassigned |
Bug Description
The last update I did of wacom-tools (1:0.7.2-0ubuntu4) stopped the pen working on my
tablet (a tc4200 tablet PC, wacdump calls it an "acer c100 tablet pc screen"). I did a little investigating and found that the init scrip was no longer configuring my serial port correctly. The problem code seems to be this bit:
PORT=/dev/`echo $x/tty:* | awk -F: '{print $3}'`
ln -sf $PORT /dev/wacom
My limited understanding of shell scripting tells me this can't possibly
work: $x usually looks something like "00:04", so the echo command
should output "00:04/tty:*", and then the awk command will chop that
down to "*". I can't imagine this bit of code working under any
circumstances, so I'm pretty sure there's something wrong here.. I
checked, and when the script is run, that second command does turn out
as "ln -sf /dev/* /dev/wacom".
Additionally, there is no longer any IO port or IRQ setting as there used to be. I have restored the old init script and it still works just fine.
Luke
I should clarify that the real problem with the init script is not that it doesn't create the /dev/wacom symlink as I had discussed, but rather that it makes no attempt to configure the serial port at all.