From c728013401326038328b94e55e0eb68accf1dfcd Mon Sep 17 00:00:00 2001 From: Frank Brehm Date: Wed, 11 Oct 2017 02:00:41 +0200 Subject: [PATCH] saving uncommitted changes in /etc prior to emerge run --- bluetooth/main.conf | 16 ++++++++++++++-- init.d/bluetooth | 18 +++++------------- 2 files changed, 19 insertions(+), 15 deletions(-) diff --git a/bluetooth/main.conf b/bluetooth/main.conf index d9cd9e0c..ba17405c 100644 --- a/bluetooth/main.conf +++ b/bluetooth/main.conf @@ -1,6 +1,6 @@ [General] -# Default adaper name +# Default adapter name # Defaults to 'BlueZ X.YZ' #Name = BlueZ @@ -71,7 +71,19 @@ # Defaults to "off" # Privacy = off -#[Policy] +[GATT] +# GATT attribute cache. +# Possible values: +# always: Always cache attributes even for devices not paired, this is +# recommended as it is best for interoperability, with more consistent +# reconnection times and enables proper tracking of notifications for all +# devices. +# yes: Only cache attributes of paired devices. +# no: Never cache attributes +# Default: always +#Cache = always + +[Policy] # # The ReconnectUUIDs defines the set of remote services that should try # to be reconnected to in case of a link loss (link supervision diff --git a/init.d/bluetooth b/init.d/bluetooth index b54f47d1..97cf5000 100755 --- a/init.d/bluetooth +++ b/init.d/bluetooth @@ -1,20 +1,12 @@ #!/sbin/openrc-run -# Copyright 1999-2014 Gentoo Foundation +# Copyright 1999-2017 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 +pidfile="/run/bluetoothd.pid" +command="/usr/libexec/bluetooth/bluetoothd" +command_background=1 + depend() { after coldplug need dbus localmount hostname } - -start() { - ebegin "Starting ${SVCNAME}" - start-stop-daemon --start --background --exec /usr/libexec/bluetooth/bluetoothd - eend $? -} - -stop() { - ebegin "Shutting down ${SVCNAME}" - start-stop-daemon --stop --quiet --exec /usr/libexec/bluetooth/bluetoothd - eend $? -} -- 2.39.5