FreifunkBremen / mirror

Script for creating a firmware mirror

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

Script for creating a firmware mirror


Languages

Language:Python 100.0%