mirror of
https://github.com/Ysurac/openmptcprouter.git
synced 2025-02-15 04:42:02 +00:00
Fix UEFI patch
This commit is contained in:
parent
fa911bcf0c
commit
02f35c7a69
1 changed files with 3 additions and 3 deletions
|
@ -870,8 +870,8 @@ index aff720a52c5..8eea97c5b66 100644
|
||||||
+ magic=$(dd if="/dev/$partdev" bs=1 count=3 skip=54 2>/dev/null)
|
+ magic=$(dd if="/dev/$partdev" bs=1 count=3 skip=54 2>/dev/null)
|
||||||
+ [ "$magic" = "FAT" ] && parttype=vfat
|
+ [ "$magic" = "FAT" ] && parttype=vfat
|
||||||
+ mount -t $parttype -o rw,noatime "/dev/$partdev" /boot
|
+ mount -t $parttype -o rw,noatime "/dev/$partdev" /boot
|
||||||
if [ -f /boot/sysupgrade.tgz ]; then
|
if [ -f "/boot/$BACKUP_FILE" ]; then
|
||||||
mv -f /boot/sysupgrade.tgz /
|
mv -f "/boot/$BACKUP_FILE" /
|
||||||
fi
|
fi
|
||||||
diff --git a/target/linux/x86/base-files/lib/upgrade/platform.sh b/target/linux/x86/base-files/lib/upgrade/platform.sh
|
diff --git a/target/linux/x86/base-files/lib/upgrade/platform.sh b/target/linux/x86/base-files/lib/upgrade/platform.sh
|
||||||
index 162dbaf3aaa..ac060818df1 100644
|
index 162dbaf3aaa..ac060818df1 100644
|
||||||
|
@ -889,7 +889,7 @@ index 162dbaf3aaa..ac060818df1 100644
|
||||||
+ magic=$(dd if="/dev/$partdev" bs=1 count=3 skip=54 2>/dev/null)
|
+ magic=$(dd if="/dev/$partdev" bs=1 count=3 skip=54 2>/dev/null)
|
||||||
+ [ "$magic" = "FAT" ] && parttype=vfat
|
+ [ "$magic" = "FAT" ] && parttype=vfat
|
||||||
+ mount -t $parttype -o rw,noatime "/dev/$partdev" /mnt
|
+ mount -t $parttype -o rw,noatime "/dev/$partdev" /mnt
|
||||||
cp -af "$CONF_TAR" /mnt/
|
cp -af "$UPGRADE_BACKUP" "/mnt/$BACKUP_FILE"
|
||||||
umount /mnt
|
umount /mnt
|
||||||
fi
|
fi
|
||||||
diff --git a/target/linux/x86/generic/config-4.14 b/target/linux/x86/generic/config-4.14
|
diff --git a/target/linux/x86/generic/config-4.14 b/target/linux/x86/generic/config-4.14
|
||||||
|
|
Loading…
Reference in a new issue