[Defy General] MauroSZ:
I debbuged the script

2_27D_2009 and 2_27G_2009

kernels

are the same: Apps_3.0.8-perf, There is a loggerlauncher_Qualcomm maybe Moto has not patched... I've run your script and many errors were found. Then I decided to debug it. I fixed all errors but still have not worked. I'm supposed you can adjust the script near the end.

Let me show step by step:

ote: Omitted @ due XDA mention system.

1- The beginning - no errors

title Motorola Motoluxe XT615 2nd-init/CWM Recovery Installation
cls
echo Motorola Motoluxe XT615 2nd-init/CWM Recovery Installation
echo ********************************************************************
echo
[*] This will install permanent 2nd-init/CWM Recovery to your Device
echo
[*] Make sure your device is rooted
echo
[*] Credits to enox.co for CWM Recovery
echo
[*] Make sure USB Debugging is enabled
echo
[*] Press any key once the above steps have been complied.
echo ********************************************************************
pause
echo
[*] Waiting for Device
adb wait-for-device
echo
[*] Device found
echo
[*] Pushing bootmenu in /data/local/tmp
adb push bootmenu.zip /data/local/tmp/
adb push busybox /data/local/tmp/
echo
[*] Remounting system partition as r/w
adb shell su -c 'mount -o remount,rw -t yaffs2 /dev/block/system /system'
echo
[*] Making new directories

2- Error fixed

adb shell su -c 'mv /data/local/tmp/busybox/ /system/bin/'

failed on '/data/local/tmp/busybox/' - Cross-device link

fixed:

adb shell su -c 'cp /data/local/tmp/busybox /system/bin/'
adb shell su -c 'rm /data/local/tmp/busybox'

3- No error

adb shell su -c 'chmod 755 /system/bin/busybox'
adb shell su -c 'mkdir /system/bootmenu'
adb shell su -c 'mkdir /system/bootmenu/2nd-init'
echo
[*] Installing 2nd-init/CWM Recovery
adb shell su -c 'cd /system/bootmenu/'
adb shell su -c 'busybox unzip -o /data/local/tmp/bootmenu.zip -d /system/bootmenu'
echo
[*] Copying the required binaries to /system/bootmenu/2nd-init
adb shell su -c 'busybox cp /init /system/bootmenu/2nd-init/'
adb shell su -c 'busybox cp /init.goldfish.rc /system/bootmenu/2nd-init/'
adb shell su -c 'busybox cp /init.qcom.rc /system/bootmenu/2nd-init/'
adb shell su -c 'busybox cp /init.rc /system/bootmenu/2nd-init/'
adb shell su -c 'busybox cp /ueventd.rc /system/bootmenu/2nd-init/'
echo
[*] Copying the required binaries to /system/bootmenu/binary/
adb shell su -c 'busybox cp /sbin/adbd /system/bootmenu/binary/'
echo
[*] Correcting Permissions
adb shell su -c 'chmod 755 /system/bootmenu/*'
adb shell su -c 'chmod 755 /system/bootmenu/2nd-boot/*'

4- Error fixed

adb shell su -c 'chmod 755 /system/bootmenu/2nd-boot/sbin/*'

Unable to chmod /system/bootmenu/2nd-boot/sbin/*: No such file or directory

Fixed:

adb shell su -c 'chmod 755 /system/bootmenu/2nd-boot/sbin'

5- No error

adb shell su -c 'chmod 755 /system/bootmenu/2nd-init/*'
adb shell su -c 'chmod 755 /system/bootmenu/binary/*'
adb shell su -c 'chmod 755 /system/bootmenu/config/*'
adb shell su -c 'chmod 755 /system/bootmenu/images/*'
adb shell su -c 'chmod 755 /system/bootmenu/recovery/*'
adb shell su -c 'chmod 755 /system/bootmenu/recovery/res/*'
adb shell su -c 'chmod 755 /system/bootmenu/recovery/sbin/*'
adb shell su -c 'chmod 755 /system/bootmenu/script/*'

6- Error fixed

adb shell su -c 'chown -R 0.0 /system/bootmenu/*'

No such user '-R'

Fixed

adb shell su -c '/system/xbin/busybox chown -R 0.0 /system/bootmenu/*'

7- ???

adb shell su -c 'chmod 755 /system/bin/loggerlauncher.bin'

Unable to chmod /system/bin/loggerlauncher.bin: No such file or directory

Fixed ???

adb shell su -c 'chmod 755 /system/bin/loggerlauncher_Qualcomm'

8- No error

echo
[*] Correcting Permissions Complete!
echo
[*] Backing up loggerlauncher binary

9 - ???

adb pull /system/bin/loggerlauncher

remote object '/system/bin/loggerlauncher' does not exist

Fixed ???

adb pull /system/bin/loggerlauncher_Qualcomm
echo
[*] Pushing 2nd-init hijack

10- ???

adb shell su -c 'rm -R /system/bin/loggerlauncher'

Unable ...etc.. No such file or directory

Fixed ???

adb shell su -c 'rm -R /system/bin/loggerlauncher_Qualcomm'

11 - This rest no error

adb shell su -c 'busybox cp /system/bootmenu/binary/loggerlauncher.bin /system/bin/'
echo
[*] Creating Symlinks
adb shell su -c 'busybox ln -S /system/bootmenu/binary/bootmenu /system/bin/loggerlauncher/'
adb shell su -c 'sync'
echo
[*] Cleaning
adb shell su -c 'rm -R /data/local/tmp/bootmenu.zip'
echo
[*] Rebooting Device
adb reboot
echo
[*] 2nd-init and CWM Recovery installation complete!
echo
[*] Now press Vol- before the soft button lights load up.
pause

The phone rebooted normally and didn't happen anything. I've tried but I couldn't initialize into bootmenu pressing any key before soft buttons lights up.

——————————————————

Idea: rename in your pack loggerlauncher.bin to loggerlauncher_Qualcomm.bin