From 07d48467c9c6dc0edab652c0994d0973240e7997 Mon Sep 17 00:00:00 2001 From: Nathan Wagner Date: Tue, 27 Nov 2018 05:26:59 +0000 Subject: [PATCH] handle empty kernel modprobe list --- scripts/rc.sysinit | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 -- 2.40.0