slitaz-boot-scripts rev 451

init: load any arch module
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue Jun 05 20:27:54 2018 +0200 (13 months ago)
parents 4419de82d99c
children 45e6a718f31e
files init
line diff
     1.1 --- a/init	Sun Mar 04 18:32:31 2018 +0100
     1.2 +++ b/init	Tue Jun 05 20:27:54 2018 +0200
     1.3 @@ -119,7 +119,10 @@
     1.4  mod() {
     1.5  	for i in $@; do
     1.6  		echo "Loading module: $i"
     1.7 -		modprobe $i 2>/dev/null || busybox insmod $(find /lib/modules|sed "/$i.ko/!dq")
     1.8 +		modprobe $i 2>/dev/null ||
     1.9 +		for j in $(find /lib/modules|sed "/\/$i.ko/!d"); do
    1.10 +			busybox insmod $j && break
    1.11 +		done
    1.12  	done
    1.13  }
    1.14