Merge pull request #6638 from McGiverGim/attended_sysupgrade_fix_x86
luci-app-attendedsysupgrade: fix search for x86 target
This commit is contained in:
commit
bc37a550ac
1 changed files with 1 additions and 1 deletions
|
@ -89,7 +89,7 @@ return view.extend({
|
|||
for (image of images) {
|
||||
if (this.firmware.filesystem == image.filesystem) {
|
||||
// x86 images can be combined-efi (EFI) or combined (BIOS)
|
||||
if(this.firmware.target.indexOf("x86")) {
|
||||
if(this.firmware.target.indexOf("x86") != -1) {
|
||||
if (this.data.efi && image.type == 'combined-efi') {
|
||||
return image;
|
||||
} else if (image.type == 'combined') {
|
||||
|
|
Loading…
Reference in a new issue