Does anybody knows now how i can make this lsmod command permenent so even after a reconfigure the device will be there?
and does anybody know how i can register that device to my ETH3
I think you mean eth2 (the defaults are eth0 & eth1).
You could create a custom template to allow you to set this via the config database.
mkdir -p /etc/e-smith/templates-custom/etc/modprobe.conf
cd /etc/e-smith/templates-custom/etc/modprobe.conf
cp /etc/e-smith/templates/etc/modprobe.conf/10EthernetDrivers .
nano 10EthernetDrivers (or pico or mcedit)
Change the code as below (note: the eth[012] on the first code line
{
@lines = grep { !/^\s*alias\s*eth[012]/ } @lines;
if (defined $EthernetDriver1 && $EthernetDriver1 ne "unknown")
{
push @lines, "alias eth0 ${EthernetDriver1}";
}
if (defined $EthernetDriver2 && $EthernetDriver2 ne "unknown")
{
push @lines, "alias eth1 ${EthernetDriver2}";
}
if (defined $EthernetDriver3 && $EthernetDriver3 ne "unknown")
{
push @lines, "alias eth2 ${EthernetDriver3}";
}
"";
}
Then you need to set the config db variable and expand the modprobe.conf file
config set EthernetDriver3 pegasus
expand-template /etc/modprobe.conf
All subsequent reboots should set the diver for eth2 to pegasus (or whatever you change it to in the config database).
Beware though, I haven't tested this...... Try it on a test box first.
Good Luck
Trevor B