Hi Matthijs, I think that limitation is only for non-developer versions. iurgi
On Tue, Jun 15, 2010 at 11:00 AM, Matthijs Kooijman <[email protected]>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 > > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.4.9 (GNU/Linux) > > iEYEARECAAYFAkwXQTUACgkQz0nQ5oovr7xZmQCgl6nkrmYW7+iHgd7kZjgu7w3n > JYIAoMow0EDmgQ0NH+FtqOxw4gkb9rFF > =+9z/ > -----END PGP SIGNATURE----- > > _______________________________________________ > Development mailing list > [email protected] > http://fonosfera.org/mailman/listinfo/development > >
_______________________________________________ Development mailing list [email protected] http://fonosfera.org/mailman/listinfo/development
