From 025cdf26ea1cde176d439e25fc58790d30019b8b Mon Sep 17 00:00:00 2001 From: Jan Schneider Date: Fri, 23 Mar 2018 20:56:03 +0100 Subject: [PATCH] binary handling of boot.scr --- addon/lib/rmupdate.tcl | 2 ++ 1 file changed, 2 insertions(+) diff --git a/addon/lib/rmupdate.tcl b/addon/lib/rmupdate.tcl index 8063c66..1c8d403 100644 --- a/addon/lib/rmupdate.tcl +++ b/addon/lib/rmupdate.tcl @@ -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 }