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

Show current user device in system info

This commit is contained in:
Jan Schneider
2018-02-25 19:20:27 +01:00
parent 50038c37fa
commit 507314f45e
3 changed files with 79 additions and 41 deletions

View File

@@ -55,7 +55,8 @@ proc process {} {
} elseif {[lindex $path 1] == "get_system_info"} {
set system_type [rmupdate::get_rpi_version]
set root_partition [rmupdate::get_partition_device [rmupdate::get_system_device] [rmupdate::get_current_root_partition_number]]
return "\{\"system_type\":\"${system_type}\",\"root_partition\":\"${root_partition}\"\}"
set user_partition [rmupdate::get_mounted_device "/usr/local"]
return "\{\"system_type\":\"${system_type}\",\"root_partition\":\"${root_partition}\",\"user_partition\":\"${user_partition}\"\}"
} elseif {[lindex $path 1] == "system_reboot"} {
exec /sbin/reboot
return "\"reboot initiated\""