]> git.ipfire.org Git - thirdparty/dracut.git/commit
network/dhclient-script: also parse dot separated $new_classless_static_routes 242/head
authorLukas Nykryn <lnykryn@redhat.com>
Mon, 26 Jun 2017 08:12:46 +0000 (10:12 +0200)
committerLukas Nykryn <lnykryn@redhat.com>
Mon, 26 Jun 2017 08:12:46 +0000 (10:12 +0200)
commit337a55eb2dfe17293fe286603de9032af58121d4
treeca85c5a9ceae287ad0dc88eac93d23b386a091a3
parenta0d129e33e2225f2d5536e4069d04bc1878971a0
network/dhclient-script: also parse dot separated $new_classless_static_routes

Previously our dhclient-script expected that $new_classless_static_routes
will have all values separated by a whitespace. But at least on F25
dhclient will put there the destination descriptor in the same format
as it is used by ISC dhcp-server.
For example:
new_classless_static_routes=32.10.198.122.47 192.168.78.4
while our current code expects
new_classless_static_routes=32 10 198 122 47 192 168 78 4

So let's just accept both of these formats by adding "." to IFS.

For details plesse see https://tools.ietf.org/html/rfc3442
"Classless Route Option Format"
modules.d/40network/dhclient-script.sh