everytime I setup a new sd card for a pi, I first have to ssh to the running pi and then start to install some software via shell commands.
Isn't there a way to drop a shell setup file to the fat32 partition of a fresh sd card which then gets executed on the first run?
/etc/rc.local
still runs by default, you could use or replace that. Beware tasks that require more than a second or two should fork and exit the foreground.