aboutsummaryrefslogtreecommitdiffstats
path: root/mdev/lib/inputdev
diff options
context:
space:
mode:
Diffstat (limited to 'mdev/lib/inputdev')
-rwxr-xr-xmdev/lib/inputdev14
1 files changed, 9 insertions, 5 deletions
diff --git a/mdev/lib/inputdev b/mdev/lib/inputdev
index c02f872..02c20ee 100755
--- a/mdev/lib/inputdev
+++ b/mdev/lib/inputdev
@@ -6,6 +6,7 @@ set +x
[ -n "$DEVNAME" ] || exit 0
[ "$SUBSYSTEM" = "input" ] || exit 0
+MDEV=$(basename ${MDEV})
BPATH="input"
SPATH="/sys${DEVPATH}"
@@ -15,25 +16,28 @@ then
NAME=$(cat ${SPATH}/../name)
fi
+printf "bpath = '%s'; spath = '%s'; name = '%s';\n" "$BPATH" "$SPATH" "$NAME" \
+ | logger -t daemon
+
cd $BPATH
case "$ACTION" in
add|"")
- mv ../$MDEV .
+ #mv ../$MDEV .
case "$NAME" in
"TPPS/2 IBM TrackPoint")
- ln -s $MDEV mouse
+ ln -fs $MDEV mouse
;;
"AT Translated Set 2 keyboard")
- ln -s $MDEV kbd
+ ln -fs $MDEV kbd
;;
"ThinkPad Extra Buttons")
- ln -s $MDEV extrabuttons
+ ln -fs $MDEV extrabuttons
;;
esac
;;
remove)
- rm -f $MDEV
+ #rm -f $MDEV
case "$NAME" in
"TPPS/2 IBM TrackPoint")