e83cdd
From 94c75a2a827ff09ffac18454d5c4ba4756d721d6 Mon Sep 17 00:00:00 2001
e83cdd
From: Lubomir Rintel <lkundrak@v3.sk>
e83cdd
Date: Mon, 27 May 2019 12:44:17 +0200
e83cdd
Subject: [PATCH] network-manager: also read out next-server from NM state
e83cdd
e83cdd
(cherry picked from commit 4be95b67a73e7434f92a7d7c40955eae0b59717e)
e83cdd
---
e83cdd
 modules.d/35network-manager/nm-run.sh | 2 +-
e83cdd
 1 file changed, 1 insertion(+), 1 deletion(-)
e83cdd
e83cdd
diff --git a/modules.d/35network-manager/nm-run.sh b/modules.d/35network-manager/nm-run.sh
e83cdd
index 5f4b38ca..a539d5b2 100755
e83cdd
--- a/modules.d/35network-manager/nm-run.sh
e83cdd
+++ b/modules.d/35network-manager/nm-run.sh
e83cdd
@@ -11,7 +11,7 @@ do
e83cdd
     state=/run/NetworkManager/devices/$(cat $_i/ifindex)
e83cdd
     grep -q connection-uuid= $state 2>/dev/null || continue
e83cdd
     ifname=${_i##*/}
e83cdd
-    sed -n 's/root-path/new_root_path/p' <$state >/tmp/dhclient.$ifname.dhcpopts
e83cdd
+    sed -n 's/root-path/new_root_path/p;s/next-server/new_next_server/p' <$state >/tmp/dhclient.$ifname.dhcpopts
e83cdd
     source_hook initqueue/online $ifname
e83cdd
     /sbin/netroot $ifname
e83cdd
 done
e83cdd