network-manager: also read out next-server from NM state

master
Lubomir Rintel 2019-05-27 12:44:17 +02:00 committed by Harald Hoyer
parent 5e0f8c8a4c
commit 4be95b67a7
1 changed files with 1 additions and 1 deletions

View File

@ -11,7 +11,7 @@ do
state=/run/NetworkManager/devices/$(cat $_i/ifindex) state=/run/NetworkManager/devices/$(cat $_i/ifindex)
grep -q connection-uuid= $state 2>/dev/null || continue grep -q connection-uuid= $state 2>/dev/null || continue
ifname=${_i##*/} ifname=${_i##*/}
sed -n 's/root-path/new_root_path/p' <$state >/tmp/dhclient.$ifname.dhcpopts sed -n 's/root-path/new_root_path/p;s/next-server/new_next_server/p' <$state >/tmp/dhclient.$ifname.dhcpopts
source_hook initqueue/online $ifname source_hook initqueue/online $ifname
/sbin/netroot $ifname /sbin/netroot $ifname
done done