Shellcmd and complex command
I installed shellcmd and I set up some commands that pfsense runs at boot time: everything is working well.
Now I would like to run some other command that is a little bit more complex: there is an if..then..else condition; I tried to use both bash style and tcsh style command but it didn't work; of course when I run the same command manually it works.
Put that code inside an actual script somewhere and then call it. Not as nice as a shellcmd, but shellcmd wasn't really designed to handle those sorts of commands.