mirror of
https://github.com/j-a-n/raspberrymatic-addon-rmupdate.git
synced 2023-10-10 11:37:40 +00:00
Set correct mbr signature
This commit is contained in:
parent
eca7589cb5
commit
e7dd677b5b
@ -1368,6 +1368,13 @@ proc ::rmupdate::install_firmware {{download_url ""} {version ""} {lang ""} {reb
|
|||||||
exec /bin/mount -o remount,ro "/boot"
|
exec /bin/mount -o remount,ro "/boot"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
set ptuuid ""
|
||||||
|
catch { set ptuuid [exec blkid -s PTUUID -o value $sys_dev] }
|
||||||
|
if { $ptuuid != "deedbeef" } {
|
||||||
|
write_log 3 "Update mbr signature"
|
||||||
|
catch { exec /bin/echo -en "\\xef\\xbe\\xed\\xde" | /bin/dd of=$sys_dev conv=notrunc seek=440 bs=1 }
|
||||||
|
}
|
||||||
|
|
||||||
#exec /bin/mount -o remount,rw "/boot"
|
#exec /bin/mount -o remount,rw "/boot"
|
||||||
#set fd [open "/boot/recoveryfs-sshpwd" "w"]
|
#set fd [open "/boot/recoveryfs-sshpwd" "w"]
|
||||||
#puts -nonewline $fd "rmupdate"
|
#puts -nonewline $fd "rmupdate"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user