wok diff ppp/stuff/ppp.cgi @ rev 22876

web-applications: localize wikipedia
author Pascal Bellard <pascal.bellard@slitaz.org>
date Fri Feb 21 18:28:59 2020 +0100 (2020-02-21)
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	Fri Feb 21 18:28:59 2020 +0100
     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}