sudo crontab -e
@reboot sh /home/user/test.sh
https://stackoverflow.com/questions/12973777/how-to-run-a-shell-script-at-startup