Skip to content

Instantly share code, notes, and snippets.

@MTRNord MTRNord/README.md
Last active Oct 15, 2016

Embed
What would you like to do?
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
You can’t perform that action at this time.