Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 1 Sep 2025 07:31:42 GMT
From:      "Bjoern A. Zeeb" <bz@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: 78807c196c94 - main - rc: bluetooth: startup improvements
Message-ID:  <202509010731.5817VgDq067847@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by bz:

URL: https://cgit.FreeBSD.org/src/commit/?id=78807c196c9481cdd88b5ce611b488903f52fbd0

commit 78807c196c9481cdd88b5ce611b488903f52fbd0
Author:     Bjoern A. Zeeb <bz@FreeBSD.org>
AuthorDate: 2025-09-01 07:26:47 +0000
Commit:     Bjoern A. Zeeb <bz@FreeBSD.org>
CommitDate: 2025-09-01 07:26:47 +0000

    rc: bluetooth: startup improvements
    
    Fix a redirect of stderr to stdout which is going to /dev/null.
    A '&' got missing in the original rewrite from the review that
    I took and committed.  Seems no one had noticed during testing
    or review.  People may have ended up with a "/1" file in their
    root file system.
    
    Fixes:          40652f86b5ef
    Reported by:    Vladyslav Movchan (vladislav.movchan gmail.com)
    MFX after:      3 days
    X-MFC:          squash
---
 libexec/rc/rc.d/bluetooth | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libexec/rc/rc.d/bluetooth b/libexec/rc/rc.d/bluetooth
index 239944c73dd6..193fd969967f 100755
--- a/libexec/rc/rc.d/bluetooth
+++ b/libexec/rc/rc.d/bluetooth
@@ -130,7 +130,7 @@ bluetooth_setup_stack()
 	for loop in 1 2 3
 	do
 		${hccontrol} -n ${dev}hci reset \
-			> /dev/null 2>1 && break
+			> /dev/null 2>&1 && break
 		if [ ${loop} -eq 3 ]
 		then
 			warn Reset failed three times, giving up.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202509010731.5817VgDq067847>