aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBjoern A. Zeeb <bz@FreeBSD.org>2025-09-01 07:26:47 +0000
committerBjoern A. Zeeb <bz@FreeBSD.org>2025-09-01 07:26:47 +0000
commit78807c196c9481cdd88b5ce611b488903f52fbd0 (patch)
tree95421dc86b9f0c9549cd3f2cb18be6ca386cd54b
parent016d3ec239b39895cf19aa62552fc316d7d98045 (diff)
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
-rwxr-xr-xlibexec/rc/rc.d/bluetooth2
1 files changed, 1 insertions, 1 deletions
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.