Skip to content

FreifunkBremen/mirror

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Firmware-Mirror

About

Firmware-Mirror is a simple python application that should make you able to host a mirror of Freifunk firmware images. It's written in python. The application downloads and parses a site.conf and gets and verifies the .manifest. It downloads all new and changed images and validates the file checksums afterwards. It was created by @corny and @komaflash .

The application contains the following modules:

  • mirror.py: The heart.
  • downloader.py: Checks HTTP if-modified-since header and downloads files.
  • gluon_manifest.py: gluon.manifest parser.
  • slpp.py: Simple lua-python data structures parser by SirAnthony.

Requirements

Usage

To create a new mirror you have to:

  • create a directory, that is accessible via HTTP, so you can add the url to your site.conf as mirror later.

  • run the following command with the URL of an existing mirror:

    python mirror.py --url https://comunityname.freifunk.tld/mirror --site-conf https://raw.githubusercontent.com/FreifunkBremen/gluon-site-ffhb/master/site.conf --root /path/to/http/dir