How to execute “reboot recovery” in recovery mode? I need to run "reboot recovery" while in Android recovery mode without using PC.

My recovery didn't accept recovery parameter "recovery".

adb reboot recovery - reboots recovery to recovery. 

rom shell "reboot recovery" - just reboot to system. 

Trying to push normal reboot to /tmp and run it, but sh says that it couldn't find /tmp/reboot.
TWRP recovery project make it like below maybe this can help


case rb_recovery:
            check_and_run_script("/sbin/rebootrecovery.sh", "reboot recovery");

Github ref