[yast-commit] r38097 - in /trunk/bluetooth: VERSION package/yast2-bluetooth.changes src/Bluetooth.ycp
![](https://seccdn.libravatar.org/avatar/c3c40c0a8c67869856fd7e06cbcb4099.jpg?s=120&d=mm&r=g)
Author: lslezak
Date: Wed May 23 10:54:42 2007
New Revision: 38097
URL: http://svn.opensuse.org/viewcvs/yast?rev=38097&view=rev
Log:
- fix for bluez >= 3.10 (SDP daemon is now included in HCID daemon)
(#276650)
- 2.15.2
Modified:
trunk/bluetooth/VERSION
trunk/bluetooth/package/yast2-bluetooth.changes
trunk/bluetooth/src/Bluetooth.ycp
Modified: trunk/bluetooth/VERSION
URL: http://svn.opensuse.org/viewcvs/yast/trunk/bluetooth/VERSION?rev=38097&r1=38096&r2=38097&view=diff
==============================================================================
--- trunk/bluetooth/VERSION (original)
+++ trunk/bluetooth/VERSION Wed May 23 10:54:42 2007
@@ -1 +1 @@
-2.15.1
+2.15.2
Modified: trunk/bluetooth/package/yast2-bluetooth.changes
URL: http://svn.opensuse.org/viewcvs/yast/trunk/bluetooth/package/yast2-bluetooth.changes?rev=38097&r1=38096&r2=38097&view=diff
==============================================================================
--- trunk/bluetooth/package/yast2-bluetooth.changes (original)
+++ trunk/bluetooth/package/yast2-bluetooth.changes Wed May 23 10:54:42 2007
@@ -1,4 +1,11 @@
-------------------------------------------------------------------
+Wed May 23 10:26:31 CEST 2007 - lslezak@suse.cz
+
+- fix for bluez >= 3.10 (SDP daemon is now included in HCID daemon)
+ (#276650)
+- 2.15.2
+
+-------------------------------------------------------------------
Thu Mar 1 15:08:05 CET 2007 - lslezak@suse.cz
- fixed a rich text tag in the help text (#249490)
Modified: trunk/bluetooth/src/Bluetooth.ycp
URL: http://svn.opensuse.org/viewcvs/yast/trunk/bluetooth/src/Bluetooth.ycp?rev=38097&r1=38096&r2=38097&view=diff
==============================================================================
--- trunk/bluetooth/src/Bluetooth.ycp (original)
+++ trunk/bluetooth/src/Bluetooth.ycp Wed May 23 10:54:42 2007
@@ -106,6 +106,11 @@
if (all != nil && size(all) > 0)
{
foreach(string var, all, ``{
+ // the SDP_START variable might be lying around from < bluez-3.10
+ // ignore it.
+ if (var == "SDP_START") {
+ continue;
+ }
if (regexpmatch(var, ".*_START$"))
{
string daemon_name = regexpsub(var, "(.*)_START$", "\\1");
@@ -114,6 +119,8 @@
}
);
}
+ // SDP is always there, but built into hcid since bluez-3.10
+ ret = add(ret, "SDP");
return ret;
}
@@ -154,6 +161,10 @@
// reset daemon list
daemons = [];
foreach(string service, detected_services, ``{
+ if ((service == "SDP" ))
+ {
+ continue;
+ }
// read start status
boolean service_enabled = (SCR::Read(.sysconfig.bluetooth + (service + "_START")) == "yes");
@@ -163,6 +174,17 @@
// read daemon arguments
string args = (string)SCR::Read(.sysconfig.bluetooth + (service + "_DAEMON_ARGS"));
+ if ((service == "HCI"))
+ {
+ boolean sdp_enabled = false;
+ if (regexpmatch(args, "([ \t]|^)-s([ \t]|$)"))
+ {
+ sdp_enabled = true;
+ }
+ daemons = add(daemons, $[ "service" : "SDP", "enabled": sdp_enabled,
+ "daemon" : "", "args" : "" ]);
+ }
+
daemons = add(daemons, $[ "service" : service, "enabled" : service_enabled,
"daemon" : binary, "args" : args ]);
}
@@ -259,7 +281,31 @@
SCR::Write(.sysconfig.bluetooth.START_SERVICES, (enabled) ? "yes" : "no");
// write daemon settings
+ boolean sdp_enabled = false;
foreach(map
participants (1)
-
lslezak@svn.opensuse.org