diff options
author | OpenGnSys Support Team <soporte-og@soleta.eu> | 2024-02-19 10:04:30 +0100 |
---|---|---|
committer | OpenGnSys Support Team <soporte-og@soleta.eu> | 2024-02-19 10:07:27 +0100 |
commit | dbda6abd2280f8e7cd7421a8c902d54b89ff02b5 (patch) | |
tree | 5aea7c78f3ba63ae92562e2156e7189ecaed1128 /src | |
parent | bcbbe26573233f0f4f5adcac73185bd4bba3ad11 (diff) |
poweroff: always call poweroff_oglive and _reboot_oglive
Remove leftover fallback to directly call utilities to poweroff and reboot.
Diffstat (limited to 'src')
-rw-r--r-- | src/live/ogOperations.py | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/src/live/ogOperations.py b/src/live/ogOperations.py index d538790..202a35b 100644 --- a/src/live/ogOperations.py +++ b/src/live/ogOperations.py @@ -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() |