update 2025-08-20 20:37:50

This commit is contained in:
actions-user
2025-08-20 20:37:50 +08:00
parent 2f6ef7405f
commit 2468026d67
2 changed files with 4 additions and 5 deletions

View File

@ -16,7 +16,7 @@
include $(TOPDIR)/rules.mk
PKG_NAME:=luci-app-amlogic
PKG_VERSION:=3.1.266
PKG_VERSION:=3.1.268
PKG_RELEASE:=1
PKG_LICENSE:=GPL-2.0 License

View File

@ -268,7 +268,8 @@ update_kernel() {
rm -f /boot/uInitrd*
else
valid_files="vmlinuz-${kernel_name} uInitrd-${kernel_name} config-${kernel_name} System.map-${kernel_name}"
rm -f /boot/initrd.img*
# wxy-oect: MODEL_ID numbers r304 and r306, require special handling of uInitrd
[[ "${MODEL_ID}" =~ ^(r304|r306)$ ]] || rm -f /boot/initrd.img*
fi
for f in ${valid_files}; do [[ -f "/boot/${f}" ]] || restore_kernel; done
@ -289,9 +290,7 @@ update_kernel() {
fi
# wxy-oect: MODEL_ID numbers r304 and r306, require special handling of uInitrd
[[ "${MODEL_ID}" == "r304" || "${MODEL_ID}" == "r306" ]] && {
rm -f uInitrd && ln -sf initrd.img-${kernel_name} uInitrd
}
[[ "${MODEL_ID}" =~ ^(r304|r306)$ ]] && ln -sf initrd.img-${kernel_name} uInitrd
)
echo -e "(1/3) Unpacking [ boot-${kernel_name}.tar.gz ] done."