binary handling of boot.scr

This commit is contained in:
Jan Schneider 2018-03-23 20:56:03 +01:00
parent 921c253ff9
commit 025cdf26ea
1 changed files with 2 additions and 0 deletions

View File

@ -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
}