Created
February 7, 2017 07:40
-
-
Save fcolista/9ce96c1dd41b7054e0cae9c4a6acee28 to your computer and use it in GitHub Desktop.
TBS module rebuild scripts for debian-based distro
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# | |
# (c) 2016 Francesco Colista | |
# Email: francesco [at] bsod.eu | |
# | |
# Script used to build TBS modules from upstream | |
echo | |
echo "**** Check first if linux-headers are installed ****" | |
echo | |
dpkg --list | grep $(uname -r) | grep -q headers | |
if [ $? = "1" ]; then | |
echo "Looks that kernel headers for $(uname -r) are not installed." | |
echo "Please install it with the command:" | |
echo " - apt-get install linux-headers-$(uname -r)" | |
echo "Then, run again $0" | |
return 1 | |
fi | |
echo | |
echo "Kernel headers are installed. Let's go ahead with compilation" | |
echo | |
cd /root | |
cd media_build && git pull && cd /root | |
cd media && git pull && cd /root | |
cd media_build | |
make dir DIR=../media | |
make distclean | |
make | |
make install | |
if [ $? = "0" ]; then | |
echo | |
echo " ******************************************************************************"; | |
echo " **** Modules for SAA7160 TBS has been successfully compiled. Please reboot ***"; | |
echo " ******************************************************************************"; | |
echo | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment