Please explain the loop version.
- switch keyboard to _r_aw mode
- gracefully t_e_rminate all processes
- k_i_ll all remaining processes
- _s_ync filesystems
- _u_nmount filesystems
- re_b_oot
You need the "loop" to feed the characters one-by-one to /proc/sysrq-trigger.
Thanks for the explanation what the "sub" did (and more).
echo s .. # sync echo u .. # unmount echo b .. # reboot
Just a guess though