How to automatically run jetson_clocks.sh on TX2 at startup?

Jetson AGX Xavier
JetPack 4.4

I tried it and it appears to work. But the system getting unstable and auto reboot frequently. Then I delete the /etc/rc.local, system get back to normal again. Wonder why?