From d36ce6ba45a9015c049c3529cbcef4a4faa33be3 Mon Sep 17 00:00:00 2001 From: Jan Schneider Date: Thu, 26 Apr 2018 23:06:32 +0200 Subject: [PATCH] Create symlink /usr/local/.firmwareUpdate to firmware directory --- addon/lib/rmupdate.tcl | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/addon/lib/rmupdate.tcl b/addon/lib/rmupdate.tcl index f18561e..c522d39 100644 --- a/addon/lib/rmupdate.tcl +++ b/addon/lib/rmupdate.tcl @@ -1306,15 +1306,16 @@ proc ::rmupdate::install_firmware {{download_url ""} {version ""} {lang ""} {reb # Relabel rootfs1 to rootfs catch { exec tune2fs -L rootfs [get_partition_device [get_system_device] 2] } } - catch {file mkdir $tmp_dir} - catch {file delete "${tmp_dir}/new_firmware.img"} + catch { file mkdir $tmp_dir } + catch { file delete "${tmp_dir}/new_firmware.img" } + catch { file delete /usr/local/.firmwareUpdate } if {!$dryrun} { if {$version == "" || $keep_download == 0} { file rename -force $firmware_image "${tmp_dir}/new_firmware.img" } else { file copy -force $firmware_image "${tmp_dir}/new_firmware.img" } - catch { exec ln -sf "${tmp_dir}/new_firmware.img" /usr/local/.firmwareUpdate } + catch { exec ln -sf $tmp_dir /usr/local/.firmwareUpdate } set reboot 1 } } else {