<div dir="ltr">Hi Ted<br><div class="gmail_extra"><br><div class="gmail_quote">On Sat, Sep 13, 2014 at 11:16 PM, Ted Hess <span dir="ltr"><<a href="mailto:thess@kitschensync.net" target="_blank">thess@kitschensync.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">As Jiri said, you don't need a postinst function to enable the script. Your script should start with<br>
<br>
#!/bin/sh /etc/rc.common<br>
<br>
and include the line:<br>
<br>
START=xx<br>
<br>
Where 'xx' is the startup position number you want your script executed in rc.d (Ex: START=95)<br>
<br>
See the example init script near the bottom in: <a href="http://wiki.openwrt.org/doc/devel/packages" target="_blank">http://wiki.openwrt.org/doc/devel/packages</a><br clear="all"></blockquote></div><br>Actually, my init script already has that START number. When I run <br>/etc/ini.d/puppyplash enable<br>manually by myself, a symlink is created in rc.d. But that symlink is only created if you run the "enable" command. If you don't, there will be no such file in the rc.d.<br>That's why I try to execute the "enable" command in postinst.<br><br>-- <br><div dir="ltr"><div><span style="font-family:courier new,monospace">Quân<br></span></div><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>