Update 2024-08-18 19:51 OpenBSD/amd64-x13
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
# cat /etc/rc.conf.local
|
||||
# sndiod_flags=-f rsnd/0 -F rsnd/1 -F rsnd/2 -F rsnd/3 ...
|
||||
|
||||
cur=$(sndioctl -n server.device)
|
||||
cur="$(sndioctl -n server.device | cut -d"(" -f1)"
|
||||
case $1 in
|
||||
+) sndioctl server.device=$(( cur + 1 )) > /dev/null 2>&1 \
|
||||
|| echo "Max device reached"; ;;
|
||||
@@ -13,7 +13,7 @@ case $1 in
|
||||
|| echo "Device $1 not available"; ;;
|
||||
|
||||
esac
|
||||
now=$(sndioctl -n server.device)
|
||||
now="$(sndioctl -n server.device | cut -d"(" -f1)"
|
||||
|
||||
echo "Active server.device=$now"
|
||||
dmesg | grep -B2 ^audio$now | grep " at " | head -n 1
|
||||
|
||||
Reference in New Issue
Block a user