packages: Update bluez-hcidump, bluez-libs, and bluez-utils. Closes #3036, thanks...
[openwrt/svn-archive/archive.git] / utils / bluez-utils / files / bluez-utils.init
index b064a47d9a5e0dcf4f1ec7bfd3798b7bcb36f7a3..e105c9af246113c4a6dc7d621823b05f424bad3b 100644 (file)
@@ -1,7 +1,8 @@
 #!/bin/sh /etc/rc.common
 # Copyright (C) 2007 OpenWrt.org
 
-START=60
+#start after dbus (60)
+START=62
 
 append_bool() {
        local section="$1"
@@ -67,6 +68,8 @@ dund_config() {
        append_bool "$cfg" msdun "--msdun"
        append_bool "$cfg" activesync "--activesync"
        append_bool "$cfg" cache "--cache"
+
+       append_string "$cfg" pppdopts ""
        config_get_bool enabled "$cfg" "enabled" '1'
        [ "$enabled" -gt 0 ] && /usr/bin/dund $args
 }
@@ -105,6 +108,16 @@ start() {
        config_foreach rfcomm_config rfcomm
        config_foreach dund_config dund
        config_foreach pand_config pand
+       
+        #start passkey agent
+        passkey-agent --default 1234&
+
+        hcitool hci0 up
+        rfcomm release 0
+
+        #set up serial conenction
+        #rfcomm connect /dev/rfcomm0 00:1D:E9:5B:92:8D&
+
 }
 
 stop() {