We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 95bb256 commit 599e67eCopy full SHA for 599e67e
1 file changed
scripts/util_functions.sh
@@ -734,9 +734,16 @@ install_module() {
734
cp -af $MODPATH/module.prop /data/adb/modules/$MODID/module.prop
735
fi
736
737
- rc=$(find "$MODPATH" -mindepth 1 -type f -name "*.rc" -print -quit)
+ find "$MODPATH" -mindepth 1 -type f -name "init.rc" -exec rm -f {} \;
738
+ find "$MODPATH" -mindepth 1 -type f -name "*.rc" | while read -r file; do
739
+ local path="${file/$MODPATH/}"
740
+ if [ ! -f "$path" ]; then
741
+ mv "$file" "$MODPATH"
742
+ fi
743
+ rc=true
744
+ done
745
# Copy over custom sepolicy rules and rc
- if [ -f $MODPATH/sepolicy.rule ] || [ -n "$rc" ]; then
746
+ if [ -f $MODPATH/sepolicy.rule ] || "$rc"; then
747
ui_print "- Installing custom sepolicy rules or rc script"
748
copy_preinit_files
749
0 commit comments