Skip to content
/ scripts Public
forked from ffulm/scripts

Contains scripts to ease release procedure via autoupdater.

Notifications You must be signed in to change notification settings

ffbsee/scripts

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Scripts

Autoupdater

Contains script to ease release procedure via autoupdater.

Release-HOWTO on https://github.com/freifunk-bielefeld/docs/blob/master/release_howto.md

Missing models

Dumps model identifier of routers - these should be added to model_list manually

Necessary changes on machine with firmware repo:

/etc/lighttpd/lighttpd.conf: add mod_cgi

server.modules = (
  "mod_fastcgi",
  "mod_cgi",
  "mod_access",
  "mod_alias",
  "mod_compress",
  "mod_redirect",
  "mod_rewrite"
  )

add cgi-shell assignment

cgi.assign = ( ".pl" => "/opt/perl/bin/perl", ".cgi" => "/opt/perl/bin/perl", ".sh" => "/bin/sh" )
touch /var/www/freifunk/firmware/autoupdater/request_image.sh
chmod +x /var/www/freifunk/firmware/autoupdater/request_image.sh
chown www-data:www-data /var/www/freifunk/firmware/autoupdater/request_image.sh
#!/bin/sh
file="/var/www/freifunk/firmware/autoupdater/missing_models"
# restrict to 1 MB
if [ `stat --printf="%s" $file` -lt 1024000 ]; then
  echo "$QUERY_STRING" >> $file
fi

All autoupdater requests for firmwares not available in model_list are written to missing_models file. Size of file is restricted to 1 MB.

About

Contains scripts to ease release procedure via autoupdater.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 100.0%