customizer & env for custom fw download (#1172)

pull/1173/head
cronyx 2023-12-02 22:02:43 +03:00 committed by GitHub
parent 8d715a47fb
commit 5d6551989d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 18 additions and 3 deletions

View File

@ -0,0 +1,7 @@
#!/bin/sh
case "$1" in
start)
system_fb
;;
esac

View File

@ -34,6 +34,11 @@ case "${CMD}" in
fi
;;
system_fb)
if ! [ -f /etc/system.ok ]; then
[ -f /usr/share/openipc/customizer.sh ] && echo "Run customizer script..." && sh /usr/share/openipc/customizer.sh && touch /etc/system.ok || echo "Customizer script not present..."
fi
;;
*)
;;
esac

View File

@ -0,0 +1 @@
extutils

View File

@ -1,9 +1,9 @@
#!/bin/sh
#
# OpenIPC.org | v.20231008
# OpenIPC.org | v.20231202
#
scr_version=1.0.21
scr_version=1.0.22
args=" $@"
@ -89,7 +89,9 @@ download_firmware() {
osr=$(get_system_build)
ftype="nor"
build="${soc}-${ftype}-${osr}"
[ -z "$url" ] && url="https://github.com/OpenIPC/firmware/releases/download/${branch}/openipc.${build}.tgz"
fw_download_url=$(fw_printenv -n upgrade)
[ -z "${fw_download_url}" ] && fw_download_url="https://github.com/OpenIPC/firmware/releases/download/${branch}/openipc.${build}.tgz"
[ -z "$url" ] && url="${fw_download_url}"
echo "Download from $url"
[ -z "$HASERLVER" ] && progress="-#" || progress="-s"
[ "$(curl -o /dev/null -s -w '%{http_code}\n' "$url")" = "000" ] && die "Check your network!"