Anyway after reading that thread I decided to try and see if there was any kind of easy install/upgrade script for TBS drivers, but the only thing I found that came close was this: https://askubuntu.com/questions/518360/ ... of-drivers
Aside from the fact that the script doesn't work as shown, it appears to me that the biggest flaw is it has no way to detect and install the latest version of the TBS drivers. Which brings up a second point: As far as I can tell, there is no fixed link to the current version of the TBS drivers. Even if that script worked, it would always try to install the drivers from
- Code: Select All Code
http://www.tbsdtv.com/download/document/common/tbs-linux-drivers_v140707.zip
- Code: Select All Code
http://www.tbsdtv.com/download/document/common/tbs-linux-drivers_current.zip
I imagine that a very rudimentary script to apply all system updates and rebuild the kernel drivers might then look something like this (note this is untested and in any case would not work without a fixed link to the current driver version, so right now it's mostly hypothetical, also it assumes you are running in a 64-bit OS):
- Code: Select All Code
#!/bin/sh
rm -rf tbsdrivers
mkdir tbsdrivers
cd tbsdrivers
wget http://www.tbsdtv.com/download/document/common/tbs-linux-drivers_current.zip && unzip tbs-linux-drivers_current.zip && tar xf linux-tbs-drivers.tar.bz2 && cd linux-tbs-drivers && sudo apt-get update && sudo apt-get upgrade && sudo ./v4l/tbs-x86_64.sh && sudo make && sudo make install && sudo reboot
(My understanding is that the && connector executes the next command in the sequence only if the previous one has executed without errors. So for example, if the driver download fails, or fails to unzip correctly, it won't proceed with applying the system updates, and so on).
But without a fixed link to the current driver package I have no idea how you could do this, sort of manually editing the script to change the two instances of "current" to the actual current version number before running it. And did I mention it's totally untested?
Anyway, If TBS isn't going to get their drivers into the Linux kernel anytime soon, I truly wish that they (or anyone with a bit more scripting experience than I) would come up with a working script to make updating the system and reinstalling the drivers not quite such a pain. Or at least please give us a permanent link to the current driver version.
EDIT: Possible alternative version of the above script that requires the bash shell, still untested, and still requires a link to the current driver version that doesn't yet exist. Difference is you run the script as the root user (use sudo) rather than having a bunch of sudo statements in the script itself.
- Code: Select All Code
#!/bin/bash
if [[ $EUID -ne 0 ]]; then
echo "This script must be run as root" 1>&2
exit 1
fi
cd root
rm -rf tbsdrivers
mkdir tbsdrivers
cd tbsdrivers
wget http://www.tbsdtv.com/download/document/common/tbs-linux-drivers_current.zip && unzip tbs-linux-drivers_current.zip && tar xf linux-tbs-drivers.tar.bz2 && cd linux-tbs-drivers && apt-get update && apt-get upgrade && ./v4l/tbs-x86_64.sh && make && make install && reboot
It occurs to me that it might be possible to write the script in such a way that it would start out by trying to download a file with the name tbs-linux-drivers_v[today's date].zip and if that was unsuccessful decrement back one day in time and try again until it was successful, but that would cause a lot of unnecessary network traffic and possibly put a strain on the TBS servers. It would be far easier if they would provide a permanent link to the latest version of the drivers.