Skip to Content.
Sympa Menu

sm-grimoire - [SM-Grimoire] network.sh

sm-grimoire AT lists.ibiblio.org

Subject: Discussion of Spells and Grimoire items

List archive

Chronological Thread  
  • From: Craig Dyke <grail AT westnet.com.au>
  • To: Grimoire <sm-grimoire AT lists.ibiblio.org>
  • Subject: [SM-Grimoire] network.sh
  • Date: Wed, 23 Jul 2003 14:37:31 -0000

Almost forgot ... something else that had been bugging me lately
was that I noticed when ever I changed runlevels (3 or 5) that
I keep getting a failed message about my NIC module already
going.

After a bit of poking around I found that:

if [ ! -z "$MODULE" ]

Will always be true for me as MODULE always has a value in it
and so modprobe keeps getting run.
I altered line to be:

if [ ! -z "$MODULE" ] && [ ! $(/sbin/lsmod | grep -Eo "$MODULE") ]

Which seems to work :)

I would like feedback on whether thsi is reasonable and thought if
it works well maybe it could make an update??

Craig





Archive powered by MHonArc 2.6.24.

Top of Page