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

implement partiton table deletion

This commit is contained in:
Jan Schneider
2018-03-31 10:22:40 +02:00
parent 513e22dbf6
commit 32e38df0a9
3 changed files with 53 additions and 0 deletions

View File

@@ -61,6 +61,10 @@ proc process {} {
} elseif {[lindex $path 1] == "move_userfs_to_device"} {
regexp {\"target_device\"\s*:\s*\"([^\"]+)\"} $data match target_device
return [rmupdate::move_userfs_to_device $target_device 1 1]
} elseif {[lindex $path 1] == "delete_partition_table"} {
regexp {\"device\"\s*:\s*\"([^\"]+)\"} $data match device
rmupdate::delete_partition_table $device
return "\"deleted\""
} elseif {[lindex $path 1] == "system_reboot"} {
exec /sbin/reboot
return "\"reboot initiated\""