lkml.org 
[lkml]   [2005]   [May]   [10]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: [ANNOUNCE] hotplug-ng 002 release
    On Mon, May 09, 2005 at 11:13:24PM +0200, Per Svennerbrandt wrote:
    >
    > Along with it I also have a patch witch exports the module aliases for
    > PCI and USB devices through sysfs. With it the "coldplugging" of a
    > system (module wise) can be reduced to pretty much:

    I'd like to see this, that should be acceptable to add to the kernel.

    > #!/bin/sh
    >
    > for DEV in /sys/bus/{pci,usb}/devices/*; do
    > modprobe `cat $DEV/modalias`
    > done

    Yes, very nice :)

    thaks,

    greg k-h
    -
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at http://www.tux.org/lkml/

    \
     
     \ /
      Last update: 2005-05-11 00:46    [W:0.021 / U:119.268 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site