12 lines · bash
1#!/bin/sh2# SPDX-License-Identifier: GPL-2.03# Runs bpf test using test_bpf kernel module4 5if /sbin/modprobe -q test_bpf ; then6 /sbin/modprobe -q -r test_bpf;7 echo "test_bpf: ok";8else9 echo "test_bpf: [FAIL]";10 exit 1;11fi12 1#!/bin/sh2# SPDX-License-Identifier: GPL-2.03# Runs bpf test using test_bpf kernel module4 5if /sbin/modprobe -q test_bpf ; then6 /sbin/modprobe -q -r test_bpf;7 echo "test_bpf: ok";8else9 echo "test_bpf: [FAIL]";10 exit 1;11fi12