aboutsummaryrefslogtreecommitdiffstats
path: root/mdev/lib/inputdev
diff options
context:
space:
mode:
Diffstat (limited to 'mdev/lib/inputdev')
-rwxr-xr-xmdev/lib/inputdev19
1 files changed, 11 insertions, 8 deletions
diff --git a/mdev/lib/inputdev b/mdev/lib/inputdev
index 192dc54..c02f872 100755
--- a/mdev/lib/inputdev
+++ b/mdev/lib/inputdev
@@ -1,5 +1,7 @@
#!/bin/busybox ash
+set +x
+
[ -n "$MDEV" ] || exit 0
[ -n "$DEVNAME" ] || exit 0
[ "$SUBSYSTEM" = "input" ] || exit 0
@@ -16,10 +18,7 @@ fi
cd $BPATH
case "$ACTION" in
add|"")
- if [ ! -e "$MDEV" ];
- then
- mv ../$MDEV .
- fi
+ mv ../$MDEV .
case "$NAME" in
"TPPS/2 IBM TrackPoint")
@@ -28,13 +27,13 @@ case "$ACTION" in
"AT Translated Set 2 keyboard")
ln -s $MDEV kbd
;;
+ "ThinkPad Extra Buttons")
+ ln -s $MDEV extrabuttons
+ ;;
esac
;;
remove)
- if [ -e "$MDEV" ];
- then
- rm -f $MDEV
- fi
+ rm -f $MDEV
case "$NAME" in
"TPPS/2 IBM TrackPoint")
@@ -43,8 +42,12 @@ case "$ACTION" in
"AT Translated Set 2 keyboard")
rm -f kbd
;;
+ "ThinkPad Extra Buttons")
+ rm -f extrabuttons
+ ;;
esac
;;
esac
exit 0
+