Re: Simple Shell Script
- From: polemon <polemon@xxxxxxxxx>
- Date: Tue, 27 Feb 2007 05:52:47 +0100
On 02/27/2007 05:39 AM, Dan N wrote:
I need a script to insmod a module if lsmod doesn't list it. How would Ilsmod | grep <yourmod>
go about doing that? I know it would be pretty simple.
Thanks
Dan
it's return value is true, if something comes out, and not, if it isn't
maybe somthing like:
if $(lsmod | grep <yourmod>); then
exit 0
fi
insmod <yourmod>
however, you might want to use modprobe instead of insmod.
--polemon
--
-EOF-
.
- References:
- Simple Shell Script
- From: Dan N
- Simple Shell Script
- Prev by Date: Re: Simple Shell Script
- Next by Date: Re: Looking for an application preloader...
- Previous by thread: Re: Simple Shell Script
- Next by thread: Re: Simple Shell Script
- Index(es):
Relevant Pages
|