Re: [SLUG] Loading a driver permanently

From: Brian Coyle (brian@linuxwidows.com)
Date: Thu Aug 29 2002 - 18:09:20 EDT


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Thursday 29 August 2002 17:13, Mario Lombardo wrote:
> Glen, modprobe and insmod in RH7.1 seem not be the same file.

Did you look? (BTW- this is Mdk, not RH so YMMV)...

        $ which insmod
        /sbin/insmod
        $ which modprobe
        /sbin/modprobe

        $ ls -l /sbin/insmod /sbin/modprobe
        -rwxr-xr-x 1 root root 93660 Sep 11 2001 /sbin/insmod
        lrwxrwxrwx 1 root root 6 Sep 23 2001 /sbin/modprobe ->
insmod

> When I
> run modprobe alone it returns with the shell prompt. When I run
> insmod, it sends all kinds of toplevel information to the console,
> stdout whatever, and it loads the driver successfully.

insmod performs differently based on the value of $0 (the program name).
modprobe will read the /etc/modules.conf file to load any dependancies.

man modprobe and insmod for gory details...
 

- --
If you're not living on the edge, you're taking up too much space...
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE9bpuQER3MuHUncBsRAvHbAJsGSNuiD7vN/aFZzmuSxDUJoLz3WwCdFgTD
INue5SEtvLbGRd6rkN2DV8c=
=cobG
-----END PGP SIGNATURE-----



This archive was generated by hypermail 2.1.3 : Fri Aug 01 2014 - 17:23:04 EDT