iavofficial / IAV_Distortion

Is a framework to showcase cyber security influences on anki-overdrive vehicles
Apache License 2.0
3 stars 1 forks source link

Add utility functions #32

Closed iav-BjRo closed 2 months ago

iav-BjRo commented 4 months ago

Is your feature request related to a problem? Please describe. Currently an update can only be performed manually. There should be an option in the staffUI to update the programm. Additionally there shall it shall be possible to restart the program, restart the system and shutdown the system from the staffui.

Describe the solution you'd like In the staffUI there shall be an option to trigger an update of IAV-Distortion. This shall pull the latest version of the used branch on the host system.

Additional context For specific uses like development or specific events different versions/branches might be installed on the host system, not always the master branch. Therefore the update should always pull the used branch to make sure to not switch to different versions.

Currently the desired hardware for the system is the raspberry pi 5. Therefore the focus is on a solution for unix like systems.

iav-BjRo commented 4 months ago

Utility scripts (bash scripts) has been created and added. Next add option to call utility scripts from staffUI.

iav-BjRo commented 3 months ago

New 'configuration menu' added to the staff ui with buttons to run different utility scripts (update, restart program/system, shutdown system). Utility scripts currently only available on Linux systems. On other systems a popup with error message will be shown.

iav-BjRo commented 3 months ago

bugs fixed. Added logfiles for latest restart and update attempt.

iav-BjRo commented 2 months ago

reviewed with @iav-DaBi