From d44cd79a9a9f646f24318a7af3e469a12b93de08 Mon Sep 17 00:00:00 2001 From: illiliti Date: Sat, 15 Feb 2020 05:17:34 +0300 Subject: [PATCH] fix modprobe --- generate | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/generate b/generate index 1106502..d83f4ec 100755 --- a/generate +++ b/generate @@ -229,7 +229,8 @@ install_driver() { # strip path and extension driver="${driver##*/}" driver="${driver%%.*}" - for driver_dep in $(modprobe -D "$driver" 2> /dev/null | grep -v builtin | cut -d " " -f 2); do + # TODO busybox modprobe doesn't support -S option + for driver_dep in $(modprobe -S "$kernel" -D "$driver" 2> /dev/null | grep -v builtin | cut -d " " -f 2); do install -Dm644 "$driver_dep" "${wrkdir}${driver_dep}" done done