From 6043671e8a85338ff442c27cbc6bb02ac67a1d16 Mon Sep 17 00:00:00 2001 From: marcel Date: Sat, 19 Jul 2008 20:11:33 +0000 Subject: With uart(4) default, change /dev/cuad# to /dev/cuau# and sio# to uart# so that out-of-the-box FreeBSD is consistent. --- etc/rc.d/bluetooth | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'etc') diff --git a/etc/rc.d/bluetooth b/etc/rc.d/bluetooth index cfcf104..20e48c6 100755 --- a/etc/rc.d/bluetooth +++ b/etc/rc.d/bluetooth @@ -234,19 +234,19 @@ bluetooth_start() # Try to figure out device type by looking at device name case "${dev}" in - # sioX - serial/UART Bluetooth device - sio*) + # uartX - serial/UART Bluetooth device + uart*) load_kld ng_h4 || return 1 hook="hook" # Obtain unit number from device. - unit=`expr ${dev} : 'sio\([0-9]\{1,\}\)'` + unit=`expr ${dev} : 'uart\([0-9]\{1,\}\)'` if [ -z "${unit}" ]; then - err 1 "Unable to get sio unit number: ${dev}" + err 1 "Unable to get uart unit number: ${dev}" fi - ${hcseriald} -f /dev/cuad${unit} -n ${dev} + ${hcseriald} -f /dev/cuau${unit} -n ${dev} sleep 1 # wait a little bit if [ ! -f "/var/run/hcseriald.${dev}.pid" ]; then @@ -326,8 +326,8 @@ bluetooth_stop() # Try to figure out device type by looking at device name case "${dev}" in - # sioX - serial/UART Bluetooth device - sio*) + # uartX - serial/UART Bluetooth device + uart*) if [ -f "/var/run/hcseriald.${dev}.pid" ]; then kill `cat /var/run/hcseriald.${dev}.pid` sleep 1 # wait a little bit -- cgit v1.1