diff options
author | Steffen Nurpmeso <steffen@sdaoden.eu> | 2021-03-18 19:03:13 +0100 |
---|---|---|
committer | Steffen Nurpmeso <steffen@sdaoden.eu> | 2021-03-18 20:23:30 +0100 |
commit | 30cdb6c8ed04746656618029d79c2d8cd09a1cbb (patch) | |
tree | 40305388f6f033872a909d34d95f274289d16224 /bluealsa | |
parent | 4b64b0cec6d07d791b09efda18803fa601321b47 (diff) | |
download | contrib-30cdb6c8ed04746656618029d79c2d8cd09a1cbb.tar.gz contrib-30cdb6c8ed04746656618029d79c2d8cd09a1cbb.tar.xz |
bluealsa: slightly tweak rc file
Diffstat (limited to 'bluealsa')
-rw-r--r-- | bluealsa/.signature | 6 | ||||
-rw-r--r-- | bluealsa/Pkgfile | 4 | ||||
-rwxr-xr-x | bluealsa/bluealsa.rc (renamed from bluealsa/bluealsa) | 13 |
3 files changed, 12 insertions, 11 deletions
diff --git a/bluealsa/.signature b/bluealsa/.signature index 29b4d84df..93e44c6ef 100644 --- a/bluealsa/.signature +++ b/bluealsa/.signature @@ -1,7 +1,7 @@ untrusted comment: verify with /etc/ports/contrib.pub -RWSagIOpLGJF36MBXVh7iFE7IsH6tIlMkV9POdMaR2pFpiC9WxQTmOdSEKtQ89kZyIlUbhi4kAF3xDGPNWN7U1fEiT3+VCdhYA4= -SHA256 (Pkgfile) = 7b0e9db380bd901887b058ccba45a4894ab352dfba44c15d08d8d8cbdb35db12 +RWSagIOpLGJF37OPJrNTjQsSiTbIQXTyyLHke7Rda+jyA/wzhsLf4A03UKQ0nquGOfuXF3wESfXuJh6esN+xxMsGUA2Q/v8HpAI= +SHA256 (Pkgfile) = d0ebdf5fc14ecf90bd861eb17967161d280f9f1c2e68d7fa0daae1319f4625c2 SHA256 (.footprint) = a1ec2cab3b6db9ed7c973fec4a346d4cc1f1a489618664a156bfa4f19d1d49bd SHA256 (bluez-alsa-3.0.0.tar.gz) = 8b9bc36be922c10c6628ddf84b13dfadfeb3ab0bcf72bad842c66f3120abc6b2 -SHA256 (bluealsa) = 2250cf2e34ac81f43e5ebd1741e421a69bceb2932b736a0d25c0e97f13fe33ae +SHA256 (bluealsa.rc) = 4dc58ddb3cd97103ab17fbe82269a7a313e4a552eece97a8aafe147d65ab36cf SHA256 (bluealsa.conf) = 85751bb2dbda79b22ce4572e2165dcb0843e292676a781db2c2a5bcc60f840b0 diff --git a/bluealsa/Pkgfile b/bluealsa/Pkgfile index c75a49f72..f6828d9a9 100644 --- a/bluealsa/Pkgfile +++ b/bluealsa/Pkgfile @@ -12,7 +12,7 @@ release=2 source=( https://github.com/Arkq/${rname}/archive/\ v${version}/${rname}-${version}.tar.gz - bluealsa bluealsa.conf) + bluealsa.rc bluealsa.conf) build() { cd ${rname}-${version} @@ -23,7 +23,7 @@ build() { make all make DESTDIR="${PKG}" install - install -D -m 0755 "${SRC}"/bluealsa "${PKG}"/etc/rc.d/${name} + install -D -m 0755 "${SRC}"/bluealsa.rc "${PKG}"/etc/rc.d/${name} install -D -m 0644 "${SRC}"/bluealsa.conf \ "${PKG}"/etc/dbus-1/system.d/${name}.conf } diff --git a/bluealsa/bluealsa b/bluealsa/bluealsa.rc index e47c92319..eb0cfbd61 100755 --- a/bluealsa/bluealsa +++ b/bluealsa/bluealsa.rc @@ -1,14 +1,15 @@ #!/bin/sh #@ bluez-alsa startup script. -#@ Likely requires <- bluetoothd <- dbus +#@ Likely requires <- bluetoothd [<- dbus] + +RD=/run +PID=${RD}/bluealsa.pid SSD=/sbin/start-stop-daemon PROG=/usr/bin/bluealsa -PID=/run/bluealsa.pid -RUNDIR=/run/bluealsa OPTS=-S -case $1 in +case "${1}" in start) exec "${SSD}" --start --background --make-pidfile --pidfile "${PID}" \ --exec "${PROG}" -- ${OPTS} @@ -18,7 +19,7 @@ stop) --exec "${PROG}" ;; restart) - "${0}" stop + "${SSD}" --status --pidfile "${PID}" --exec "${PROG}" && "${0}" stop exec "${0}" start ;; status) @@ -33,6 +34,6 @@ status) exit ${e} ;; *) - echo "usage: $0 start|stop|restart|status" + echo "usage: ${0} start|stop|restart|status" ;; esac |