]> pd.if.org Git - startuptools/commitdiff
handle empty kernel modprobe list
authorNathan Wagner <nw@hydaspes.if.org>
Tue, 27 Nov 2018 05:26:59 +0000 (05:26 +0000)
committerNathan Wagner <nw@hydaspes.if.org>
Tue, 27 Nov 2018 05:26:59 +0000 (05:26 +0000)
scripts/rc.sysinit

index b693ecd41f93d77dc0d1499f27c59379e75e53dc..79de383b143b004e3312d94fb5953cda29a52fde 100644 (file)
@@ -81,8 +81,8 @@ 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"
+       modprobe $(lspci -k|grep 'Kernel modules:' | awk '{print $3}'| sort -u)
        status_check
 fi