From 8f4b6393d2a3fea2008722d6f2b29b3e3d3bb5c7 Mon Sep 17 00:00:00 2001 From: Nathan Wagner Date: Tue, 27 Nov 2018 05:36:21 +0000 Subject: [PATCH] fix empty module list handling --- scripts/rc.sysinit | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/scripts/rc.sysinit b/scripts/rc.sysinit index 79de383..ebfe17c 100644 --- a/scripts/rc.sysinit +++ b/scripts/rc.sysinit @@ -82,7 +82,10 @@ status_check # to load more hardware if ! is_true "$NOPROBEHW" ; then status_begin "loading kernel modules" - modprobe $(lspci -k|grep 'Kernel modules:' | awk '{print $3}'| sort -u) + modlist=$(lspci -k|grep 'Kernel modules:' | awk '{print $3}'| sort -u) + if [ -n "$modlist" ]; then + modprobe $modlist + fi status_check fi -- 2.40.0