How to exit script and return?

Why delete the file first? Just run the scp without any ssh.

scp /run/media/perkel/dnscrypt-proxy.toml root@192.168.1.1:/etc/dnscrypt-proxy2/
1 Like

I delete the .toml cause the original one is not configure yet, so I want to replace with mine

You could just restore it from your backup.

If you place it in your buildroot files folder as @hnyman suggested it will show up when you flash your build. As a caveat, you can also cp it from /rom/etc/dnscrypt-proxy if you mess it up.

1 Like

yes, it would be easier lol.
But in the meantime, I'm learning too with that, trying to use a script :wink:
thanks anyway guys

I think rsync would be better option vs scp?
Don't need ssh