From ef1ca54691f7aa410ad57f5245e3fd61592a9fe8 Mon Sep 17 00:00:00 2001 From: illiliti Date: Wed, 5 Feb 2020 16:37:23 +0300 Subject: [PATCH] simplify find --- init | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/init b/init index dea5336..fbe8423 100644 --- a/init +++ b/init @@ -39,7 +39,7 @@ use_mdev() { done # load drivers - find /sys -name "modalias" -type f -exec cat "{}" + | sort -u | xargs modprobe -ba + find /sys -name "modalias" -type f -exec sort -u "{}" + | xargs modprobe -ba } # setup mdevd