|
From: Serge L. <fi...@in...> - 2008-01-17 11:49:56
|
Andrea Montefusco wrote:
>>> In DL environment, which is the right way to accomodate two driver for a
>>> single card in more polite way ?
>> Have you tried the following?
>> MODULE="8390 ne2k-pci"
>>
>> i.e. 2 modules in one line?
>
> I try but without success: the script /etc/init.d/network does not
> support two modules on the same line.
>
I looked thru the network script more accurately to define how the $MODULE is used:
grep MODULE /etc/init.d/network
MODULE=
MODULE_OPTS=
if [ -n "$MODULE" ]; then
modprobe $MODULE $MODULE_OPTS > /dev/null
Well, it really leads to error.
Let me suggest the following changes:
--- /etc/init.d/network 2008-01-17 11:13:18.816886600 -0500
+++ /tmp/net 2008-01-17 11:25:25.803589123 -0500
@@ -175,7 +175,11 @@
#
if [ "$ONBOOT" = "yes" -o "$ONLY_INTERFACE" = "$IF" ]; then
if [ -n "$MODULE" ]; then
- modprobe $MODULE $MODULE_OPTS > /dev/null
+ if [ $(echo $MODULE | wc -w) -gt 1 ];then
+ modprobe -a $MODULE > /dev/null
+ else
+ modprobe $MODULE $MODULE_OPTS > /dev/null
+ fi
fi
It should work. I've checked it on my system (DL 1.3) and I shall be vastly
obliged if you verify it on DL 1.2
--
Sincerely,
Serge Leschinsky
|