Skip to content

Commit

Permalink
auto-VLAN fix from Pavel Volkovitskiy
Browse files Browse the repository at this point in the history
  • Loading branch information
danielrobbins committed Aug 18, 2010
1 parent e079a60 commit feaef17
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion init.d/netif.tmpl
Expand Up @@ -60,11 +60,11 @@ depend() {

start() {
ebegin "$STARTD"
ip addr flush dev $interface
if [ "$vlanmode" != "off" ]; then
require trunk vlan
ip link add dev ${interface} link ${trunk} type vlan id ${vlan} || die "Couldn't configure VLAN ${vlan} on ${trunk}"
fi
ip addr flush dev $interface
netif_pre_up
ip link set $interface up
if [ -n "$mtu" ]; then
Expand Down

0 comments on commit feaef17

Please sign in to comment.