tarina

git clone https://git.tarina.org/tarina
Log | Files | Refs | README | LICENSE

commit 53bb82f1c69820f432ead370d9ce980bbd7cbfac
parent c0a8b15697af418e4b46db2e6e1b070891d1f100
Author: rob <rob@tarina.org>
Date:   Mon,  9 Mar 2020 17:48:51 +0200

audio config now works for buster and stretch

Diffstat:
Aextras/debiancheck.sh | 13+++++++++++++
Minstall.sh | 30+++++++++++++++++++++++++++++-
2 files changed, 42 insertions(+), 1 deletion(-)

diff --git a/extras/debiancheck.sh b/extras/debiancheck.sh @@ -0,0 +1,13 @@ +#!/bin/bash +# Basic if statement +filename="/etc/debian_version" +cat $filename | while read -r line; do + version="$line" + echo "Debian version $version" +done +if [ $version > 10 ] +then + echo Debian Buster found +else + echo Debian Stretch found +fi diff --git a/install.sh b/install.sh @@ -31,10 +31,26 @@ echo "setting up system for filmmaking flow..." sleep 2 echo "if something goes wrong please submit bug to https://github.com/rbckman/tarina" sleep 2 +filename="/etc/debian_version" +cat $filename | while read -r line; do + version="$line" + echo "Debian version $version" +done +if [ $version > 10 ] +then + echo "Debian Buster found" +else + echo "Debian Stretch found" +fi echo "Installing all dependencies..." apt-get update apt-get upgrade -y -apt-get -y install git python3-pip python-configparser ffmpeg mediainfo gpac omxplayer sox cpufrequtils apache2 libapache2-mod-wsgi-py3 libdbus-glib-1-dev dbus libdbus-1-dev usbmount +if [ $version > 10 ] +then + apt-get -y install git python3-pip python-configparser libav-tools mediainfo gpac omxplayer sox cpufrequtils apache2 libapache2-mod-wsgi-py3 libdbus-glib-1-dev dbus libdbus-1-dev usbmount +else + apt-get -y install git python3-pip python-configparser ffmpeg mediainfo gpac omxplayer sox cpufrequtils apache2 libapache2-mod-wsgi-py3 libdbus-glib-1-dev dbus libdbus-1-dev usbmount +fi echo "installing python-omxplayer-wrapper..." sudo pip3 install omxplayer-wrapper echo "installing blessed..." @@ -105,10 +121,22 @@ sleep 4 echo "Make USB soundcard default" echo "writing to /etc/modprobe.d/alsa-base.conf" +if [ $version > 10 ] +then +echo "Debian Buster Alsa config" cat <<'EOF' > /etc/modprobe.d/alsa-base.conf #set index value options snd-usb-audio index=-2 EOF +else +echo "Debian Stretch Alsa config" +cat <<'EOF' > /etc/modprobe.d/alsa-base.conf +#set index value +options snd_usb_audio index=0 +options snd_bcm2835 index=1 +#reorder +options snd slots=snd_usb_audio, snd_bcm2835 +fi echo "Automatically boot to Tarina" echo "creating a tarina.service file"