Custom package installation problem in webui

Hello!

I have built an all-arch installable package for Teltonika routers. The format is the usual ipk and while the package can be installed using the opkg on the command-line, problem is installing it via the webui which ends up with message The package is not compatible with this device firmware and the package is not installed.

Please note that:

  • The package contains only a shellscript, there is no executable binary at all. The purpose is having one package that can be installed on any router.
  • The package needs to be repackaged on the server after the application is deployed (the package contains an agent for a remote management tool and it can (optionally) need a server PEM certificate, hence the need to repackage after deploy)
  • There is no SDK on the server (not needed as the package can be obviously installed by opkg tool with no problem)

I think that I am missing some part of the control file or maybe a package naming convention. I have tried to rename the package to tlt_custom_pkg_adwarfg.ipk but it didn’t help. Also, the Firmware line in the control file below was added as an experiment that didn’t help (but package is still installable via opkg on command line).

I am trying this on RUT955 (legacy), firmware version RUT9XX_R_00.06.09.2 though I expect this to be a general problem with webui package install.

The package control file looks like:

Package: adwarfg
Version: 0.1
Architecture: all
Firmware: all
Maintainer: admin@dwarftech.cz
Description: Agent for the Dwarfguard remote monitoring and management system
Priority: optional
Depends: curl

Thanks for any help or pointers!

Hello,

The WebUI is used to upload packages supported by Teltonika and those packages have hashes. Thus, it is likely that the hash check will fail and you will not be able to upload the package via WebUI. As you have already mentioned, you can install the package via opkg. You could try specifying a full firmware version and a router in the main file, though this will likely not work.

Firmware: RUT9_R_00.07.04.4
Router: RUT955

Kind Regards,