It's your funeral, not ours. Do it whatever way you like. We can only advise (and any advice given is purely voluntary – there is no beef).
What's that about my funeral? Do you know something I don't
Perhaps it does make some sense, if you mean the NAS script Telnets into the Foxsat to send the command for the Foxsat to run. But it doesn't really account for error responses, and the Telnet login credentials will have to be stored in the NAS script in the clear (if security bothers you). A significant reason for not injecting commands to a remote system are the security implications: file access permissions are lower risk than command access.
I have generated a key pair on the NAS and sent it to the Foxsat
ssh-copy-id -i ~/.ssh/id_rsa.pub
Humax@ip.of.the.foxsat
That means I can SSH into the Foxsat with no password. SSH is encrypted so no sending of anything in the clear. It does mean that if the NAS gets hacked, they get access to my Foxsat too. However, they'd need to break in as root to get access to the private keys. The Foxsat is easier to break into.
I agree injecting commands is not a great. I wouldn't do that on a public network.
Fundamentally, the NAS should be an extension to the Foxsat's file system. It is therefore far more logical that the Foxsat is in control of the process. How do you plan to handle unmounting when the NAS drops out? What happens if the Foxsat wasn't responding at the time the NAS booted?
I have written a couple of bash files and placed them inside the foxsat, one to mount, the other to unmount. It appears that unmounting does nothing useful though. If the NAS is unmounted while the foxsat is playing, it seems the foxsat continues to play? I guess that the network is marked as busy so though the command it sent, it actually hasn't dropped the mount. If the network disconnects while NAS is mounted, play freezes, and after a while, a message shows up saying the channel in encrypted. That's fine though.
I didn't do much yesterday besides setting up the SSH and adding two files to the NAS, which SSH into the FOXSAT to call two other files. Idea with that was I can go either (internal or remote) to mount or un-mount. I did try to do it your way to start. I created a third bash file and intended it to be the ping file. Idea is
Ping NAS
if NAS alive
{
if already mounted { exit }
else {mount the nas}
}
else
{
if already mounted { dismount }
else { exit }
}
Unfortunately I got stuck with a stupid bash problem. My "if" kept throwing an error. "No fi" it said.
Liar I said. - grrrr.
I can mount (or dismount) the NAS from the NAS now, I haven't set it up to be automatic on startup as yet.
Slow replies, sorry.