Hi Ted

On Sat, Sep 13, 2014 at 11:16 PM, Ted Hess <th...@kitschensync.net> wrote:

> As Jiri said, you don't need a postinst function to enable the script.
> Your script should start with
>
> #!/bin/sh  /etc/rc.common
>
> and include the line:
>
> START=xx
>
> Where 'xx' is the startup position number you want your script executed in
> rc.d (Ex: START=95)
>
> See the example init script near the bottom in:
> http://wiki.openwrt.org/doc/devel/packages
>

Actually, my init script already has that START number. When I run
/etc/ini.d/puppyplash enable
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.
That's why I try to execute the "enable" command in  postinst.

-- 
Quân
***********************************************
* Nguyễn Hồng Quân                            *
* Y!M: ng_hquan_vn                            *
* Facebook: ng.hong.quan                      *
* Web: quan.hoabinh.vn                        *
***********************************************
_______________________________________________
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel

Reply via email to