Upgrade from 2.x
This guide is for those who already run keen-pbr 2.x on Keenetic / NetCraze. You will replace the repository and the package and move your configuration to the new format. Run all commands over SSH.
1. Make a backup
Save your current 2.x configuration. If something goes wrong, you can compare it with the converted result:
cp /opt/etc/keen-pbr/keen-pbr.conf /opt/etc/keen-pbr/keen-pbr.conf.bak2. Replace the repository
Open the repository page, select the OS Keenetic / NetCraze on the left and your router architecture. Run the commands it shows, in order, to replace the old keen-pbr 2.x repository with the current one:
keen-pbr repository3. Install keen-pbr
opkg install keen-pbr
# version without the web UI and API:
# opkg install keen-pbr-headlessThe new configuration is in /opt/etc/keen-pbr/config.json.
4. Convert the config to the new format
Open the Config Converter. Then:
- Copy the content of
/opt/etc/keen-pbr/keen-pbr.confinto the converter input field on the left. - Review the generated config.
- Replace the content of
/opt/etc/keen-pbr/config.jsonwith the converted output.
5. Restart keen-pbr
/opt/etc/init.d/S80keen-pbr restart
/opt/etc/init.d/S80keen-pbr statusIf everything is fine, status prints alive. If it says dead, open Service does not start.
Then open Quick Start: the Web UI tab helps you check the setup, and the JSON tab is for working with the config file.