blob: 6e67b154a56fbd81929c4a4f7146c531fb74369f [file] [log] [blame]
subrata_modakfb298ea2009-03-16 08:46:57 +00001#!/bin/sh
2################################################################################
3## ##
4## Copyright (c) International Business Machines Corp., 2009 ##
5## ##
6## This program is free software; you can redistribute it and#or modify ##
7## it under the terms of the GNU General Public License as published by ##
8## the Free Software Foundation; either version 2 of the License, or ##
9## (at your option) any later version. ##
10## ##
11## This program is distributed in the hope that it will be useful, but ##
12## WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY ##
13## or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License ##
14## for more details. ##
15## ##
16## You should have received a copy of the GNU General Public License ##
17## along with this program; if not, write to the Free Software ##
Wanlong Gao4548c6c2012-10-19 18:03:36 +080018## Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA ##
subrata_modakfb298ea2009-03-16 08:46:57 +000019## ##
20################################################################################
21# ##
22# File : load_stress_all_kernel_modules.sh ##
23# ##
24# Description: Try to load all the modules present in the system, installed ##
25# both during Distro installation, or, custom kernel build. ##
26# ##
27# Author: Subrata Modak <subrata@linux.vnet.ibm.com> ##
28################################################################################
29
30for module in `modprobe -l | tr '\n' ' '`
31 do
32 insert_module=`basename $module .ko`
33 modprobe -v $insert_module
34done
35