1
0
mirror of https://github.com/j-a-n/raspberrymatic-addon-rmupdate.git synced 2023-10-10 11:37:40 +00:00

Replace /lib just before reboot, patch cmdline.txt and /etc/fstab

This commit is contained in:
Jan Schneider
2017-06-18 23:27:29 +02:00
parent 7c9d7e9492
commit 4af69aba51
5 changed files with 152 additions and 18 deletions

View File

@@ -75,7 +75,8 @@ proc process {} {
} elseif {[lindex $path 1] == "delete_firmware_image"} {
regexp {\"version\"\s*:\s*\"([\d\.]+)\"} $data match version
if { [info exists version] && $version != "" } {
return "\"[rmupdate::delete_firmware_image $version]\""
set res [rmupdate::delete_firmware_image $version]
return "\"${res}\""
} else {
error "Invalid version: ${data}"
}