How can I run my script file in startup of jetson tx2?

Hello,

I wanted to run my script file in startup/boot of jetson tx2.
I’ve tried with rc.local and init.d but nothing was working. Not even simple script of printing Hello World while boot is not happening.

If anybody know how to run script file in boot up Let me know…

You may find some reference here:
https://devtalk.nvidia.com/default/topic/1029769/jetson-tx2/how-to-auto-run-shell-script-made-by-me-when-tx2-system-is-booted-/post/5238280/#5238280
https://devtalk.nvidia.com/default/topic/1021316/jetson-tk1/jetson-tk1-how-to-add-startup-application-i-want-to-execute-it-right-after-booting-up-/post/5198436/#5198436