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/dummy | |
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/dummy')
-rw-r--r-- | src/lib/connections/dummy | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/lib/connections/dummy b/src/lib/connections/dummy index 879fc92..5a12d1e 100644 --- a/src/lib/connections/dummy +++ b/src/lib/connections/dummy @@ -10,16 +10,14 @@ dummy_up() { return 1 fi - ip link add "$Interface" type dummy - + interface_add dummy "$Interface" bring_interface_up "$Interface" ip_set } dummy_down() { ip_unset - bring_interface_down "$Interface" - ip link del "$Interface" + interface_delete "$Interface" } |