From dcdfe9902c1ac67cfca1a9755d0ba27c1ca53d9a Mon Sep 17 00:00:00 2001 From: teasiu Date: Mon, 22 Sep 2025 23:04:03 +0800 Subject: [PATCH] update --- static/ota.sh | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) diff --git a/static/ota.sh b/static/ota.sh index 6637413..d2bd816 100755 --- a/static/ota.sh +++ b/static/ota.sh @@ -66,6 +66,7 @@ printf $GREEN_LINE up_histb() { printStr yellow "update: update histb" +rm -f /usr/sbin/histb /usr/bin/histb dl_get "update/soft_init/histb-$(getconf LONG_BIT)" /tmp cp /tmp/histb-$(getconf LONG_BIT) /usr/sbin/histb chmod +x /usr/sbin/histb @@ -117,7 +118,7 @@ up_od4b() { } up_nasupgrade() { - if [ -f /usr/sbin/nasupgrade ]; then + if [ -f /usr/sbin/nasupgrade ]; then rm /usr/sbin/nasupgrade fi if [ -f /usr/bin/nasupgrade ]; then @@ -125,13 +126,13 @@ up_nasupgrade() { fi exhostname=$(cat /etc/hostname) if [ "$exhostname" != "hinas" ]; then - printStr yellow "update: update nasupgrade" - dl_get "${filemodel}_upgrade.sh" /tmp - cp /tmp/${filemodel}_upgrade.sh /usr/bin/nasupgrade - chmod +x /usr/bin/nasupgrade - printStr yellow "scripts updated" - printf $GREEN_LINE - fi + printStr yellow "update: update nasupgrade" + dl_get "${filemodel}_upgrade.sh" /tmp + cp /tmp/${filemodel}_upgrade.sh /usr/bin/nasupgrade + chmod +x /usr/bin/nasupgrade + printStr yellow "scripts updated" + printf $GREEN_LINE + fi } up_chatgpt() { @@ -226,7 +227,8 @@ up_pulldocker() { } get_cpuid #ota_script -#up_histb +up_histb +up_deb up_vipupgrade up_kaitongfrp up_nasupgrade @@ -236,7 +238,6 @@ up_nasupgrade #up_TestNAT #up_ksrun up_pulldocker -up_deb up_installdisk _exit 0 "all upgraded successed"