1
0
mirror of https://github.com/IceWhaleTech/CasaOS.git synced 2025-07-15 23:54:17 +02:00

Socketio modification (#771)

This commit is contained in:
link
2022-12-20 14:05:16 +08:00
committed by GitHub
parent c6d89f9cb2
commit cd79e51f8f
10 changed files with 96 additions and 238 deletions

View File

@ -384,6 +384,7 @@ func (s *systemService) GetCPUPower() map[string]string {
}
func (s *systemService) SystemReboot() error {
//cmd := exec.Command("/bin/bash", "-c", "reboot")
arg := []string{"6"}
cmd := exec.Command("init", arg...)
_, err := cmd.CombinedOutput()