summaryrefslogtreecommitdiffhomepage
path: root/core/contrib/hotplug.d-20-aliases
diff options
context:
space:
mode:
Diffstat (limited to 'core/contrib/hotplug.d-20-aliases')
-rw-r--r--core/contrib/hotplug.d-20-aliases24
1 files changed, 0 insertions, 24 deletions
diff --git a/core/contrib/hotplug.d-20-aliases b/core/contrib/hotplug.d-20-aliases
deleted file mode 100644
index b9986e3aa..000000000
--- a/core/contrib/hotplug.d-20-aliases
+++ /dev/null
@@ -1,24 +0,0 @@
-add_aliases() {
- local config="$1"
-
- config_get base "$INTERFACE" ifname
- config_get iface "$config" ifname
- config_get ipaddr "$config" ipaddr
- config_get auto "$config" auto
-
- [ "${iface%%:*}" == "$base" -a "$iface" != "$base" ] && {
- case "$auto" in
- 1|on|enabled) setup_interface "$iface" "$config";;
- *) return 1;;
- esac
- }
-}
-
-
-case "$ACTION" in
- ifup)
- include /lib/network
- scan_interfaces
- config_foreach "add_aliases" interface
- ;;
-esac