From f164f6025b1d91011a5036add001d3d2aa749e65 Mon Sep 17 00:00:00 2001 From: MatMoul Date: Tue, 1 Jan 2019 22:47:59 +0100 Subject: [PATCH] Add bluetooth detection and service --- install/system/services/menu | 10 ++++++++++ install/system/sound/sound | 6 +++++- 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/install/system/services/menu b/install/system/services/menu index f5b5bd4..487c492 100644 --- a/install/system/services/menu +++ b/install/system/services/menu @@ -20,6 +20,13 @@ else fi options+=("net-snmp" "SNMP Server" off) options+=("samba" "Server SMB" off) +if (dmesg |grep Bluetooth) then + options+=("bluez" "" on) + options+=("bluez-libs" "" on) +else + options+=("bluez" "" off) + options+=("bluez-libs" "" off) +fi options+=("syslog-ng" "" off) options+=("pkgstats" "" off) options+=("ntp" "" off) @@ -58,6 +65,9 @@ for itm in $sel; do '"cronie"') svcenable cronie ;; + '"bluez"') + svcenable bluetooth "Bluetooth Service" + ;; '"ntp"') svcenable ntpd "NTP Server" ;; diff --git a/install/system/sound/sound b/install/system/sound/sound index 00758c8..e609406 100644 --- a/install/system/sound/sound +++ b/install/system/sound/sound @@ -7,7 +7,11 @@ options+=("alsa-plugins" "Extra alsa plugins" on) #options+=("lib32-alsa-plugins" "Extra alsa plugins" on) options+=("pulseaudio" "Sound server" on) options+=("pulseaudio-alsa" "ALSA Configuration for PulseAudio" on) -options+=("pulseaudio-bluetooth" "A2DP support for PulseAudio" off) +if (dmesg |grep Bluetooth) then + options+=("pulseaudio-bluetooth" "A2DP support for PulseAudio" on) +else + options+=("pulseaudio-bluetooth" "A2DP support for PulseAudio" off) +fi options+=("pulseaudio-equalizer" "Equalizer for PulseAudio" off) sel=$(whiptail --backtitle "$apptitle" --title "System Sound Install" --checklist "" --cancel-button "Back" 0 0 0 \