[pulseaudio] add init script
git-svn-id: svn://svn.openwrt.org/openwrt/packages@25840 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
d94e8bce17
commit
c713d8a513
@ -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
|
||||
|
12
sound/pulseaudio/files/pulseaudio.init
Normal file
12
sound/pulseaudio/files/pulseaudio.init
Normal 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
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user