Create a bash script for automatic installation of the drive

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
Thank you.
cordially
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