]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
ifcfg/write-ifcfg.sh: unset vlan
authorHarald Hoyer <harald@redhat.com>
Tue, 21 Apr 2015 08:34:31 +0000 (10:34 +0200)
committerHarald Hoyer <harald@redhat.com>
Tue, 21 Apr 2015 13:10:49 +0000 (15:10 +0200)
clear the vlan flag, if a previous interface in the loop
was a vlan interface

modules.d/45ifcfg/write-ifcfg.sh

index 3dcf3042491798b65a48563a09986dfcdc49a553..63afbaa3da1acabe2385bb78a46cddd5bcd28a75 100755 (executable)
@@ -137,6 +137,8 @@ for netup in /tmp/net.*.did-setup ; do
     unset macaddr
     unset slave
     unset ethname
+    unset vlan
+
     [ -e /tmp/bond.${netif}.info ] && . /tmp/bond.${netif}.info
 
     uuid=$(cat /proc/sys/kernel/random/uuid)