Skip to content

Commit

Permalink
fix mdio-tool command
Browse files Browse the repository at this point in the history
  • Loading branch information
bleykauf committed Dec 28, 2023
1 parent c9a1168 commit ebcda31
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions linien-server/linien_server/mdio_tool.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ def enable_ethernet_blinking() -> None:
"""
binary_path = Path(__file__).parent / "mdio-tool"
logger.info(f"Enabling ethernet blinking with mdio-tool at {binary_path}")
subprocess.run(["bash", "-c", f"'{binary_path} w eth0 0x1b 0x0f00'"])
subprocess.run([f"{binary_path}", "w", "eth0", "0x1b", "0x0f00"])


def disable_ethernet_blinking() -> None:
Expand All @@ -42,4 +42,4 @@ def disable_ethernet_blinking() -> None:
"""
binary_path = Path(__file__).parent / "mdio-tool"
logger.info(f"Disabling ethernet blinking with mdio-tool at {binary_path}")
subprocess.run(["bash", "-c", f"'{binary_path} w eth0 0x1b 0x0000'"])
subprocess.run([f"{binary_path}", "w", "eth0", "0x1b", "0x0000"])

0 comments on commit ebcda31

Please sign in to comment.