Commit f842f093 authored by lrnzo's avatar lrnzo

geändert: firmware-signieren.sh

parent 669f3695
#!/bin/sh
read -p "Wo liegt das gluon-repo? [$HOME/no-backup/gluon]: " GLUONPATH
GLUONPATH=${GLUONPATH:-$HOME/no-backup/gluon}
read -p "Wo liegt die site.conf? [$GLUONPATH/site/site.conf]: " SITECONF
SITECONF=${SITECONF:-$GLUONPATH/site/site.conf}
read -p "Wo liegt der ganze Freifunk-foo? [$HOME/Dokumente/Freifunk]: " FREIFUNKPATH
FREIFUNKPATH=${FREIFUNKPATH:-$HOME/Dokumente/Freifunk}
read -p "Wo liegt dein Signaturschlüssel? [$FREIFUNKPATH/Firmware/release_keys]: " SECRETPATH
SECRETPATH=${SECRETPATH:-$FREIFUNKPATH/Firmware/release_keys}
git clone https://github.com/freifunk-gluon/gluon.git
git clone git@git.ffnw.de:ffnw-firmware/siteconf.git gluon/site
SITECONF=gluon/site/site.conf
read -p "Wo liegt dein Signaturschlüssel? [$HOME/Dokumente/Freifunk/Firmware/release_keys]: " SECRETPATH
SECRETPATH=${SECRETPATH:-$HOME/Dokumente/Freifunk/Firmware/release_keys}
read -p "Welches Release willst du signieren? [20191001]: " RELEASE
RELEASE=${RELEASE:-20191001}
FILE=stable.manifest.exp
MYPUBKEY=$(ecdsakeygen -p < "$SECRETPATH"/secret)
cd "$GLUONPATH" || exit
git pull #falls schon vorhanden, ansonsten git clone https://github.com/freifunk-gluon/gluon.git
cd "$FREIFUNKPATH" || exit
for RELEASE in $(git -C gluon/site/ tag | grep -E '2017[0-9]{4}' | grep -v 20171220);do scp files.ffnw.de:/var/www/dev/firmware/$RELEASE/sysupgrade/stable.manifest manifests/$RELEASE.manifest;done
for VPN in fastd l2tp; do for RELEASE in $(git -C gluon/site/ tag | grep -E '(20171220|201[89][0-9]{4}|20[2-9][0-9]{4})');do scp files.ffnw.de:/var/www/dev/firmware/$VPN/$RELEASE/sysupgrade/stable.manifest manifests/$VPN.$RELEASE.manifest;done;done
for VPN in l2tp fastd; do
wget -qO $VPN.$RELEASE.$FILE https://firmware.ffnw.de/$VPN/$RELEASE/sysupgrade/$FILE
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment