summaryrefslogtreecommitdiffstats
path: root/src/live
diff options
context:
space:
mode:
Diffstat (limited to 'src/live')
-rw-r--r--src/live/ogOperations.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/live/ogOperations.py b/src/live/ogOperations.py
index 2f59711..48bb1ee 100644
--- a/src/live/ogOperations.py
+++ b/src/live/ogOperations.py
@@ -24,7 +24,7 @@ from src.live.parttypes import get_parttype
from src.utils.image import *
from src.utils.postinstall import configure_os
-from src.utils.net import ethtool
+from src.utils.net import *
from src.utils.menu import generate_menu
from src.utils.fs import *
from src.utils.probe import os_probe, get_cache_dev_path
@@ -343,7 +343,7 @@ class OgLiveOperations:
f.truncate(0)
def _poweroff_oglive(self, operation='poweroff'):
- interface = os.getenv('DEVICE')
+ interface = get_ethernet_interface()
cmd_ethtool = shlex.split(f'ethtool -s {interface} wol g')
cmd_browser = shlex.split('pkill -9 browser')
if shutil.which('busybox'):
@@ -772,7 +772,7 @@ class OgLiveOperations:
cache = get_cache_dev_path()
disks = get_disks()
- interface = os.getenv('DEVICE')
+ interface = get_ethernet_interface()
link = ethtool(interface)
json_body = { 'serial_number': '',
'disk_setup': [],