i'm trying to write a script to automate the install of TV card drivers (for some reason i have to re-install after each ubuntu update).
Would this work? I've tried it but it doesn't look like it's doing anything.....
#/!bin/bash
# script to reinstall TV card drivers...
function install() {
wget http://www.tbsdtv.com/download/document/common/tbs-linux-drivers_v140707.zip
mkdir driver
mv tbs-linux-drivers_v140707.zip ./driver/
cd driver/
tar xjvf linux-tbs-drivers.tar.bz2
cd linux-tbs-drivers/
./v4l/tbs-x86_r3.sh
sudo make
sudo make install
shutdown -r now
}
installat the end of or script. But, better to not use any function, just the code inside of it. – Radu Rădeanu Aug 31 '14 at 12:38