From 9c18ef7392c801e68b72e5e0e2770b9aed0a38bc Mon Sep 17 00:00:00 2001 From: OpenGnSys Support Team Date: Sat, 28 Sep 2024 22:49:06 +0200 Subject: live: use busybox otherwise poweroff/reboot commands --- src/live/ogOperations.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/live/ogOperations.py') diff --git a/src/live/ogOperations.py b/src/live/ogOperations.py index 77e6514..d0a848b 100644 --- a/src/live/ogOperations.py +++ b/src/live/ogOperations.py @@ -346,11 +346,11 @@ class OgLiveOperations: interface = os.getenv('DEVICE') cmd_ethtool = shlex.split(f'ethtool -s {interface} wol g') cmd_browser = shlex.split('pkill -9 browser') - if not shutil.which('busyboxOLD'): - busybox = 'busybox' + if shutil.which('busybox'): + busybox = 'busybox ' else: - busybox = shutil.which('busyboxOLD') - cmd_busybox = shlex.split(f'{busybox} {operation}') + busybox = '' + cmd_busybox = shlex.split(f'{busybox}{operation}') umount_all() umount_cache() -- cgit v1.2.3-18-g5258