mirror of https://github.com/OpenIPC/firmware.git
customizer & env for custom fw download (#1172)
parent
8d715a47fb
commit
5d6551989d
|
@ -0,0 +1,7 @@
|
||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
case "$1" in
|
||||||
|
start)
|
||||||
|
system_fb
|
||||||
|
;;
|
||||||
|
esac
|
|
@ -34,6 +34,11 @@ case "${CMD}" in
|
||||||
fi
|
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
|
esac
|
||||||
|
|
|
@ -0,0 +1 @@
|
||||||
|
extutils
|
|
@ -1,9 +1,9 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
#
|
#
|
||||||
# OpenIPC.org | v.20231008
|
# OpenIPC.org | v.20231202
|
||||||
#
|
#
|
||||||
|
|
||||||
scr_version=1.0.21
|
scr_version=1.0.22
|
||||||
|
|
||||||
args=" $@"
|
args=" $@"
|
||||||
|
|
||||||
|
@ -89,7 +89,9 @@ download_firmware() {
|
||||||
osr=$(get_system_build)
|
osr=$(get_system_build)
|
||||||
ftype="nor"
|
ftype="nor"
|
||||||
build="${soc}-${ftype}-${osr}"
|
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"
|
echo "Download from $url"
|
||||||
[ -z "$HASERLVER" ] && progress="-#" || progress="-s"
|
[ -z "$HASERLVER" ] && progress="-#" || progress="-s"
|
||||||
[ "$(curl -o /dev/null -s -w '%{http_code}\n' "$url")" = "000" ] && die "Check your network!"
|
[ "$(curl -o /dev/null -s -w '%{http_code}\n' "$url")" = "000" ] && die "Check your network!"
|
||||||
|
|
Loading…
Reference in New Issue