mirror of https://git.48k.eu/ogclient
live: use busybox otherwise poweroff/reboot commands
parent
9c2ae873f2
commit
9c18ef7392
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue