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')
|
interface = os.getenv('DEVICE')
|
||||||
cmd_ethtool = shlex.split(f'ethtool -s {interface} wol g')
|
cmd_ethtool = shlex.split(f'ethtool -s {interface} wol g')
|
||||||
cmd_browser = shlex.split('pkill -9 browser')
|
cmd_browser = shlex.split('pkill -9 browser')
|
||||||
if not shutil.which('busyboxOLD'):
|
if shutil.which('busybox'):
|
||||||
busybox = 'busybox'
|
busybox = 'busybox '
|
||||||
else:
|
else:
|
||||||
busybox = shutil.which('busyboxOLD')
|
busybox = ''
|
||||||
cmd_busybox = shlex.split(f'{busybox} {operation}')
|
cmd_busybox = shlex.split(f'{busybox}{operation}')
|
||||||
|
|
||||||
umount_all()
|
umount_all()
|
||||||
umount_cache()
|
umount_cache()
|
||||||
|
|
Loading…
Reference in New Issue