I see that Rak has released a new version of software that includes a script similar to the one that I posted above, so that the gateways automatically starts. So this is no longer a user requirement