bluez: updated service file
This commit is contained in:
parent
db1c75408a
commit
de371bb22f
@ -1,8 +1,8 @@
|
||||
untrusted comment: verify with /etc/ports/contrib.pub
|
||||
RWSagIOpLGJF3w567m4RnImOlkoBXnoTBg1jr3SLsmBm1YErxsRzvBArjQJLqZYzee7883UHExpj/J3OLWjkMQ2qFv7sSzdC1gE=
|
||||
SHA256 (Pkgfile) = ab69c77fab0df011ed0da33fb5a99890ae46fb77e9079c5973f76b5b872b0c13
|
||||
RWSagIOpLGJF34qvcze+j0fs/mVGpypN1VMI0CiuSzkSeMx5xHZX6mMB3Xf1pAyWuJ3OrkKjxFw+AJeipP2tskqGs1epxZAU7As=
|
||||
SHA256 (Pkgfile) = 708c85da7eb8dc51b089ae770e7169a8e7b1165a6b297f8d28bb476d983800e4
|
||||
SHA256 (.footprint) = a2b63e3b3a200e23cd7b29abca0ee094dfca6cd624320b2ab2a62001bc4f2356
|
||||
SHA256 (bluez-5.71.tar.xz) = b828d418c93ced1f55b616fb5482cf01537440bfb34fbda1a564f3ece94735d8
|
||||
SHA256 (fix-bluez-5.71-autoconnection.diff) = d851ba385d3e37f89bebb8e411e240e0f7786dd47e67f6ea8ca6b75092ed0ccc
|
||||
SHA256 (fix-bluez-5.71-coredump-on-a2dp-suspend.diff) = f03b0c6cbc090937064ad0777435c660b190a70ffc23bf3932944729bbd51df2
|
||||
SHA256 (bluetoothd) = b24a219ea4b457a8efdd1b5e0880022056b7b85a3e469f5e3678fa5e4d4be6b6
|
||||
SHA256 (bluetoothd.service) = f876740278b69bc650ef0a47ff28bf1221c669a1241c9b4c6691d2f3e9cf3ce4
|
||||
|
@ -10,7 +10,7 @@ release=2
|
||||
source=(https://mirrors.edge.kernel.org/pub/linux/bluetooth/bluez-$version.tar.xz
|
||||
fix-bluez-5.71-autoconnection.diff
|
||||
fix-bluez-5.71-coredump-on-a2dp-suspend.diff
|
||||
bluetoothd)
|
||||
bluetoothd.service)
|
||||
|
||||
build() {
|
||||
cd bluez-$version
|
||||
@ -37,5 +37,5 @@ build() {
|
||||
prt-get isinst libical && install -D -m 0755 tools/obexctl $PKG/usr/lib/bluetooth/obexctl
|
||||
|
||||
install -D -m 0644 src/main.conf $PKG/etc/bluetooth/main.conf
|
||||
install -D -m 0755 $SRC/bluetoothd $PKG/etc/rc.d/bluetoothd
|
||||
install -D -m 0755 $SRC/bluetoothd.service $PKG/etc/rc.d/bluetoothd
|
||||
}
|
||||
|
@ -1,35 +0,0 @@
|
||||
#!/bin/sh
|
||||
#@ bluez startup script
|
||||
|
||||
SSD=/sbin/start-stop-daemon
|
||||
PROG=/usr/lib/bluetooth/bluetoothd
|
||||
# OPTS="-d"
|
||||
PID=/var/run/bluetoothd.pid
|
||||
|
||||
case $1 in
|
||||
start)
|
||||
$SSD --start --background --make-pidfile --pidfile $PID --exec $PROG \
|
||||
-- $OPTS
|
||||
;;
|
||||
stop)
|
||||
$SSD --stop --remove-pidfile --retry 10 --pidfile $PID --exec $PROG
|
||||
;;
|
||||
restart)
|
||||
$0 stop
|
||||
$0 start
|
||||
;;
|
||||
status)
|
||||
$SSD --status --pidfile $PID --exec $PROG
|
||||
e=$?
|
||||
case $e in
|
||||
0) echo "$PROG is running with pid $(cat $PID)" ;;
|
||||
1) echo "$PROG is not running but the pid file $PID exists" ;;
|
||||
3) echo "$PROG is not running" ;;
|
||||
4) echo "Unable to determine the program status" ;;
|
||||
esac
|
||||
exit $e
|
||||
;;
|
||||
*)
|
||||
echo "usage: $0 [start|stop|restart|status]"
|
||||
;;
|
||||
esac
|
39
bluez/bluetoothd.service
Executable file
39
bluez/bluetoothd.service
Executable file
@ -0,0 +1,39 @@
|
||||
#!/bin/sh
|
||||
#
|
||||
# /etc/rc.d/bluetoothd: start/stop greetd
|
||||
#
|
||||
|
||||
SSD=/sbin/start-stop-daemon
|
||||
PROG=/usr/lib/bluetooth/bluetoothd
|
||||
OPTS="--experimental --kernel"
|
||||
PID=/run/bluez/bluetoothd.pid
|
||||
|
||||
case $1 in
|
||||
start)
|
||||
if [ ! -e /run/bluez ]; then
|
||||
mkdir -p /run/bluez
|
||||
fi
|
||||
$SSD --start --background --make-pidfile --pidfile $PID --exec $PROG -- $OPTS
|
||||
;;
|
||||
stop)
|
||||
$SSD --stop --remove-pidfile --retry 10 --pidfile $PID --exec $PROG
|
||||
;;
|
||||
restart)
|
||||
$0 stop
|
||||
$0 start
|
||||
;;
|
||||
status)
|
||||
$SSD --status --pidfile $PID --exec $PROG
|
||||
e=$?
|
||||
case $e in
|
||||
0) echo "$PROG is running with pid $(cat $PID)" ;;
|
||||
1) echo "$PROG is not running but the pid file $PID exists" ;;
|
||||
3) echo "$PROG is not running" ;;
|
||||
4) echo "Unable to determine the program status" ;;
|
||||
esac
|
||||
exit $e
|
||||
;;
|
||||
*)
|
||||
echo "usage: $0 [start|stop|restart|status]"
|
||||
;;
|
||||
esac
|
Loading…
x
Reference in New Issue
Block a user