OK, I am after some help getting a shell script to auto start when I login to my system.
I know the commands I want to use
first when I login I have to rebind my net connection, which is running through net sharing via ethernet on my mac. I have the SSH setup and terminal setup fine. I am using
to enable my setup to connect to the web.
The next thing I always do is fire up aplitude to update the system. I am using
sudo apt-get update && sudo apt-get dist-upgrade && sudo apt-get clean && sudo apt-get upgrade && sudo apt-get clean
My thoughts are to use
sudo ifup eth0 && sudo apt-get update && sudo apt-get dist-upgrade && sudo apt-get clean && sudo apt-get upgrade && sudo apt-get clean'
I know I could get this hardcoded into the system files but I'm not to confident in terms of doing that yet. What I am trying to find out is how to get this to launch automatically at login from the user account. Any help would be appreciated.
Note: I am running the Raspbian Hard Float fork/derivative of Debian. Afaik this should not cause issues but if it will please let me know.