X-Git-Url: https://pd.if.org/git/?a=blobdiff_plain;f=scripts%2Frc.sysinit;h=ebfe17c286da40ee5474ca5e3da30c93c0cc15a4;hb=8f4b6393d2a3fea2008722d6f2b29b3e3d3bb5c7;hp=b693ecd41f93d77dc0d1499f27c59379e75e53dc;hpb=257f33dd235edbdd9d2e185849b2f9cfc0617ea2;p=startuptools diff --git a/scripts/rc.sysinit b/scripts/rc.sysinit index b693ecd..ebfe17c 100644 --- a/scripts/rc.sysinit +++ b/scripts/rc.sysinit @@ -81,8 +81,11 @@ status_check # this covers the case where there isn't one, but we still want # to load more hardware if ! is_true "$NOPROBEHW" ; then - status_begin "looking for kernel modules to load" - lspci -k|grep 'Kernel modules:' | awk '{print $3}'| sort -u | xargs -n1 modprobe + status_begin "loading kernel modules" + modlist=$(lspci -k|grep 'Kernel modules:' | awk '{print $3}'| sort -u) + if [ -n "$modlist" ]; then + modprobe $modlist + fi status_check fi