diff options
Diffstat (limited to 'sys-kernel/linuxwacom-module/files/check_driver')
-rw-r--r-- | sys-kernel/linuxwacom-module/files/check_driver | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/sys-kernel/linuxwacom-module/files/check_driver b/sys-kernel/linuxwacom-module/files/check_driver deleted file mode 100644 index 6e49aa1..0000000 --- a/sys-kernel/linuxwacom-module/files/check_driver +++ /dev/null @@ -1,24 +0,0 @@ -#!/bin/sh -# - -#logger check_driver called with: $1 - $2 - $3 - - -wanted=$1 -devpath=$2 -bustype=$3 - -device=$(readlink /sys/$devpath/device) -device=${device##*/} -driver=$(readlink /sys/$devpath/device/driver) -driver=${driver##*/} - -logger device $device is bound to the $driver driver - -if [ "$driver" != "$wanted" ]; then - logger must rebind - echo -n "$device" > /sys/$devpath/device/driver/unbind - echo -n "$device" > /sys/bus/$bustype/drivers/$wanted/bind -else - logger no need to rebind -fi - |