Hi all, > to upload images you need to put them in a tarball with a executable file > named upgrade that will be ran upon upload. This file should contain the > instructions to flash the image using shell script, something like: > mtd -r write file_name image > > you can use a fon tar.gz and untar it to see how it's done. Actually, this doesn't work. Some digging around in the source (action_upgrade in /luci/modules/admin-fon/luasrc/controller/fon_admin/fon_admin.lua is relevant here) shows that the upgrade procedure always checks for some flags in the tarball. If the tarball is a normal, unsigned tarball, the type will report back as "unsigned" instead of "reflash", and the web interface won't perform the upgrade.
Even if this were fixed, the interface still always requires a good signature on the tarball (even in dev mode), as indicated by the "false" argument to verify.fonverify. So, creating your own tarball for use in the webinterface isn't possible currently (Note that installing unsigned plugins is possible in dev mode, see action_plugin in fon_index.lua). Flashing a custom image should thus be done using SSH and a manual mtd command. Gr. Matthijs
signature.asc
Description: Digital signature
_______________________________________________ Development mailing list [email protected] http://fonosfera.org/mailman/listinfo/development
