This commit is contained in:
teasiu
2025-09-22 23:04:03 +08:00
parent c0f235740f
commit dcdfe9902c

View File

@@ -66,6 +66,7 @@ printf $GREEN_LINE
up_histb() { up_histb() {
printStr yellow "update: update histb" printStr yellow "update: update histb"
rm -f /usr/sbin/histb /usr/bin/histb
dl_get "update/soft_init/histb-$(getconf LONG_BIT)" /tmp dl_get "update/soft_init/histb-$(getconf LONG_BIT)" /tmp
cp /tmp/histb-$(getconf LONG_BIT) /usr/sbin/histb cp /tmp/histb-$(getconf LONG_BIT) /usr/sbin/histb
chmod +x /usr/sbin/histb chmod +x /usr/sbin/histb
@@ -117,7 +118,7 @@ up_od4b() {
} }
up_nasupgrade() { up_nasupgrade() {
if [ -f /usr/sbin/nasupgrade ]; then if [ -f /usr/sbin/nasupgrade ]; then
rm /usr/sbin/nasupgrade rm /usr/sbin/nasupgrade
fi fi
if [ -f /usr/bin/nasupgrade ]; then if [ -f /usr/bin/nasupgrade ]; then
@@ -125,13 +126,13 @@ up_nasupgrade() {
fi fi
exhostname=$(cat /etc/hostname) exhostname=$(cat /etc/hostname)
if [ "$exhostname" != "hinas" ]; then if [ "$exhostname" != "hinas" ]; then
printStr yellow "update: update nasupgrade" printStr yellow "update: update nasupgrade"
dl_get "${filemodel}_upgrade.sh" /tmp dl_get "${filemodel}_upgrade.sh" /tmp
cp /tmp/${filemodel}_upgrade.sh /usr/bin/nasupgrade cp /tmp/${filemodel}_upgrade.sh /usr/bin/nasupgrade
chmod +x /usr/bin/nasupgrade chmod +x /usr/bin/nasupgrade
printStr yellow "scripts updated" printStr yellow "scripts updated"
printf $GREEN_LINE printf $GREEN_LINE
fi fi
} }
up_chatgpt() { up_chatgpt() {
@@ -226,7 +227,8 @@ up_pulldocker() {
} }
get_cpuid get_cpuid
#ota_script #ota_script
#up_histb up_histb
up_deb
up_vipupgrade up_vipupgrade
up_kaitongfrp up_kaitongfrp
up_nasupgrade up_nasupgrade
@@ -236,7 +238,6 @@ up_nasupgrade
#up_TestNAT #up_TestNAT
#up_ksrun #up_ksrun
up_pulldocker up_pulldocker
up_deb
up_installdisk up_installdisk
_exit 0 "all upgraded successed" _exit 0 "all upgraded successed"