#!/bin/busybox ash [ -n "$MDEV" ] || exit 0 [ -n "$DEVNAME" ] || exit 0 [ "$SUBSYSTEM" = "input" ] || exit 0 BPATH="input" SPATH="/sys${DEVPATH}" NAME="" if [ -e ${SPATH} ]; then NAME=$(cat ${SPATH}/../name) fi cd $BPATH case "$ACTION" in add|"") if [ ! -e "$MDEV" ]; then mv ../$MDEV . fi case "$NAME" in "TPPS/2 IBM TrackPoint") ln -s $MDEV mouse ;; "AT Translated Set 2 keyboard") ln -s $MDEV kbd ;; esac ;; remove) if [ -e "$MDEV" ]; then rm -f $MDEV fi case "$NAME" in "TPPS/2 IBM TrackPoint") rm -f mouse ;; "AT Translated Set 2 keyboard") rm -f kbd ;; esac ;; esac exit 0