2014-03-17, 21:14
The contents of the /tmp folder is not usually retained between reboots on most Unix/Linux systems, what you experienced is therefore perfectly normal and to be expected.
I wouldn't recommend storing the script in /etc, that's not what the /etc folder is for. Putting the script in your pi user home directory should be sufficient (/home/pi), or maybe even /usr/local.
I wouldn't recommend storing the script in /etc, that's not what the /etc folder is for. Putting the script in your pi user home directory should be sufficient (/home/pi), or maybe even /usr/local.