Find the answer to your Linux question:
Results 1 to 2 of 2
Hello everybody, I have a question, how is it possible to reload module on hotplug, if it is already loaded ? E.g. execute automatically Code: modprobe -r somedriver && modprobe ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Jan 2007
    Location
    Germany
    Posts
    73

    Question How to reload modules automatically ???


    Hello everybody,

    I have a question, how is it possible to reload module on hotplug, if it is already loaded ? E.g. execute automatically
    Code:
     modprobe -r somedriver && modprobe somedriver
    Thnaks in advance for useful hints,
    Xaleandr
    -------------------------------------------------------------------------
    Original problem: I have a DVB-T USB stick; when I boot the system with it inserted, it works fine; however if I take it out and hotplug later, I get
    Code:
    dvb-usb: no frontend was attached by 'LITE-ON USB2.0 DVB-T Tuner'
    in dmesg.
    The problem has been reported by several peoples, seems it is a bug in dvb driver. The first "work-around" is to reboot the system
    the second "hack" is to reload the drivers dvb_.... (available only to root). So it would be nice if system made this automatically

  2. #2
    Just Joined!
    Join Date
    Jan 2012
    Posts
    1
    was having a loading problem with the battery module with kernel 3.1.5 and put the line @ the end of /etc/profile ( debian )

    modprobe -r ${MODULE} && modprobe ${MODULE}

    where ${MODULE} is the module you want to reload.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •