[ltp] Re: A new udev rule gives me 3min startup delay

Bjørn Mork linux-thinkpad@linux-thinkpad.org
Wed, 26 Aug 2009 14:39:01 +0200


Daniel Castro <castromd@tcd.ie> writes:

> Do I need to change the contents of /etc/udev/rules.d/80-thinkpad-T61.rul=
es?
> To something like:
>
> KERNEL=="dock.0", ATTR{docked}=="1", ACTION==change,
> RUN+="/etc/thinkpad/dock.sh 1"
> KERNEL=="dock.0", ATTR{docked}=="0", ACTION==change,
> RUN+="/etc/thinkpad/dock.sh 0"

Not that it matters much, but you can simplify this to a single rule: 

 KERNEL=="dock.0", ACTION==change, RUN+="/etc/thinkpad/dock.sh $attr{docked}"



Bjørn