summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorSteven Barth <steven@midlink.org>2008-08-05 10:42:50 +0000
committerSteven Barth <steven@midlink.org>2008-08-05 10:42:50 +0000
commita0d4bfceb5bc4172bea118a5941d5d3d1bfc0664 (patch)
treef56f12dad2e9dc2263fc730d4a6e4333a7c80530
parenteddcc1fdbd5a292a01ff60122409ecbfabd3312c (diff)
Remove incompatible interface alias script
-rw-r--r--contrib/package/luci-addons/Makefile2
-rwxr-xr-xcontrib/package/luci-addons/dist/etc/hotplug.d/iface/20-aliases24
2 files changed, 0 insertions, 26 deletions
diff --git a/contrib/package/luci-addons/Makefile b/contrib/package/luci-addons/Makefile
index 91943b8da..19c15f3f1 100644
--- a/contrib/package/luci-addons/Makefile
+++ b/contrib/package/luci-addons/Makefile
@@ -25,7 +25,6 @@ define Package/luci-addons/install
$(INSTALL_DIR) $(1)/usr/bin
$(INSTALL_DIR) $(1)/sbin
$(INSTALL_DIR) $(1)/etc/crontabs
- $(INSTALL_DIR) $(1)/etc/hotplug.d/iface
$(INSTALL_DIR) $(1)/etc/init.d
$(INSTALL_DIR) $(1)/etc/config
@@ -38,7 +37,6 @@ define Package/luci-addons/install
$(INSTALL_CONF) ./dist/etc/config/luci_ethers $(1)/etc/config
$(CP) ./dist/etc/crontabs/root $(1)/etc/crontabs/root
- $(CP) ./dist/etc/hotplug.d/iface/20-aliases $(1)/etc/hotplug.d/iface/20-aliases
endef
$(eval $(call BuildPackage,luci-addons))
diff --git a/contrib/package/luci-addons/dist/etc/hotplug.d/iface/20-aliases b/contrib/package/luci-addons/dist/etc/hotplug.d/iface/20-aliases
deleted file mode 100755
index b9986e3aa..000000000
--- a/contrib/package/luci-addons/dist/etc/hotplug.d/iface/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