From 0659f70d6483a65ef2a03a5b0a742a51a9b091c5 Mon Sep 17 00:00:00 2001 From: Jan Schneider Date: Mon, 27 Mar 2017 22:40:43 +0200 Subject: [PATCH] delay reboot, use abs path for df --- addon/lib/rmupdate.tcl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/addon/lib/rmupdate.tcl b/addon/lib/rmupdate.tcl index 4d5e387..f470909 100644 --- a/addon/lib/rmupdate.tcl +++ b/addon/lib/rmupdate.tcl @@ -118,7 +118,7 @@ proc ::rmupdate::umount {device_or_mountpoint} { } proc ::rmupdate::get_filesystem_size_and_usage {device_or_mountpoint} { - set data [exec df] + set data [exec /bin/df] foreach d [split $data "\n"] { regexp {^(\S+)\s+\d+\s+(\d+)\s+(\d+)\s+\d+%\s(\S+)\s*$} $d match device used available mountpoint if { [info exists device] } { @@ -387,7 +387,7 @@ proc ::rmupdate::install_firmware_version {version {reboot 1}} { if {$reboot} { write_log "Rebooting system." - exec /sbin/reboot -f + exec /bin/sh -c "/bin/sleep 5; /sbin/reboot -f" & } }