User Tools

Site Tools


Custom packages

There is a specific procedure to allow updater recognize and keep your custom packages during future updates.

Copy your custom package(s) to the router. For example into: /root/custom.ipk

Turis OS < 3.9

Add this definiton to the file /etc/updater/user.lua

/etc/updater/user.lua
Package("custom", { content = "file:///root/custom.ipk" })
Install("custom")

Turis OS >= 3.9

localrepo add /root/custom.ipk

This command do followings:

  • create repository directory /usr/share/updater/localrepo/user (if not exists)
  • add it into configuration /usr/share/updater/localrepo/localrepo.lua) (if not exists)
  • copy specified packages there (ie. into user local repository)

Add this definiton to the file /etc/updater/conf.d/user.lua (create it, if not exists)

/etc/updater/conf.d/user.lua
Install("custom", {repository = {"localrepo-user"}})

Be aware! /usr/share/updater/localrepo/localrepo.lua, where user repository is defined, is not in usual /etc/ location. For backup purposes, backup folder /usr/share/updater/localrepo. This backup will contain both repository configuration and packages.