Skip to content

Commit cae171f

Browse files
committed
WIP
1 parent 6649972 commit cae171f

File tree

2 files changed

+15
-4
lines changed

2 files changed

+15
-4
lines changed

luci/luci-app-falter-owm/files/owm.sh

+10
Original file line numberDiff line numberDiff line change
@@ -309,6 +309,16 @@ json_add_object firmware
309309
json_add_string kernelVersion "$kernelVersion"
310310
json_add_string kernelBuildDate "$buildDate"
311311
json_close_object
312+
json_add_object board
313+
json_add_string profile "avm_fritzbox-4040"
314+
json_add_string name "AVM FRITZ!Box 4040"
315+
json_add_string target "ipq40xx/generic"
316+
json_close_object
317+
json_add_object falter
318+
json_add_string version "1.2.4-test"
319+
json_add_string variant "tunneldigger" # or notunnel, backbone, bbb-configs
320+
json_add_string autoupdate "1"
321+
json_close_object
312322

313323
json_close_object
314324

packages/falter-berlin-autoupdate/files/lib_autoupdate.sh

+5-4
Original file line numberDiff line numberDiff line change
@@ -158,15 +158,16 @@ get_download_link_and_hash() {
158158
json_get_var image_hash "$flavour"
159159

160160
# load board-specific json with image-name from selector
161-
board_json=$(wget -qO - "https://${SELECTOR_URL}/${version}/${flavour}/${curr_target}/${BOARD}.json")
161+
# board_json=$(wget -qO - "https://${SELECTOR_URL}/${version}/${flavour}/${curr_target}/${BOARD}.json")
162+
target_json=$(wget -qO - "https://firmware.berlin.freifunk.net/stable/${version}/${flavour}/${curr_target}/profiles.json")
162163

163-
if [ -z "$board_json" ]; then
164-
log "Failed to download board-specific JSON-File from firmware selector. Exiting..."
164+
if [ -z "$target_json" ]; then
165+
log "Failed to download target-specific JSON-File from firmware selector. Exiting..."
165166
exit 2
166167
fi
167168

168169
json_init
169-
json_load "$board_json"
170+
json_load "$target_json"
170171
json_for_each_item "iter_images" "images"
171172

172173
if [ -z "$IMAGE_NAME" ]; then

0 commit comments

Comments
 (0)