aboutsummaryrefslogtreecommitdiffstats
path: root/mdev/lib/inputdev
diff options
context:
space:
mode:
authorChristoph Lohmann <20h@r-36.net>2012-05-28 13:55:58 +0200
committerChristoph Lohmann <20h@r-36.net>2012-05-28 13:55:58 +0200
commit0ae13c5543d925768153f7356ca216330d24a0fd (patch)
tree8e82f53451a5ae0e6e6f025b53b64b1ac496a180 /mdev/lib/inputdev
parentdb64d569025530b743e4d2140fc10e0431ae0815 (diff)
downloadnldev-0ae13c5543d925768153f7356ca216330d24a0fd.tar.bz2
nldev-0ae13c5543d925768153f7356ca216330d24a0fd.tar.xz
Preliminary fixes for the new mdev in busybox.
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")