Browse Source

configuration separated

Julian Kornberger 9 years ago
parent
commit
cb89afe426
3 changed files with 11 additions and 2 deletions
  1. 4 0
      Readme.md
  2. 1 2
      autoflash.sh
  3. 6 0
      config

+ 4 - 0
Readme.md

@@ -4,6 +4,10 @@ Diese Skripte sind für **Freifunk Paderborn** angepasst. Die benötigte Firmwar
 
 ## Benutzung
 
+Konfiguration:
+
+* **config** enthält die Adresse zum Download der Images, sowie die zu installierende Version.
+
 Es gibt zwei Skripte:
 
 * **autoflash.sh** versucht einen original TP-Link Router zu erkennen. Sobald dieser identifiziert werden konnte wird die neue Firmware automatisch installiert und nach Abschluss das Skript beendet.

+ 1 - 2
autoflash.sh

@@ -1,7 +1,6 @@
 #!/bin/bash
 
-base_fw_url=http://firmware.paderborn.freifunk.net/stable/
-base_fw_name="gluon-ffpb-0.5"
+source ./config
 
 function quit() {
 	if [ x"${BASH_SOURCE[0]}" == x"$0" ]; then

+ 6 - 0
config

@@ -0,0 +1,6 @@
+
+# URL of the firmware files
+base_fw_url=http://firmware.paderborn.freifunk.net/stable/
+
+# the current firmware version
+base_fw_name="gluon-ffpb-0.5"