From: Nathan Wagner Date: Tue, 27 Nov 2018 05:26:59 +0000 (+0000) Subject: handle empty kernel modprobe list X-Git-Url: https://pd.if.org/git/?p=startuptools;a=commitdiff_plain;h=07d48467c9c6dc0edab652c0994d0973240e7997 handle empty kernel modprobe list --- diff --git a/scripts/rc.sysinit b/scripts/rc.sysinit index b693ecd..79de383 100644 --- a/scripts/rc.sysinit +++ b/scripts/rc.sysinit @@ -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