mirror of
https://github.com/j-a-n/raspberrymatic-addon-rmupdate.git
synced 2023-10-10 13:37:40 +02:00
binary handling of boot.scr
This commit is contained in:
parent
921c253ff9
commit
025cdf26ea
@ -446,6 +446,7 @@ proc ::rmupdate::update_cmdline {cmdline root} {
|
||||
|
||||
proc ::rmupdate::update_boot_scr {boot_scr root} {
|
||||
set fd [open $boot_scr r]
|
||||
fconfigure $fd -translation binary
|
||||
set data [read $fd]
|
||||
close $fd
|
||||
|
||||
@ -453,6 +454,7 @@ proc ::rmupdate::update_boot_scr {boot_scr root} {
|
||||
regsub -all "setenv userfs \[0-9\]" $data "setenv userfs 4" data
|
||||
|
||||
set fd [open $boot_scr w]
|
||||
fconfigure $fd -translation binary
|
||||
puts $fd $data
|
||||
close $fd
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user