diff options
Diffstat (limited to 'mdev/lib/inputdev')
-rwxr-xr-x | mdev/lib/inputdev | 14 |
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") |