#!/bin/sh #BLURB="Enable/disable bluez-alsa at boot" # # System setup script for Slackware # # T_PX=$1 TMP=/var/lib/pkgtools/setup/tmp if [ "$COLOR" = "on" -o -r $TMP/SeTcolor ]; then dialog --title "ENABLE Bluez Alsa A2DP service AT BOOT?" --yesno \ "Several daemons that turn your computer into Bluetooth Audio \ speakers. Bluetooth will configured permament discoverable and will \ accept connections from any Bluetooth player, phones and tablets. \ The audio is streamed via the Alsa sound system." 9 70 if [ $? = 0 ]; then mkdir -p /etc/rc.d/rc0.d /etc/rc.d/rc1.d /etc/rc.d/rc3.d /etc/rc.d/rc4.d /etc/rc.d/rc6.d ln -s /etc/rc.d/init.d/bluez-alsa /etc/rc.d/rc0.d/K21bluez-alsa ln -s /etc/rc.d/init.d/bluez-alsa /etc/rc.d/rc1.d/K21bluez-alsa ln -s /etc/rc.d/init.d/bluez-alsa /etc/rc.d/rc3.d/S79bluez-alsa ln -s /etc/rc.d/init.d/bluez-alsa /etc/rc.d/rc4.d/S79bluez-alsa ln -s /etc/rc.d/init.d/bluez-alsa /etc/rc.d/rc6.d/K21bluez-alsa else rm -f /etc/rc.d/rc{0,1,6}.d/K21bluez-alsa /etc/rc.d/rc{3,4}.d/S79bluez-alsa fi fi