xref: /linux/tools/testing/selftests/net/test_blackhole_dev.sh (revision 26fbb4c8c7c3ee9a4c3b4de555a8587b5a19154e)
1#!/bin/sh
2# SPDX-License-Identifier: GPL-2.0
3# Runs blackhole-dev test using blackhole-dev kernel module
4
5if /sbin/modprobe -q test_blackhole_dev ; then
6	/sbin/modprobe -q -r test_blackhole_dev;
7	echo "test_blackhole_dev: ok";
8else
9	echo "test_blackhole_dev: [FAIL]";
10	exit 1;
11fi
12