#! /bin/sh
# This program is part of pulse package
# Copyright (C) 2004, 2005, 2006 Free Software Foundation
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 1, or (at your option)
# any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
# 02110-1301, USA.

/usr/sbin/update-alternatives --remove soundprofile /etc/sound/profiles/pulse
/usr/sbin/update-alternatives --remove soundprofile /etc/sound/profiles/alsa
/usr/sbin/update-alternatives --install /etc/sound/profiles/current soundprofile /etc/sound/profiles/pulse 20
perl -pi -e "s|PULSE_SERVER_TYPE=none|PULSE_SERVER_TYPE=personal|" /etc/sysconfig/pulseaudio
echo "PulseAudio has been enabled. Please reboot your computer."
