#!/bin/bash
echo ""
echo "Dependencies pre install tuxbox"
echo "http://tuxdroid.tounepi.com/"
echo ""

apt-get install gcc-multilib
apt-get install lib32z1-dev

apt-get install default-jre

if [ -e /etc/ld.so.conf ]; then

    test=0

    cd /etc
    
    while read line
    do
        if [ $line = "/usr/lib32" ]
        then
            test=1
        fi
    done < ld.so.conf
        
    if [ $test -eq 0 ]
    then
        echo "/usr/lib32" >> ld.so.conf
        ldconfig
    fi
    
fi
echo Done.
