QMI: Update red/iface file when using QMI.

Message ID 20221021141520.3697-1-stefan.schantl@ipfire.org
State Accepted
Commit 883ec31e3c3e7ec9fa27e65a6c15e2c9effd7e9f
Headers
Series QMI: Update red/iface file when using QMI. |

Commit Message

Stefan Schantl Oct. 21, 2022, 2:15 p.m. UTC
  Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
---
 src/initscripts/networking/red | 3 +++
 1 file changed, 3 insertions(+)
  

Patch

diff --git a/src/initscripts/networking/red b/src/initscripts/networking/red
index f927ddbfb..16d48f3ac 100644
--- a/src/initscripts/networking/red
+++ b/src/initscripts/networking/red
@@ -226,6 +226,9 @@  case "${1}" in
 				# Set up the interface
 				ip link set "${RED_DEV}" up &>/dev/null
 
+				# Write red device name to the corresponding file.
+				echo -n "${RED_DEV}" > /var/ipfire/red/iface
+
 				# Start the DHCP client
 				dhcpcd_start "${RED_DEV}" --dhcp