4
0

added update & uboot functions

This commit is contained in:
Benjamin Böhmke
2019-12-01 21:20:32 +01:00
parent 1e9904b64b
commit cecb06c7ac
6 changed files with 327 additions and 3 deletions

View File

@@ -65,6 +65,7 @@ func SystemDisableSSH() error {
return nil
}
// SystemShutdown start shutdown of system
func SystemShutdown() error {
cmd := exec.Command(systemShutdown)
err := cmd.Run()
@@ -74,6 +75,7 @@ func SystemShutdown() error {
return nil
}
// SystemReboot start reboot of system
func SystemReboot() error {
cmd := exec.Command(systemReboot)
err := cmd.Run()