File tree Expand file tree Collapse file tree 2 files changed +4
-5
lines changed Expand file tree Collapse file tree 2 files changed +4
-5
lines changed Original file line number Diff line number Diff line change 16
16
include $(TOPDIR ) /rules.mk
17
17
18
18
PKG_NAME: =luci-app-amlogic
19
- PKG_VERSION: =3.1.266
19
+ PKG_VERSION: =3.1.268
20
20
PKG_RELEASE: =1
21
21
22
22
PKG_LICENSE: =GPL-2.0 License
Original file line number Diff line number Diff line change @@ -268,7 +268,8 @@ update_kernel() {
268
268
rm -f /boot/uInitrd*
269
269
else
270
270
valid_files=" vmlinuz-${kernel_name} uInitrd-${kernel_name} config-${kernel_name} System.map-${kernel_name} "
271
- rm -f /boot/initrd.img*
271
+ # wxy-oect: MODEL_ID numbers r304 and r306, require special handling of uInitrd
272
+ [[ " ${MODEL_ID} " =~ ^(r304| r306)$ ]] || rm -f /boot/initrd.img*
272
273
fi
273
274
for f in ${valid_files} ; do [[ -f " /boot/${f} " ]] || restore_kernel; done
274
275
@@ -289,9 +290,7 @@ update_kernel() {
289
290
fi
290
291
291
292
# wxy-oect: MODEL_ID numbers r304 and r306, require special handling of uInitrd
292
- [[ " ${MODEL_ID} " == " r304" || " ${MODEL_ID} " == " r306" ]] && {
293
- rm -f uInitrd && ln -sf initrd.img-${kernel_name} uInitrd
294
- }
293
+ [[ " ${MODEL_ID} " =~ ^(r304| r306)$ ]] && ln -sf initrd.img-${kernel_name} uInitrd
295
294
)
296
295
297
296
echo -e " (1/3) Unpacking [ boot-${kernel_name} .tar.gz ] done."
You can’t perform that action at this time.
0 commit comments