Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
pktpls committed Aug 19, 2024
1 parent 6649972 commit cae171f
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 4 deletions.
10 changes: 10 additions & 0 deletions luci/luci-app-falter-owm/files/owm.sh
Original file line number Diff line number Diff line change
Expand Up @@ -309,6 +309,16 @@ json_add_object firmware
json_add_string kernelVersion "$kernelVersion"
json_add_string kernelBuildDate "$buildDate"
json_close_object
json_add_object board
json_add_string profile "avm_fritzbox-4040"
json_add_string name "AVM FRITZ!Box 4040"
json_add_string target "ipq40xx/generic"
json_close_object
json_add_object falter
json_add_string version "1.2.4-test"
json_add_string variant "tunneldigger" # or notunnel, backbone, bbb-configs
json_add_string autoupdate "1"
json_close_object

json_close_object

Expand Down
9 changes: 5 additions & 4 deletions packages/falter-berlin-autoupdate/files/lib_autoupdate.sh
Original file line number Diff line number Diff line change
Expand Up @@ -158,15 +158,16 @@ get_download_link_and_hash() {
json_get_var image_hash "$flavour"

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

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

json_init
json_load "$board_json"
json_load "$target_json"
json_for_each_item "iter_images" "images"

if [ -z "$IMAGE_NAME" ]; then
Expand Down

0 comments on commit cae171f

Please sign in to comment.