#!/bin/sh

ENABLED=yes
[[ ${ENABLED} == "yes" ]] || exit 0

DEBUGMODE=no
. /usr/lib/ublinux/functions
. /usr/lib/ublinux/default
debug_mode "$0" "$@"

SOURCE=${SYSCONF}/config; [ -f ${SOURCE} ] && . ${SOURCE} 2>/dev/null
SOURCE=${SYSCONF}/hardware; [ -f ${SOURCE} ] && . ${SOURCE} 2>/dev/null

[ -f /etc/sound/profiles/current/profile.conf ] && . /etc/sound/profiles/current/profile.conf

[ "$SOUNDPROFILE" = "pulse" -a "$PULSEAUDIOSTART" != "no" ] && start-pulseaudio-x11 &
