I have used metasploit's netgear_wnr2000_rce to gain root shell access on a linux embedded device (no option for payloads).
I am currently automating the process, and want to run a bash script when shell access is gained. I have investigated the metasploit AutoRunScript option however it appears that this only works for meterpreter shells.
Is there any way to automatically run bash commands when command shell is opened using metasploit?