Skip to content

Instantly share code, notes, and snippets.

@MTRNord
Last active October 15, 2016 14:19
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 MTRNord/add8ab63be03008c9c9e to your computer and use it in GitHub Desktop.
Save MTRNord/add8ab63be03008c9c9e to your computer and use it in GitHub Desktop.
Create ffnord gluon Enviorment

How to use

  1. Download it with wget or curl
  2. use chmod a+x on the shell script
  3. run the script

Disclaimer

In this version the script only works for the FFNord Community!

#!/bin/sh
sudo apt-get install -y git make gcc g++ unzip libncurses5-dev zlib1g-dev subversion gawk bzip2 libssl-dev
git clone https://github.com/freifunk-gluon/gluon.git gluon-0.16.5
cd gluon-0.16.5
git pull
git checkout v2016.1.x
git clone https://github.com/ffnord/site-nord.git site
cd site
git pull
git checkout v2016.1.5
cd ..
git clone git://github.com/freifunkhamburg/ffhh-packages.git
mv ffhh-packages/* packages/
rm -Rf ffhh-packages
make update
OPTIONS="BROKEN=1 DEFAULT_GLUON_RELEASE=0.16.5~ownbuild$(date '+%Y%m%d%H%M') V=s"
CORES=$(lscpu|grep -e '^CPU(s):'|xargs|cut -d" " -f2)
for TARGET in ar71xx-generic ar71xx-nand mpc85xx-generic; do
echo "################# $(date) start building target $TARGET ###########################"
make -j$CORES GLUON_TARGET=$TARGET $OPTIONS || exit 1
done
cd ..
echo "Images are located in gluon_ownbuild/output/*"
#!/bin/sh
sudo apt-get install -y git make gcc g++ unzip libncurses5-dev zlib1g-dev subversion gawk bzip2 libssl-dev
git clone https://github.com/freifunk-gluon/gluon.git
cd gluon
git pull
git checkout v2015.1.x
git clone https://github.com/ffnord/site-nord.git site
cd site
git pull
git checkout master
cd ..
make update
X=$(lscpu|grep -e '^CPU(s):'|xargs|cut -d" " -f2)
make -j$X V=s
cd ..
echo "Images are located in gluon/images/*"
#!/bin/sh
sudo apt-get install -y git make gcc g++ unzip libncurses5-dev zlib1g-dev subversion gawk bzip2 libssl-dev
git clone https://github.com/freifunk-gluon/gluon.git gluon-0.8
cd gluon_exp
git pull
git checkout 2016.1.x
git clone https://github.com/ffnord/site-nord.git site
cd site
git pull
git checkout 2016.1
cd ..
make update
OPTIONS="BROKEN=1 DEFAULT_GLUON_RELEASE=0.8~exp$(date '+%Y%m%d%H%M') V=s"
CORES=$(lscpu|grep -e '^CPU(s):'|xargs|cut -d" " -f2)
for TARGET in ar71xx-generic ar71xx-nand mpc85xx-generic; do
echo "################# $(date) start building target $TARGET ###########################"
make -j$CORES GLUON_TARGET=$TARGET $OPTIONS || exit 1
done
cd ..
echo "Images are located in gluon_exp/output/*"
#!/bin/sh
sudo apt-get install -y git make gcc g++ unzip libncurses5-dev zlib1g-dev subversion gawk bzip2 libssl-dev
git clone https://github.com/freifunk-gluon/gluon.git lede
cd lede
git pull
git checkout lede
git clone https://github.com/ffnord/site-nord.git site
cd site
git pull
git checkout v2016.1.6
cd ..
make update
OPTIONS="BROKEN=1 DEFAULT_GLUON_RELEASE=lede~exp$(date '+%Y%m%d%H%M') V=s"
CORES=$(lscpu|grep -e '^CPU(s):'|xargs|cut -d" " -f2)
for TARGET in ar71xx-generic ar71xx-nand mpc85xx-generic; do
echo "################# $(date) start building target $TARGET ###########################"
make -j$CORES GLUON_TARGET=$TARGET $OPTIONS || exit 1
done
cd ..
echo "Images are located in gluon_exp/output/*"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment