diff options
author | Giulio Cervera <giulio.cervera@gmail.com> | 2011-01-29 20:13:54 +0100 |
---|---|---|
committer | Giulio Cervera <giulio.cervera@gmail.com> | 2011-01-29 20:27:33 +0100 |
commit | c27aa964e6e3a2998d72cdfee82bdc4b90212883 (patch) | |
tree | ee13297a2776bc041fff6961ab0409dd4fba4bf7 /prebuilt/common/etc/init.d/04modules | |
parent | d651911c89f8e0d8a54e0354b82eeeace5764dfd (diff) | |
download | vendor_replicant-c27aa964e6e3a2998d72cdfee82bdc4b90212883.zip vendor_replicant-c27aa964e6e3a2998d72cdfee82bdc4b90212883.tar.gz vendor_replicant-c27aa964e6e3a2998d72cdfee82bdc4b90212883.tar.bz2 |
cm: slight check on modules load
Change-Id: I4847c8193ebb44e2b25a02c8af05b544e7b10a47
Diffstat (limited to 'prebuilt/common/etc/init.d/04modules')
-rwxr-xr-x | prebuilt/common/etc/init.d/04modules | 12 |
1 files changed, 10 insertions, 2 deletions
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 |