Thanks Tomas, it was as easy as pkg_postinst_${PN} () { #!/bin/sh -e net-snmp-config --create-snmpv3-user -a "my_password" myuser }
2013/6/26 Tomas Frydrych <tf+lists.yo...@r-finger.com> > On 26/06/13 15:32, Katu Txakur wrote: > > I want to create a user after adding the snmp recipe. The command to do > > that is: > > > > net-snmp-config --create-snmpv3-user -a "my_password" myuser > > > > What's the best way to do it? I have tried from do_install_append and > > also from ROOTFS_POSTPROCESS_COMMAND but no luck so far. > > You need a postinst script for that sort of a thing. > > Tomas > > -- > http://sleepfive.com > _______________________________________________ > yocto mailing list > yocto@yoctoproject.org > https://lists.yoctoproject.org/listinfo/yocto >
_______________________________________________ yocto mailing list yocto@yoctoproject.org https://lists.yoctoproject.org/listinfo/yocto