How to include a custom ipk in a build

opkg root install ipkname.ipk works when I try it on ssh, but when I update my build, it is not working from rc.local, the ipk is not installed, I need to do it by myself...