#1 Le 29/01/2008, à 17:15
- aurelien3333
script installation carte tunner tv hvr1100
bonjours je viens de faire un script pour installer la carte hvr1100
#!/bin/sh
#installation v4l
echo -n "Pour faire fonctionner cette carte, il faut d'abord la dernière version de v4l ,voulez vous l'installer maintenant ? y/n ? "
read ouinon
if [ "$ouinon" = "n" ] || [ "$ouinon" = "N" ]; then
{
echo "ok"
}
elif [ "$ouinon" = "Y" ] || [ "$ouinon" = "y" ]; then
{
sudo apt-get install build-essential mercurial linux-headers-`uname -r` dvb-utils
hg clone http://linuxtv.org/hg/v4l-dvb
cd v4l-dvb
make
sudo make install
}
else
{
echo "Il faut taper Y ou N!!"
}
fi
#telechargement du firmware
echo -n "voulez vous telecharger le firmware pour la carte (inportant) ? y/n ? "
read ouinon
if [ "$ouinon" = "n" ] || [ "$ouinon" = "N" ]; then
{
echo "ok"
}
elif [ "$ouinon" = "Y" ] || [ "$ouinon" = "y" ]; then
{
echo "telechargement du firmware"
wget http://perso.orange.fr/tomlohave/linux/dvb-fe-tda10046.fw
sudo cp dvb-fe-tda10046.fw /lib/firmware
sudo rm dvb-fe-tda10046.fw
sudo cp esai.sh /etc/rc2.d
}
else
{
echo "Il faut taper Y ou N!!"
}
fi
#instalation de kaffeine
echo -n "voulez vous installer kaffeine y/n ? "
read ouinon
if [ "$ouinon" = "y" ] || [ "$ouinon" = "Y" ]; then
{
sudo apt-get install kaffeine
}
elif [ "$ouinon" = "n" ] || [ "$ouinon" = "N" ]; then
{
echo "Ok"
}
else
{
echo "Il faut taper Y ou N!!"
}
fi
#redemarage du pc
echo -n "le pc doit redemarer pour terminer l'instalation ,redemarez maintenant ? y/n ? "
read ouinon
if [ "$ouinon" = "n" ] || [ "$ouinon" = "N" ]; then
{
echo "pensez a redemarer pour finaliser l'instalation"
}
elif [ "$ouinon" = "Y" ] || [ "$ouinon" = "y" ]; then
{
sudo poweroff
}
else
{
echo "Il faut taper Y ou N!!"
}
fi
Hors ligne