commit | e49abc286e6968ca9a40b5c929a435d8cf1750ee | [log] [tgz] |
---|---|---|
author | Steve Kondik <shade@chemlab.org> | Sun Jan 30 19:09:33 2011 +0000 |
committer | Gerrit Code Review <gerrit@review.cyanogenmod.com> | Sun Jan 30 19:09:33 2011 +0000 |
tree | 0e73ad4d68116c1ef54def345581f2cc0e1f8266 | |
parent | 7a1eca10f2b015d5a9d58baf8e737fafae36a504 [diff] | |
parent | c27aa964e6e3a2998d72cdfee82bdc4b90212883 [diff] |
Merge "cm: slight check on modules load" into gingerbread
diff --git a/prebuilt/common/etc/init.d/04modules b/prebuilt/common/etc/init.d/04modules index ad85910..1f00d63 100755 --- a/prebuilt/common/etc/init.d/04modules +++ b/prebuilt/common/etc/init.d/04modules
@@ -4,7 +4,15 @@ MODULES="ipv6" -for i in $MODULES; +KVER=`uname -r` +if [ ! -d /system/lib/modules/$KVER ] +then + exit 0 +fi + +for i in $MODULES do - modprobe $i; + modprobe $i >/dev/null 2>&1 done + +exit 0