diff options
author | marcel <marcel@FreeBSD.org> | 2008-07-19 20:11:33 +0000 |
---|---|---|
committer | marcel <marcel@FreeBSD.org> | 2008-07-19 20:11:33 +0000 |
commit | 6043671e8a85338ff442c27cbc6bb02ac67a1d16 (patch) | |
tree | 8dcf0f96c3899085a3928528c246aa07b56dcbfe /etc | |
parent | f97f068bcac2976926e394030595de4a1cc99186 (diff) | |
download | FreeBSD-src-6043671e8a85338ff442c27cbc6bb02ac67a1d16.zip FreeBSD-src-6043671e8a85338ff442c27cbc6bb02ac67a1d16.tar.gz |
With uart(4) default, change /dev/cuad# to /dev/cuau# and
sio# to uart# so that out-of-the-box FreeBSD is consistent.
Diffstat (limited to 'etc')
-rwxr-xr-x | etc/rc.d/bluetooth | 14 |
1 files changed, 7 insertions, 7 deletions
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 |