summaryrefslogtreecommitdiffstats
path: root/src/utils/menu.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/utils/menu.py')
-rw-r--r--src/utils/menu.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/utils/menu.py b/src/utils/menu.py
index 48e2641..b615d6f 100644
--- a/src/utils/menu.py
+++ b/src/utils/menu.py
@@ -13,7 +13,7 @@ Utility module for ogBrowser menu generation
import os
import socket
-from src.utils.net import getifaddr, getifhwaddr, ethtool
+from src.utils.net import *
MENU_TEMPLATE = """
<div align="center" style="font-family: Arial, Helvetica, sans-serif;">
@@ -39,7 +39,7 @@ def generate_menu(part_setup):
Writes html menu to /opt/opengnsys/log/{ip}.info.html based on a partition
setup
"""
- device = os.getenv('DEVICE')
+ device = get_ethernet_interface()
if not device:
return False