Aerodactyl: Move init.insmod.sh to device tree
This commit is contained in:
@@ -1240,7 +1240,6 @@ PRODUCT_PACKAGES += \
|
|||||||
vendor.noth.hardware.sensor.sensor_extension-service \
|
vendor.noth.hardware.sensor.sensor_extension-service \
|
||||||
vendor.trustonic.tee@1.1-service \
|
vendor.trustonic.tee@1.1-service \
|
||||||
vtservice_hidl \
|
vtservice_hidl \
|
||||||
init.insmod \
|
|
||||||
ipsec_mon \
|
ipsec_mon \
|
||||||
lbs_hidl_service \
|
lbs_hidl_service \
|
||||||
mcDriverDaemon \
|
mcDriverDaemon \
|
||||||
|
|||||||
@@ -25516,14 +25516,6 @@ cc_prebuilt_binary {
|
|||||||
soc_specific: true,
|
soc_specific: true,
|
||||||
}
|
}
|
||||||
|
|
||||||
sh_binary {
|
|
||||||
name: "init.insmod",
|
|
||||||
owner: "nothing",
|
|
||||||
src: "proprietary/vendor/bin/init.insmod.sh",
|
|
||||||
filename: "init.insmod.sh",
|
|
||||||
soc_specific: true,
|
|
||||||
}
|
|
||||||
|
|
||||||
cc_prebuilt_binary {
|
cc_prebuilt_binary {
|
||||||
name: "ipsec_mon",
|
name: "ipsec_mon",
|
||||||
owner: "nothing",
|
owner: "nothing",
|
||||||
|
|||||||
-34
@@ -1,34 +0,0 @@
|
|||||||
#!/vendor/bin/sh
|
|
||||||
|
|
||||||
########################################################
|
|
||||||
### init.insmod.cfg format: ###
|
|
||||||
### ----------------------------------------------- ###
|
|
||||||
### [insmod|setprop|enable/moprobe] [path|prop name] ###
|
|
||||||
### ... ###
|
|
||||||
########################################################
|
|
||||||
|
|
||||||
if [ $# -eq 1 ]; then
|
|
||||||
cfg_file=$1
|
|
||||||
else
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ -f $cfg_file ]; then
|
|
||||||
while IFS="|" read -r action arg
|
|
||||||
do
|
|
||||||
case $action in
|
|
||||||
"insmod") insmod $arg ;;
|
|
||||||
"setprop") setprop $arg 1 ;;
|
|
||||||
"enable") echo 1 > $arg ;;
|
|
||||||
"modprobe")
|
|
||||||
case ${arg} in
|
|
||||||
"-b *" | "-b")
|
|
||||||
arg="-b $(cat /vendor/lib/modules/modules.load)" ;;
|
|
||||||
"*" | "")
|
|
||||||
arg="$(cat /vendor/lib/modules/modules.load)" ;;
|
|
||||||
esac
|
|
||||||
modprobe -a -d /vendor/lib/modules $arg ;;
|
|
||||||
esac
|
|
||||||
done < $cfg_file
|
|
||||||
fi
|
|
||||||
|
|
||||||
Reference in New Issue
Block a user