<div dir="ltr"><div>Hi <span class="" id=":ze" title="Jiří Šlachta">Jiří,<br><br></span></div><span class="" id=":ze" title="Jiří Šlachta">My init script (puppysplash) is already executable as shown below<br></span><div><br>root@OpenWrt:~# ls -l /etc/init.d/<br>-rwxr-xr-x 1 root root 1419 Apr 16 17:32 boot<br>-rwxr-xr-x 1 root root 729 Sep 13 07:07 cron<br>-rwxr-xr-x 1 root root 330 Dec 12 2013 defconfig<br>-rwxr-xr-x 1 root root 13785 Sep 13 07:08 dnsmasq<br>-rwxr-xr-x 1 root root 252 Apr 16 17:32 done<br>-rwxr-xr-x 1 root root 4139 Sep 13 07:07 dropbear<br>-rwxr-xr-x 1 root root 1022 Sep 13 07:08 firewall<br>-rwxr-xr-x 1 root root 2015 Dec 12 2013 led<br>-rwxr-xr-x 1 root root 2119 Sep 13 07:07 log<br>-rwxr-xr-x 1 root root 835 Apr 16 17:33 luci_dhcp_migrate<br>-rwxr-xr-x 1 root root 368 Sep 13 08:47 luci_fixtime<br>-rwxr-xr-x 1 root root 2912 Apr 16 17:32 network<br>-rwxr-xr-x 1 root root 244 Sep 13 07:07 odhcpd<br>-rwxr-xr-x 1 root root 254 Sep 13 08:44 puppysplash<br>-rwxr-xr-x 1 root root 125 Dec 12 2013 sysctl<br>-rwxr-xr-x 1 root root 309 Apr 16 17:32 sysfixtime<br>-rwxr-xr-x 1 root root 716 Sep 13 07:07 sysntpd<br>-rwxr-xr-x 1 root root 1037 Apr 16 17:32 system<br>-rwxr-xr-x 1 root root 926 Sep 13 07:07 telnet<br>-rwxr-xr-x 1 root root 3411 Sep 13 07:07 uhttpd<br>-rwxr-xr-x 1 root root 106 Apr 16 17:32 umount<br><br></div><div>But it doesn't start automatically.<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Sat, Sep 13, 2014 at 3:28 PM, Jiří Šlachta <span dir="ltr"><<a href="mailto:slachta@cesnet.cz" target="_blank">slachta@cesnet.cz</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<br>
there is no need to enable the init script in postinst. The only<br>
thing you need to make it start automatically is to give the executable<br>
bit to the init script.<br>
<br>
See below:<br>
<br>
define Package/package/install<br>
$(INSTALL_DIR) $(1)/etc/init.d<br>
$(INSTALL_BIN) ./files/package.init $(1)/etc/init.d/package<br>
endef<br clear="all"></blockquote></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>