[no ci] Update sysupgrade (#1714)

pull/1717/head
viktorxda 2025-02-19 17:22:30 +01:00 committed by GitHub
parent fcae5981ff
commit a0829d8920
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 26 additions and 41 deletions

View File

@ -1,12 +1,8 @@
#!/bin/sh
#
# OpenIPC.org | 2024
#
scr_version=1.0.45
# OpenIPC.org | 2025
scr_version=1.0.46
args="$@"
LOCK_FILE=/tmp/sysupgrade.lock
echo_c() {
@ -226,9 +222,6 @@ Where:
--archive=[FILE] Custom archive to update from (.tgz format).
--kernel=[FILE] Update kernel from file (uImage format).
--rootfs=[FILE] Update rootfs from file (squashfs format).
--force_md5 Do not validate MD5 hash.
--force_soc Do not validate processor.
--force_ver Do not validate release version.
-f, --force_all Do not validate anything.
-n, --wipe_overlay Wipe overlay partition.
-x, --no_reboot Do not reboot after updating.
@ -252,28 +245,6 @@ reboot_system() {
for i in "$@"; do
case $i in
-f | --force_all)
skip_md5=1
skip_soc=1
skip_ver=1
shift
;;
--force_md5)
skip_md5=1
shift
;;
--force_soc)
skip_soc=1
shift
;;
--force_ver)
skip_ver=1
shift
;;
-h | --help)
print_sysinfo
print_usage
@ -293,11 +264,6 @@ for i in "$@"; do
shift
;;
-n | --wipe_overlay)
clear_overlay=1
shift
;;
-r)
update_rootfs=1
remote_update=1
@ -311,21 +277,35 @@ for i in "$@"; do
shift
;;
-s)
silent_update=1
shift
;;
--url=*)
update_kernel=1
update_rootfs=1
remote_update=1
url="${i#*=}"
shift
;;
--archive=*)
update_kernel=1
update_rootfs=1
remote_update=1
skip_selfupdate=1
archive="${i#*=}"
shift
;;
-f | --force_all | --force_md5 | --force_soc | --force_ver)
skip_md5=1
skip_soc=1
skip_ver=1
shift
;;
-n | --wipe_overlay)
clear_overlay=1
shift
;;
-x | --no_reboot)
skip_reboot=1
shift
@ -336,6 +316,11 @@ for i in "$@"; do
shift
;;
-s)
silent_update=1
shift
;;
*)
print_sysinfo
echo_c 37 "\nUnknown option: $1"