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
Add this definiton to the file /etc/updater/user.lua
Package("custom", { content = "file:///root/custom.ipk" }) Install("custom")
localrepo add /root/custom.ipk
This command do followings:
/usr/share/updater/localrepo/user
(if not exists)/usr/share/updater/localrepo/localrepo.lua
) (if not exists)
Add this definiton to the file /etc/updater/conf.d/user.lua
(create it, if not exists)
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.