1509e56b3SMahesh Bandewar#!/bin/sh
2509e56b3SMahesh Bandewar# SPDX-License-Identifier: GPL-2.0
3509e56b3SMahesh Bandewar# Runs blackhole-dev test using blackhole-dev kernel module
4509e56b3SMahesh Bandewar
5509e56b3SMahesh Bandewarif /sbin/modprobe -q test_blackhole_dev ; then
6509e56b3SMahesh Bandewar	/sbin/modprobe -q -r test_blackhole_dev;
7509e56b3SMahesh Bandewar	echo "test_blackhole_dev: ok";
8509e56b3SMahesh Bandewarelse
9509e56b3SMahesh Bandewar	echo "test_blackhole_dev: [FAIL]";
10509e56b3SMahesh Bandewar	exit 1;
11509e56b3SMahesh Bandewarfi
12