From d453a818d1aaf574df9bb16e8b54af28d1a9407a Mon Sep 17 00:00:00 2001 From: Andrew Date: Sat, 22 Jul 2023 19:13:22 +0100 Subject: [PATCH] replace sudo with doas in bluetooth scripts --- bluetooth-off.sh | 3 ++- bluetooth-on.sh | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/bluetooth-off.sh b/bluetooth-off.sh index 163ca99..056a61f 100755 --- a/bluetooth-off.sh +++ b/bluetooth-off.sh @@ -5,4 +5,5 @@ echo "Attempting to turn off bluetooth via bluetoothctl" bluetoothctl power off echo "Attempting to remove the symlink to the bluetoothd service in the /var/service/ directory" -sudo rm /var/service/bluetoothd +# sudo rm /var/service/bluetoothd +doas rm /var/service/bluetoothd diff --git a/bluetooth-on.sh b/bluetooth-on.sh index b8fcb74..28a8749 100755 --- a/bluetooth-on.sh +++ b/bluetooth-on.sh @@ -2,7 +2,8 @@ # Simple script to enable bluetooth on my system echo "Attempting to create a symbolic link to the bluetoothd service in /var/service/" -sudo ln -s /etc/sv/bluetoothd /var/service/ +# sudo ln -s /etc/sv/bluetoothd /var/service/ +doas ln -s /etc/sv/bluetoothd /var/service/ echo "Attempting to turn on bluetooth via bluetoothctl" bluetoothctl power on