Skip to content

Commit

Permalink
Add bluez package to arch linux
Browse files Browse the repository at this point in the history
  • Loading branch information
jeevithakannan2 committed Nov 20, 2024
1 parent 1e1ea3c commit c73fd51
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion core/tabs/common-service-script.sh
Original file line number Diff line number Diff line change
Expand Up @@ -82,4 +82,4 @@ isServiceActive() {
esac
}

checkInitManager 'systemctl rc-service'
checkInitManager 'systemctl rc-service'
5 changes: 2 additions & 3 deletions core/tabs/utils/bluetooth-control.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ setupBluetooth() {
if ! command_exists bluetoothctl; then
case "$PACKAGER" in
pacman)
"$ESCALATION_TOOL" "$PACKAGER" -S --noconfirm bluez-utils
"$ESCALATION_TOOL" "$PACKAGER" -S --noconfirm bluez bluez-utils
;;
apk)
"$ESCALATION_TOOL" "$PACKAGER" add bluez
Expand Down Expand Up @@ -98,7 +98,7 @@ prompt_for_mac() {
if echo "$choice" | grep -qE '^[0-9]+$' && [ -n "$choice" ] && [ "$choice" -le "$count" ] && [ "$choice" -gt 0 ]; then
device=$(echo "$device_list" | sed -n "${choice}p")
mac=$(echo "$device" | awk '{print $2}')
if bluetoothctl info "$mac" > /dev/null 2>&1; then
if bluetoothctl info "$mac" >/dev/null 2>&1; then
if bluetoothctl "$command" "$mac"; then
printf "%b\n" "${GREEN}$success_msg${RC}"
break
Expand All @@ -117,7 +117,6 @@ prompt_for_mac() {
else
printf "%b\n" "${RED}Invalid choice. Please try again.${RC}"
read -r _

fi
done
}
Expand Down

0 comments on commit c73fd51

Please sign in to comment.