Every time the Linux kernel updates I need to rebuild the TBS driver for it to work.
Is there a way to automate this?
#!/bin/sh
LOG_FILE='/var/log/mythtv2/TBSUpDate.log' #log file
cd ~
pwd
echo "At home Directory, moving to TBS drivers"
echo "At home Directory, moving to TBS drivers" >> $LOG_FILE
sudo rm -r -f /lib/modules/$(uname -r)/kernel/drivers/media
cd ~/TBS*/linux-tbs-drivers
pwd
pwd >> $LOG_FILE
find -type d -exec chmod 755 \{\} \;
sleep 1
find -type f -exec chmod 644 \{\} \;
sleep 1
find -name '*.sh' -exec chmod 755 \{\} \;
sleep 1
find -name '*.pl' -exec chmod 755 \{\} \;
sleep 1
echo "chmod's done" >> $LOG_FILE
#
make clean
sleep 2
make distclean
sleep 2
./v4l/tbs-x86_64.sh
sleep 2
make -j5
sleep 2
sudo make install
sleep 2
sudo modprobe -v tbs62x0fe
sleep 1
echo Install Complete
echo Install Complete >> $LOG_FILE
echo "Finished TBS Updates @`date`\n" >> $LOG_FILE
Users browsing this forum: No registered users and 0 guests