I've added ZIP archive support. This is based on zlib and libzip, which are included as new submodules, so you'll need to do "git submodule update" after pulling the update. First application is config backup & restore. New commands: * config backup <path> [password=module password] * config restore <path> [password=module password] The backup covers the directories "ovms_config" and "events" from "/store". Restore will only replace those by the restored versions, anything else on "/store" is left untouched. Restore automatically reboots the module on success. Web UI is todo. Note: backup ZIP encryption is AES-256, so you'll need 7z or a similar modern zip utility on your PC. Regards, Michael -- Michael Balzer * Helkenberger Weg 9 * D-58256 Ennepetal Fon 02333 / 833 5735 * Handy 0176 / 206 989 26
On 10/3/18 5:38 AM, Michael Balzer wrote:
I've added ZIP archive support. This is based on zlib and libzip, which are included as new submodules, so you'll need to do "git submodule update" after pulling the update.
My update script already does that: #!/bin/sh set -x git fetch upstream git checkout master git submodule update git merge upstream/master git push Which updates my fork but I could not build after due to the lack of zip.h. I found this: https://stackoverflow.com/a/38673595 which suggests: git submodule init git submodule update # or git submodule update --init The latter pulled in the new submodules and I then was able to build. Craig
I have: # First, update the IDF echo Updating ESP IDF... cd $IDF_PATH /usr/bin/git pull /usr/bin/git submodule init /usr/bin/git submodule update echo # Next, update the OVMS code echo Updating OVMS code... cd $OVMS_TREE /usr/bin/git pull /usr/bin/git submodule init /usr/bin/git submodule update echo Which seems to work for me. Regards, Mark.
On 14 Oct 2018, at 12:05 AM, Craig Leres <leres@xse.com> wrote:
On 10/3/18 5:38 AM, Michael Balzer wrote:
I've added ZIP archive support. This is based on zlib and libzip, which are included as new submodules, so you'll need to do "git submodule update" after pulling the update.
My update script already does that:
#!/bin/sh set -x git fetch upstream git checkout master git submodule update git merge upstream/master git push
Which updates my fork but I could not build after due to the lack of zip.h. I found this:
https://stackoverflow.com/a/38673595
which suggests:
git submodule init git submodule update # or git submodule update --init
The latter pulled in the new submodules and I then was able to build.
Craig _______________________________________________ OvmsDev mailing list OvmsDev@lists.openvehicles.com http://lists.openvehicles.com/mailman/listinfo/ovmsdev
participants (3)
-
Craig Leres -
Mark Webb-Johnson -
Michael Balzer