From 171b291601eb4f90673ba61c7215c99ad87d4815 Mon Sep 17 00:00:00 2001
From: Britney Fransen <brfransen@gmail.com>
Date: Wed, 24 Jun 2015 20:47:16 +0000
Subject: LinHES-config: soundconfig.sh: install pkgs needed for oss

---
 abs/core/LinHES-config/PKGBUILD       | 4 ++--
 abs/core/LinHES-config/soundconfig.sh | 8 ++++++--
 2 files changed, 8 insertions(+), 4 deletions(-)

diff --git a/abs/core/LinHES-config/PKGBUILD b/abs/core/LinHES-config/PKGBUILD
index 1f5ebd3..cb0e1c2 100755
--- a/abs/core/LinHES-config/PKGBUILD
+++ b/abs/core/LinHES-config/PKGBUILD
@@ -1,6 +1,6 @@
 pkgname=LinHES-config
 pkgver=8.3
-pkgrel=15
+pkgrel=16
 conflicts=(MythVantage-config MythVantage-config-dev LinHES-config-dev LinHes-config )
 pkgdesc="Install and configure your system"
 depends=('bc' 'libstatgrab' 'mysql-python' 'expect' 'curl' 'dnsutils' 'parted'
@@ -151,7 +151,7 @@ md5sums=('17d9dd5a097fbbd4dae75dff8e2677ff'
          '6e5639fff82fa2ba76113ac1ab8f2016'
          'f0376c98a7986897406d393186c0365e'
          '157e73d0f90d7b306aba8f5921aeedd3'
-         '932cf4a7a3891d1849cf8d3962adf78c'
+         '74047c5c5cae2f8576fddbed7d197be4'
          'eef9b882ecb70648a8f253f85b73a274'
          '5f890ea9bda6aef652d2560ca19dac07'
          'ab2aa42c2947148c2b1cac0ade6d1d55'
diff --git a/abs/core/LinHES-config/soundconfig.sh b/abs/core/LinHES-config/soundconfig.sh
index 6e7bf70..810d9b2 100755
--- a/abs/core/LinHES-config/soundconfig.sh
+++ b/abs/core/LinHES-config/soundconfig.sh
@@ -1,11 +1,10 @@
 #!/bin/bash
+MYTH_RUN_STATUS="1"
 . /etc/systemconfig
 . /etc/profile
 echo $@ >/tmp/audio.call
 
 BASE=""
-MYTH_RUN_STATUS="1"
-. /etc/profile
 TESTFILE="/usr/share/sounds/pinkNoise_3s.wav"
 OSSinstalled="false"
 
@@ -68,6 +67,11 @@ function installOSS {
         pacman --noconfirm -S --force oss
     fi
     soundon
+    if [ ! $? = 0 ]
+    then
+        pacman --noconfirm -S --force gcc make binutils
+        soundon
+    fi
     add_service.sh oss
     echo "blacklist soundcore" > $BLACKLIST
     echo "install soundcore /bin/false" >> $BLACKLIST
-- 
cgit v0.12

