diff options
author | Jouke Witteveen <j.witteveen@gmail.com> | 2014-02-27 13:43:22 +0100 |
---|---|---|
committer | Jouke Witteveen <j.witteveen@gmail.com> | 2014-02-27 13:48:49 +0100 |
commit | 03afcdce237b2dc52a6c1fea72b715cf6c34bf05 (patch) | |
tree | 90f98f8f08a748dea06f479d88fa91938015b645 /src/lib/connections/vlan | |
parent | bcca0a027786c0d23f3f70c9f21b3332f41786e1 (diff) | |
download | netctl-03afcdce237b2dc52a6c1fea72b715cf6c34bf05.tar.gz netctl-03afcdce237b2dc52a6c1fea72b715cf6c34bf05.tar.xz |
Uniform adding and deleting of interfaces
The main benefit is the possibility to use interface hooks for links
that are created at runtime.
Diffstat (limited to 'src/lib/connections/vlan')
-rw-r--r-- | src/lib/connections/vlan | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/connections/vlan b/src/lib/connections/vlan index e9ab08b..b34a67e 100644 --- a/src/lib/connections/vlan +++ b/src/lib/connections/vlan @@ -12,7 +12,7 @@ vlan_up() { return 1 else bring_interface_up "$BindsToInterfaces" - ip link add link "$BindsToInterfaces" name "$Interface" type vlan id "$VLANID" + interface_add vlan "$Interface" "$BindsToInterfaces" id "$VLANID" fi ethernet_up @@ -20,7 +20,7 @@ vlan_up() { vlan_down() { ethernet_down - ip link delete "$Interface" + interface_delete "$Interface" } |