for the system to run it upon reboot as root you would add it to /etc/rc.local.
most newer distros support an @reboot line in the users crontab.
you can append those lines (or call the script) in ~/.profile (mite be ~/.bash_profile depending on distro/shell) but it will only run when that specific user logs in.
[schneidz@hyper may]$ ll /etc/rc.local
lrwxrwxrwx. 1 root root 13 Jul 23 2011 /etc/rc.local -> rc.d/rc.local
[schneidz@hyper may]$ ll /etc/rc.d/rc.local
-rwxr-xr-x. 1 root root 345 Jul 7 2014 /etc/rc.d/rc.local
in the past i had to create /etc/rc.d/rc.local with the proper permissions.
Last edited by schneidz; 06-03-2015 at 03:37 PM.