In which file can I write "Modprobe ndiswrapper"

Opensuse 11.2 / Topcom Cardbus /
My WIFI connection is running fine… but I have to initialize manually my connection. Where can I introduce command “modprobe ndiswrapper” to start automatically without freezing my network device?

In yast some where if you really can’t find it I’ll look if no one else give specifics. I think either in the yast kernel module you have modules loaded at boot if not there maybe something in sysconfig.

On openSUSE => nowhere, if you want to do it in a clean way.

Read /etc/sysconfig/kernel and edit it accordingly.

OTOH, adding the ndiswrapper module in the network configuration via udev would be preferable, can also be done in YaST (search hardware tab in network configuration).

I see in “” how to use modprobe… but my network was freezing on boot in all cases.!!!
Now I found this solution:
Network Devices > Network Settings
Pop-up: "There is a ndiswrapper configuration detected but the kernel module was not modprobed. Do you want to modprobe ndiswrapper? Yes / NO > YES
Network is current controlled by Network Manager and its settings cannot be edited by YaST. To edit the settings,use Network Manager connection editor, or switch the network setup method to Traditional method with ifup. YES / YES

Have somebody a better solution to boot WIFI without manual intervention?
Thanks !!

There are 3 possibilities:




The names are quite self explaining, choose your poison.

I found only boot.local file
Do I create “before.local” or “after.local” files ?


Obviously, yes.


with after.local… OK !!!

thanks for help

Just a little addition about those three files (of which two are not there by default).

From /etc/init.d/boot.local

# /etc/init.d/boot.local
# script with local commands to be executed from init on system startup
# Here you should add things, that should happen directly after booting
# **before we're going to the first run level**.

So this is directly after the normal "boot"scripts in /etc/init.d have been run.

The other two files are called by /etc/init.d/rc.

# Start the user defined resource control script which
# should be executed _before_ runlevel is entered.
if test -f /etc/init.d/before.local ; then
    echo -n "Master Resource Control: "
    echo "Running /etc/init.d/before.local"
    /bin/sh /etc/init.d/before.local
    rc_status -v1 -r
    splashtrigger "before.local"

I am not 100% sure how much “before” boot.local this means, just add this file (empty) and read /var/log/boot.msg after next reboot.

Now let’s have a look at the third file:

# Check if we are able to use make like booting
test -s /etc/init.d/.depend.start || RUN_PARALLEL="no"
test -s /etc/init.d/.depend.stop  || RUN_PARALLEL="no"
test "$DO_CONFIRM"   = "yes"      && RUN_PARALLEL="no"
type -p startpar &> /dev/null     || RUN_PARALLEL="no"
startpar -v      &> /dev/null     || RUN_PARALLEL="no"
if test -f /etc/init.d/after.local ; then
**    echo -n "Master Resource Control: "**
    echo "Running /etc/init.d/after.local"
    /bin/sh /etc/init.d/after.local
    rc_status -v1 -r
    splashtrigger "after.local"

As one can see by the line marked in bold letters, this is directly called after the desired runlevel has been reached.

This file can be compared with debian’s “/etc/rc.local” (AFAIK RH/Fedora have that file rc.local, too).

For your information… I created after.boot file with only code: “modprobe ndiswrapper” …
My WIFI card start on boot without problem !!