wok-6.x rev 22850
bluez: add v4 deprecated tools (again)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sun Feb 16 19:19:37 2020 +0100 (2020-02-16) |
parents | c34ef09acb7c |
children | c223f38b1f12 |
files | bluez/receipt ppp/stuff/ppp.cgi |
line diff
1.1 --- a/bluez/receipt Sun Feb 16 18:25:39 2020 +0100 1.2 +++ b/bluez/receipt Sun Feb 16 19:19:37 2020 +0100 1.3 @@ -61,6 +61,7 @@ 1.4 { 1.5 mkdir -p $fs/lib 1.6 mkdir -p $fs/usr/lib 1.7 + mkdir -p $fs/etc/bluetooth 1.8 1.9 cp -a $install/etc $fs 1.10 cp -a $install/lib/bluetooth $fs/lib 1.11 @@ -74,6 +75,7 @@ 1.12 1.13 #some extra tools and configuration files 1.14 cp -a $src/test/simple-agent $fs/usr/bin/bluez-simple-agent 1.15 + cp $src/src/main.conf $fs/etc/bluetooth 1.16 # cp $src/audio/audio.conf $fs/etc/bluetooth 1.17 } 1.18
2.1 --- a/ppp/stuff/ppp.cgi Sun Feb 16 18:25:39 2020 +0100 2.2 +++ b/ppp/stuff/ppp.cgi Sun Feb 16 19:19:37 2020 +0100 2.3 @@ -125,7 +125,8 @@ 2.4 if [ "$(GET gsmprovider)" ]; then 2.5 [ -n "$(pidof dbus-daemon)" ] || /etc/init.d/dbus start 2.6 [ -n "$(pidof bluetoothd)" ] || bluetoothd 2.7 - grep -qs btusb /proc/modules || modprobe btusb 2.8 + grep -qs btusb /proc/modules || !modprobe btusb || sleep 1 2.9 + [ -n "$(which bluetoothctl)" ] && bluetoothctl power on 2.10 hcitool scan | grep : | while read dev name; do 2.11 set -- $dev "$name" $(sdptool browse $dev | awk ' 2.12 /Service Class ID List/ {n=0}