<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body dir="auto"><div style="-webkit-text-size-adjust: auto;"><br></div><div style="-webkit-text-size-adjust: auto;"><br>Am 13.09.2014 um 08:48 schrieb Nguyễn Hồng Quân <<a href="mailto:ng.hong.quan@gmail.com">ng.hong.quan@gmail.com</a>>:<br><br></div><blockquote type="cite" style="-webkit-text-size-adjust: auto;"><div><div dir="ltr"><div><div><div><div><div><div>Hello,<br><br></div>When I package an application to ipk file, how do I make the application to automatically start?<br><br></div>I already make the init script, which is supposed to install to /etc/init.d/<br><br></div>I tried add these lines to Makefile<br><br>define Package/postinst<br>    /etc/init.d/puppysplash enable<br>endef<br><br></div>where "puppysplash" is the name of application. But after building the OpenWrt image with that application included, I didn't see the symlink in /etc/rc.d/<br><br></div>So, what is the right way to do?<br><br></div></div></div></blockquote><div style="-webkit-text-size-adjust: auto;"><br></div><div><div><span style="-webkit-text-size-adjust: auto; background-color: rgba(255, 255, 255, 0);">Take a look at <a href="http://wiki.openwrt.org/doc/devel/packages">http://wiki.openwrt.org/doc/devel/packages</a> - section Package/postinst. </span></div><div><span style="-webkit-text-size-adjust: auto; background-color: rgba(255, 255, 255, 0);">Seems you forgot the #!/bin/sh</span></div><div><span style="-webkit-text-size-adjust: auto; background-color: rgba(255, 255, 255, 0);"><br></span></div><span style="-webkit-text-size-adjust: auto; background-color: rgba(255, 255, 255, 0);">Kind regards, GM</span></div><div style="-webkit-text-size-adjust: auto;"><br></div><blockquote type="cite" style="-webkit-text-size-adjust: auto;"><div><div dir="ltr">Thanks<br clear="all"><div><div><div><div><div><div><div><br>-- <br><div dir="ltr"><div><span style="font-family:courier new,monospace">***********************************************<br>* Nguyễn Hồng Quân                            *<br>* Y!M: ng_hquan_vn                            *<br>* Facebook: ng.hong.quan                      *<br></span></div><span style="font-family:courier new,monospace">* Web: <a href="http://quan.hoabinh.vn" target="_blank">quan.hoabinh.vn</a>                        *<br></span><div><span style="font-family:courier new,monospace">***********************************************</span></div></div>
</div></div></div></div></div></div></div></div>
</div></blockquote><blockquote type="cite" style="-webkit-text-size-adjust: auto;"><div><span>_______________________________________________</span><br><span>openwrt-devel mailing list</span><br><span><a href="mailto:openwrt-devel@lists.openwrt.org">openwrt-devel@lists.openwrt.org</a></span><br><span><a href="https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel">https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel</a></span><br></div></blockquote></body></html>