Moderator Control Panel ]

Create a bash script for automatic installation of the drive

Create a bash script for automatic installation of the drive

Postby xunil2003 » Sun Dec 02, 2012 2:25 am

Hello,

Excuse me if I speak your language badly, I'm French.
I'm on Ubuntu 12.04 x64, I noticed each has updated ubuntu kernel, you must reinstall the driver of my two TBS PCI-E TBS (TBS 6984 / TBS 6220)

Because I'm tired of reinstalling every driver has updated kernel, I made a bash script to install automatically, but it does not work.

Could you help me?

Here is my bash script.
To execute in the terminal I type sh install-driver-tb.sh

the script
Code: Select All Code
#!/bin/bash

echo ""
echo "+----------------------------------------------+"
echo "|   Driver Installation for Linux Ubuntu TBS |"
echo "|   Updated on: 25/10/2012                   |"
echo "+----------------------------------------------+"

echo ""
cd /home/laurent/pilotes/tbs-linux-drivers_v121021/linux-tbs-drivers/

echo ""
sudo ./v4l/tbs-x86_64.sh

echo ""
sudo make TARGET=x86_64-elf && sudo make install

echo ""
echo "ATTENTION :"
echo "-----------"
echo "You must restart the pc."
echo "Once restarted please type in the terminal to check that the driver is installed correctly :"
echo "dmesg | grep cx23885"
echo ""


Thank you.
cordially
xunil2003
 
Posts: 21
Joined: Tue Sep 25, 2012 10:54 pm

Re: Create a bash script for automatic installation of the d

Postby xunil2003 » Sun Dec 02, 2012 4:40 am

Hello,

I modified the bash script, it works like this.
Reinstalling the driver is made ​​and took into account the change in the kernel "3.2.0-32-generic" to "3.2.0-34-generic".
For that it is taken into account must be before:
Code: Select All Code
sudo make clean
sudo make distclean

Then reinstalled the driver as in my bash script

The bash script:
Code: Select All Code
#!/bin/bash

echo ""
echo "+----------------------------------------------+"
echo "| Driver Installation for Linux Ubuntu TBS |"
echo "| Updated on: 01/12/2012                   |"
echo "+----------------------------------------------+"

echo ""
cd /home/laurent/pilotes/tbs-linux-drivers_v121021/linux-tbs-drivers/

echo ""
echo "sudo make clean"
echo "-----------------------------"
sudo make clean
echo ""
echo "sudo make distclean"
echo "-----------------------------"
sudo make distclean


echo ""
echo "execute : ./v4l/tbs-x86_64.sh"
echo "-----------------------------"
sudo ./v4l/tbs-x86_64.sh

echo ""
echo "execute : /home/laurent/pilotes/tbs-linux-drivers_v121021/linux-tbs-drivers/"
echo "--------------------------------------------------------------------------------"
cd /home/laurent/pilotes/tbs-linux-drivers_v121021/linux-tbs-drivers/
#sudo make TARGET=x86_64-elf && sudo make install
echo ""
echo "execute : sudo make TARGET=x86_64-elf"
echo "-------------------------------------"
sudo make TARGET=x86_64-elf
echo ""
echo "execute : sudo make install"
echo "---------------------------"
sudo make install


echo ""
echo "ATTENTION :"
echo "-----------"
echo "You must restart the pc."
echo "Once restarted please type in the terminal to check that the driver is installed correctly :"
echo "dmesg | grep frontend"
echo ""


Once your PC restarts, type in the terminal :
Code: Select All Code
dmesg | grep frontend

It will show your cards like this :
Code: Select All Code
laurent@PC-ubuntu:~/bash/Ubuntu_12.04$ dmesg | grep frontend
[   11.666116] DVB: registering adapter 0 frontend 0 (TurboSight TBS 62x0 DVBT/T2 frontend)...
[   11.758104] DVB: registering adapter 1 frontend 0 (TurboSight TBS 62x0 DVBT/T2 frontend)...
[   12.039262] DVB: registering adapter 2 frontend 0 (TurboSight TBS 6984 DVBS/S2 frontend)...
[   12.129924] DVB: registering adapter 3 frontend 0 (TurboSight TBS 6984 DVBS/S2 frontend)...
[   12.217919] DVB: registering adapter 4 frontend 0 (TurboSight TBS 6984 DVBS/S2 frontend)...
[   12.305835] DVB: registering adapter 5 frontend 0 (TurboSight TBS 6984 DVBS/S2 frontend)...
laurent@PC-ubuntu:~/bash/Ubuntu_12.04$


Thank you.
Cordially.
xunil2003
 
Posts: 21
Joined: Tue Sep 25, 2012 10:54 pm

Re: Create a bash script for automatic installation of the d

Postby steven » Thu Dec 06, 2012 2:29 pm

Hi xunil2003

Thanks for sharing this good way to install linux driver. : )
This is a good choose for the users.

Kind Regards

steven
steven
 
Posts: 2250
Joined: Fri Aug 06, 2010 3:23 pm


Return to Linux

Who is online

Users browsing this forum: No registered users and 1 guest