blob: 2654ec18b49c196862dcd568eb1352ca8119c7f4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
#!/system/bin/sh
rc=0
insmod /system/modules/juice_input_test_module.ko
rc=$?
if [ $rc -ne 0 ]; then
echo "Insmod juice input kernel module failed!"
fi
N=`dmesg |grep Juice|awk -F '' '{print $NF}'`
echo "Evdev IOCTL CMD TEST START"
juice_evtest -p /dev/input/event$N
rc=$?
if [ $rc -ne 0 ]; then
echo "Evdev IOCTL CMD TEST FAIL!"
else
echo "EVDEV IOCTL CMD TEST FINISH"
fi
rmmod juice_input_test_module
rc=$?
if [ $rc -ne 0 ]; then
echo "Remove juice input kernel module failed!"
fi
|