replicant-vendor_replicant/prebuilt/common/etc/init.d/04modules
Giulio Cervera c27aa964e6 cm: slight check on modules load
Change-Id: I4847c8193ebb44e2b25a02c8af05b544e7b10a47
2011-01-29 20:27:33 +01:00

19 lines
201 B
Bash
Executable File

#!/system/bin/sh
#
# Load any extra modules
MODULES="ipv6"
KVER=`uname -r`
if [ ! -d /system/lib/modules/$KVER ]
then
exit 0
fi
for i in $MODULES
do
modprobe $i >/dev/null 2>&1
done
exit 0