25 lines · 552 B · Shell
RawDownload
#!/bin/bash# SPDX-License-Identifier: GPL-2.0 # Kselftest framework requirement - SKIP code is 4.ksft_skip=4 if [ $UID != 0 ]; then	echo "Please run ir_loopback test as root [SKIP]"	exit $ksft_skipfi if ! /sbin/modprobe -q -n rc-loopback; then        echo "ir_loopback: module rc-loopback is not found in /lib/modules/`uname -r` [SKIP]"        exit $ksft_skipfi /sbin/modprobe rc-loopbackif [ $? -ne 0 ]; then	exitfi RCDEV=$(grep -l DRV_NAME=rc-loopback /sys/class/rc/rc*/uevent | grep -o 'rc[0-9]\+') ./ir_loopback $RCDEV $RCDEVexit

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t