Re: Loading a module multtiple times

Rusty Russell (rusty@rustcorp.com.au)
Thu, 01 May 2003 16:22:10 +1000


In message <33490.4.64.196.31.1051765837.squirrel@www.osdl.org> you write:
> Argh, I looked thru insmod.c but not modprobe.c for a solution.

Well, you *could* do:

for i in `seq 1 9`; do
sed "s/dummy/dumm$i/g" < dummy.ko > dumm$i.ko
insmod dumm$i.ko
done

But don't 8)

Rusty.

--
  Anyone who quotes me in their sig is an idiot. -- Rusty Russell.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/