From b6bc7fae227b041c0dad05f746557d70855b9f4c Mon Sep 17 00:00:00 2001 From: Mashopy Date: Mon, 18 Aug 2025 21:26:52 +0200 Subject: [PATCH] Aerodactyl: Move init.insmod.sh to device tree --- Aerodactyl-vendor.mk | 1 - Android.bp | 8 ------- proprietary/vendor/bin/init.insmod.sh | 34 --------------------------- 3 files changed, 43 deletions(-) delete mode 100755 proprietary/vendor/bin/init.insmod.sh diff --git a/Aerodactyl-vendor.mk b/Aerodactyl-vendor.mk index a4c9f4c..800ac06 100644 --- a/Aerodactyl-vendor.mk +++ b/Aerodactyl-vendor.mk @@ -1240,7 +1240,6 @@ PRODUCT_PACKAGES += \ vendor.noth.hardware.sensor.sensor_extension-service \ vendor.trustonic.tee@1.1-service \ vtservice_hidl \ - init.insmod \ ipsec_mon \ lbs_hidl_service \ mcDriverDaemon \ diff --git a/Android.bp b/Android.bp index 43099c9..096104f 100644 --- a/Android.bp +++ b/Android.bp @@ -25516,14 +25516,6 @@ cc_prebuilt_binary { 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 { name: "ipsec_mon", owner: "nothing", diff --git a/proprietary/vendor/bin/init.insmod.sh b/proprietary/vendor/bin/init.insmod.sh deleted file mode 100755 index 67b6b2f..0000000 --- a/proprietary/vendor/bin/init.insmod.sh +++ /dev/null @@ -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 -