live: use busybox otherwise poweroff/reboot commands

master
OpenGnSys Support Team 2024-09-28 22:49:06 +02:00
parent 9c2ae873f2
commit 9c18ef7392
1 changed files with 4 additions and 4 deletions

View File

@ -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()