diff --git a/addon/www/index.html b/addon/www/index.html index 345d02c..b69224c 100644 --- a/addon/www/index.html +++ b/addon/www/index.html @@ -463,6 +463,8 @@ along with this program. If not, see . system_info: 'System information', current_root_partiton: 'Current root partition: {{root_partition}}', system_type: 'System type: {{system_type}}', + reboot_system: 'Reboot system', + shutdown_system: 'Shutdown system', firmwares: 'Firmwares', current_installed_version: 'Current installed version', latest_available_version: 'Latest available version', @@ -516,6 +518,8 @@ along with this program. If not, see . system_info: 'System-Informationen', current_root_partiton: 'Aktuelle Root-Partition: {{root_partition}}', system_type: 'System-Typ: {{system_type}}', + reboot_system: 'System neu starten', + shutdown_system: 'System herunterfahren', firmwares: 'Firmwares', current_installed_version: 'Momentan installierte Version', latest_available_version: 'Aktuellste verfügbare Version', @@ -633,6 +637,8 @@ along with this program. If not, see .
+
+

diff --git a/addon/www/rest.cgi b/addon/www/rest.cgi index 3f96e03..61e7775 100644 --- a/addon/www/rest.cgi +++ b/addon/www/rest.cgi @@ -56,6 +56,12 @@ proc process {} { set system_type [rmupdate::get_rpi_version] set root_partition [rmupdate::get_current_root_partition] return "\{\"system_type\":\"${system_type}\",\"root_partition\":${root_partition}\}" + } elseif {[lindex $path 1] == "system_reboot"} { + exec /sbin/reboot + return "\"reboot initiated\"" + } elseif {[lindex $path 1] == "system_shutdown"} { + exec /sbin/shutdown + return "\"shutdown initiated\"" } elseif {[lindex $path 1] == "get_addon_info"} { return [rmupdate::get_addon_info 1 1 1] } elseif {[lindex $path 1] == "start_install_firmware"} {