[pulseaudio] add init script

git-svn-id: svn://svn.openwrt.org/openwrt/packages@25840 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
loswillios 2011-03-03 00:41:26 +00:00
parent d94e8bce17
commit c713d8a513
2 changed files with 18 additions and 1 deletions

View File

@ -88,12 +88,17 @@ define Package/pulseaudio/install
$(1)/usr/bin \
$(1)/usr/lib \
$(1)/usr/lib/pulse-$(PKG_VERSION)/modules \
$(1)/etc/pulse
$(1)/etc/pulse \
$(1)/etc/init.d
$(INSTALL_BIN) \
$(PKG_INSTALL_DIR)/usr/bin/pulseaudio \
$(1)/usr/bin/pulseaudio
$(INSTALL_BIN) \
./files/pulseaudio.init
$(1)/etc/init.d/pulseaudio
$(INSTALL_CONF) \
$(PKG_INSTALL_DIR)/etc/pulse/* \
$(1)/etc/pulse

View File

@ -0,0 +1,12 @@
#!/bin/sh /etc/rc.common
# Copyright (C) 2011 OpenWrt.org
START=65
start() {
mkdir -p /tmp/lib/pulse
/usr/bin/pulseaudio daemonize system disallow-exit disallow-module-loading disable-shm exit-idle-time=-1
}
stop() {
killall pulseaudio
}