Linux Audio

Check our new training course

Loading...
v4.10.11
 1#!/bin/sh
 
 2# Runs printf infrastructure using test_printf kernel module
 
 
 
 
 3
 4if /sbin/modprobe -q test_printf; then
 5	/sbin/modprobe -q -r test_printf
 6	echo "printf: ok"
 7else
 8	echo "printf: [FAIL]"
 9	exit 1
10fi
v4.17
 1#!/bin/sh
 2# SPDX-License-Identifier: GPL-2.0
 3# Runs printf infrastructure using test_printf kernel module
 4if ! /sbin/modprobe -q -n test_printf; then
 5	echo "printf: [SKIP]"
 6	exit 77
 7fi
 8
 9if /sbin/modprobe -q test_printf; then
10	/sbin/modprobe -q -r test_printf
11	echo "printf: ok"
12else
13	echo "printf: [FAIL]"
14	exit 1
15fi