From efd23620f4c025abf41efe5daeec8920a797070e Mon Sep 17 00:00:00 2001 From: illiliti Date: Wed, 26 Feb 2020 12:46:31 +0300 Subject: [PATCH] use sed --- tinyramfs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tinyramfs b/tinyramfs index 908f126..f76f21f 100755 --- a/tinyramfs +++ b/tinyramfs @@ -268,8 +268,7 @@ install_driver() { # TODO busybox modprobe doesn't support -S option modprobe -S "$kernel" -D "$driver" 2> /dev/null | - grep -v "builtin\|net" | - cut -d " " -f 2 | + sed "/builtin\|net/d;s/insmod //" | while read -r full_driver; do