mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2025-02-17 15:14:44 +02:00
ubusd: add an init script
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@28496 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
032074b799
commit
1981c3be16
@ -46,7 +46,8 @@ define Package/ubus/install
|
|||||||
endef
|
endef
|
||||||
|
|
||||||
define Package/ubusd/install
|
define Package/ubusd/install
|
||||||
$(INSTALL_DIR) $(1)/sbin
|
$(INSTALL_DIR) $(1)/sbin $(1)/etc/init.d
|
||||||
|
$(INSTALL_BIN) ./files/ubus.init $(1)/etc/init.d/ubus
|
||||||
$(CP) $(PKG_INSTALL_DIR)/usr/sbin/ubusd $(1)/sbin/
|
$(CP) $(PKG_INSTALL_DIR)/usr/sbin/ubusd $(1)/sbin/
|
||||||
endef
|
endef
|
||||||
|
|
||||||
|
11
package/ubus/files/ubus.init
Executable file
11
package/ubus/files/ubus.init
Executable file
@ -0,0 +1,11 @@
|
|||||||
|
#!/bin/sh /etc/rc.common
|
||||||
|
START=11
|
||||||
|
PIDFILE=/var/run/ubusd.pid
|
||||||
|
|
||||||
|
start() {
|
||||||
|
start-stop-daemon -S -b -m -p $PIDFILE -x /sbin/ubusd
|
||||||
|
}
|
||||||
|
|
||||||
|
stop() {
|
||||||
|
start-stop-daemon -K -x /sbin/ubusd -p $PIDFILE
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user