]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
network:fix dns parsing in ip= parameter
authorHarald Hoyer <harald@redhat.com>
Fri, 7 Feb 2014 14:41:50 +0000 (15:41 +0100)
committerHarald Hoyer <harald@redhat.com>
Fri, 7 Feb 2014 14:41:50 +0000 (15:41 +0100)
modules.d/40network/net-lib.sh

index 1b51c856cbfe75794c50b5d5eea280d1143411f9..8948a476f95d9cb5881a7cdb0fae67a8ddb8bfbe 100755 (executable)
@@ -353,7 +353,7 @@ ip_to_var() {
             [ -n "$5" ] && hostname=$5; [ -n "$6" ] && dev=$6; [ -n "$7" ] && autoconf=$7;
             case "$8" in
                 [0-9]*:*|[0-9]*.[0-9]*.[0-9]*.[0-9]*)
-                    dns1="$mtu"; unset $mtu
+                    dns1="$8"
                     [ -n "$9" ] && dns2="$9"
                     ;;
                 [0-9]*)