Hi Matthijs, all, Indeed I can confirm that the ssh way is currently the only way it works. Using the scripts from the generic tarball as suggested earlier is rather helpfull, as these preserve your settings.
cheers, Niels On 06/15/2010 11:00 AM, Matthijs Kooijman wrote: > 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 > > > > _______________________________________________ > Development mailing list > [email protected] > http://fonosfera.org/mailman/listinfo/development >
_______________________________________________ Development mailing list [email protected] http://fonosfera.org/mailman/listinfo/development
