Skip to content

Instantly share code, notes, and snippets.

@tcatm
Created May 18, 2015 09:05
Show Gist options
  • Save tcatm/7abc56c14e5654e08d54 to your computer and use it in GitHub Desktop.
Save tcatm/7abc56c14e5654e08d54 to your computer and use it in GitHub Desktop.
#!/bin/bash
set -e
export GLUON_BRANCH=experimental
export GLUON_IMAGEDIR=$(mktemp -d)
export GLUON_SITEDIR=$(pwd)/site-ffhl
export GLUON_TARGET=ar71xx-generic
git -C site-ffhl pull
pushd gluon
git pull
make update
make clean
make all BROKEN=1 V=s
make manifest BROKEN=1
popd
ln -s experimental.manifest $GLUON_IMAGEDIR/sysupgrade/manifest
gluon/contrib/sign.sh nightly.secret $GLUON_IMAGEDIR/sysupgrade/experimental.manifest
tar cf firmwares.tar -C $GLUON_IMAGEDIR/ .
rm -rf $GLUON_IMAGEDIR
#!/bin/bash
./build.sh
./upload.sh
[Unit]
Description=Gluon nightly FFHL
[Service]
Type=oneshot
RemainAfterExit=no
WorkingDirectory=/home/gluon/gluon-nightly
ExecStart=/home/gluon/gluon-nightly/do.sh
User=gluon
Group=gluon
[Timer]
OnCalendar=*-*-* 02:30:00
[Install]
WantedBy=multi-user.target
#!/bin/bash
scp firmwares.tar [email protected]:
ssh [email protected] 'cd autoupdates/experimental/; rm -r factory sysupgrade; tar xf ~/firmwares.tar; chmod a+rx .'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment