poweroff: always call poweroff_oglive and _reboot_oglive

Remove leftover fallback to directly call utilities to poweroff and reboot.
master
OpenGnSys Support Team 2024-02-19 10:04:30 +01:00
parent bcbbe26573
commit dbda6abd22
1 changed files with 2 additions and 8 deletions

View File

@ -225,17 +225,11 @@ class OgLiveOperations:
def poweroff(self):
logging.info('Powering off client')
if os.path.exists('/scripts/oginit'):
self._poweroff_oglive()
else:
subprocess.call(['/sbin/poweroff'])
self._poweroff_oglive()
def reboot(self):
logging.info('Rebooting client')
if os.path.exists('/scripts/oginit'):
self._poweroff_oglive(operation='reboot')
else:
subprocess.call(['/sbin/reboot'])
self._poweroff_oglive(operation='reboot')
def shellrun(self, request, ogRest):
cmd = request.getrun()