mwarning / zerotier-openwrt

A OpenWrt package for ZeroTier One - Pull requests are welcome!
687 stars 144 forks source link

Adds new config migration script #122

Closed ogarcia closed 1 month ago

ogarcia commented 2 months ago

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 the join list, renames it to local_conf (which with the new configuration is called local_conf_path) and renames the configuration to default 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.

mwarning commented 2 months ago

hi, I have added your migration scrip directlyt to the openwrt/packages MR.

ogarcia commented 2 months ago

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.

ogarcia commented 2 months ago

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.

ogarcia commented 1 month ago

I close this PR since it is already applied.