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