wok diff ppp/stuff/ppp.cgi @ rev 24984
Up ufr2 (2.40-2)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Tue May 10 07:46:30 2022 +0000 (2022-05-10) |
parents | fa8eccc0015a |
children |
line diff
1.1 --- a/ppp/stuff/ppp.cgi Sun Feb 16 19:19:37 2020 +0100 1.2 +++ b/ppp/stuff/ppp.cgi Tue May 10 07:46:30 2022 +0000 1.3 @@ -126,7 +126,11 @@ 1.4 [ -n "$(pidof dbus-daemon)" ] || /etc/init.d/dbus start 1.5 [ -n "$(pidof bluetoothd)" ] || bluetoothd 1.6 grep -qs btusb /proc/modules || !modprobe btusb || sleep 1 1.7 - [ -n "$(which bluetoothctl)" ] && bluetoothctl power on 1.8 + if [ -n "$(which bluetoothctl)" ]; then 1.9 + bluetoothctl power on 1.10 + bluetoothctl pairable on 1.11 + bluetoothctl scan on 1.12 + fi 1.13 hcitool scan | grep : | while read dev name; do 1.14 set -- $dev "$name" $(sdptool browse $dev | awk ' 1.15 /Service Class ID List/ {n=0}