Closed ogarcia closed 1 month ago
hi, I have added your migration scrip directlyt to the openwrt/packages MR.
Ok. As soon as they merge it into the other repository I will delete the branch of this one so that it will be clean.
I have uploaded the change that adds support for what we discussed in https://github.com/mwarning/zerotier-openwrt/pull/128. If you want to upload everything to https://github.com/openwrt/packages/pull/24773 and I promise not to make any more changes until it has been merged.
I close this PR since it is already applied.
Just add the configuration migration script to the new model introduced in #120
The script is quite simple. It generates the new
network
entries from thejoin
list, renames it tolocal_conf
(which with the new configuration is calledlocal_conf_path
) and renames the configuration todefault
so that it is loaded correctly by the new init script.All this is done with the user's first configuration. If the user has more than one configuration for having several instances up (something quite unlikely) the rest are simply ignored and it is up to the user to evaluate what he/she wants to do.