2 # SPDX-License-Identifier: GPL-2.0
4 # Kselftest framework requirement - SKIP code is 4.
8 echo "Please run ir_loopback test as root [SKIP]"
12 if ! /sbin
/modprobe
-q -n rc-loopback
; then
13 echo "ir_loopback: module rc-loopback is not found [SKIP]"
17 /sbin
/modprobe rc-loopback
22 RCDEV
=$
(grep -l DRV_NAME
=rc-loopback
/sys
/class
/rc
/rc
*/uevent |
grep -o 'rc[0-9]\+')
24 .
/ir_loopback
$RCDEV $RCDEV