[OpenWrt-Devel] Build ipk and make autostart?

Ted Hess thess at kitschensync.net
Sat Sep 13 11:16:07 EDT 2014

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:


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: 


-----Original Message----- 
From: Nguy?n H?ng Qu?n <ng.hong.quan at gmail.com>
To: openwrt-devel at lists.openwrt.org
Subject: [OpenWrt-Devel] Build ipk and make autostart?
<CAL-RyxgznDD0rkDDgUZxVN_aKJyc9a9Xt9gsuV0y=F7B6oCdLQ at mail.gmail.com>
Content-Type: text/plain; charset="utf-8"


When I package an application to ipk file, how do I make the application to
automatically start?

I already make the init script, which is supposed to install to /etc/init.d/

I tried add these lines to Makefile

define Package/postinst
    /etc/init.d/puppysplash enable

where "puppysplash" is the name of application. But after building the
OpenWrt image with that application included, I didn't see the symlink in

So, what is the right way to do?


* 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 at lists.openwrt.org

More information about the openwrt-devel mailing list