#!/usr/bin/haserl <%in p/common.cgi %> <% page_title="Firmware Update" if [ -n "$network_gateway" ]; then fw_soc=$soc if [ "$soc_vendor" = "ingenic" ]; then fw_soc=$soc_family fi builder=$(fw_printenv -n upgrade) url="https://github.com/openipc/firmware/releases/download/latest/openipc.${fw_soc}-${flash_type}-${fw_variant}.tgz" ver=$(curl -m5 -ILs "${builder:-$url}" | grep Last-Modified | cut -d' ' -f2-) fi if [ -n "$ver" ]; then fw_date=$(date -D "%a, %d %b %Y %T GMT" +"2.4.%m.%d" --date "$ver") else fw_date="- no access to GitHub -" fi fw_kernel="true" fw_rootfs="true" fw_reboot="true" %> <%in p/header.cgi %>
Updating requires access to GitHub.
<% fi %>