]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
network: fix dhcp classless_static_routes
authorHarald Hoyer <harald@redhat.com>
Wed, 7 Sep 2016 07:33:31 +0000 (09:33 +0200)
committerHarald Hoyer <harald@redhat.com>
Wed, 14 Jun 2017 13:22:18 +0000 (15:22 +0200)
removed copy&paste artifact "modify_routes add"

there is no modify_routes() function, and we simply want the output
of the parse function.

(cherry picked from commit 33710dfbfcf43f4438ed58e45e2599d3fe47e2f3)

modules.d/40network/dhclient-script.sh

index 68fe0575d395862f6e7410c710b6d5d888d9ff6a..0332a76c48680d91983a3e46d4b59a1ab9ab0cc9 100755 (executable)
@@ -191,7 +191,7 @@ case $reason in
             echo '. /lib/net-lib.sh'
             echo "setup_net $netif"
             if [ -n "$new_classless_static_routes" ]; then
-                modify_routes add "$(parse_option_121 $new_classless_static_routes)"
+                parse_option_121 $new_classless_static_routes
             fi
             echo "source_hook initqueue/online $netif"
             [ -e /tmp/net.$netif.manualup ] || echo "/sbin/netroot $netif"