Skip to content

Instantly share code, notes, and snippets.

@fcolista
Created February 7, 2017 07:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fcolista/9ce96c1dd41b7054e0cae9c4a6acee28 to your computer and use it in GitHub Desktop.
Save fcolista/9ce96c1dd41b7054e0cae9c4a6acee28 to your computer and use it in GitHub Desktop.
TBS module rebuild scripts for debian-based distro
#!/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