Skip to content

Instantly share code, notes, and snippets.

@mikysal78
Created February 22, 2016 23:18
Show Gist options
  • Save mikysal78/ab0cdfe90a327a711bf5 to your computer and use it in GitHub Desktop.
Save mikysal78/ab0cdfe90a327a711bf5 to your computer and use it in GitHub Desktop.
#/bin/bash
if [ "$(id -u)" == "0" ]; then
echo "Sei root, devi lanciarlo come user normale" 1>&2
exit 1
fi
sudo apt-get install dh-systemd libnl-3-dev libnl-genl-3-dev libnl-utils pkg-config doxygen build-essential devscripts cmake
PATH_OLSR="$HOME/olsr2"
if [ -d $PATH_OLSR ]; then
cd $PATH_OLSR && git pull
fi
if [ ! -d $PATH_OLSR ]; then
mkdir $PATH_OLSR
cd $PATH_OLSR
git clone git://olsr.org/oonf.git
fi
cd oonf/files/
./create_debian_package.sh && \
cd ../../
mv oonf/*.deb $HOME
cd
clear
echo ""
echo ""
echo "il file DEB è nella directory $HOME"
FILEDEB="ls olsrd2_*.deb"
echo ""
echo "per installare usa il comando:"
echo ""
echo " sudo dpkg -i $FILEDEB"
rm -rf /tmp/oonf_build_debian/
@mikysal78
Copy link
Author

Da testare su una macchina vergine per verificare che i pacchetti di compilazione vengano installati tutti

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment