1
0
mirror of git://projects.qi-hardware.com/openwrt-xburst.git synced 2025-04-21 12:27:27 +03:00

add basic interface alias support.

for now (since we don't use ip in our network scripts yet), it adds :1, :2, ... alias interfaces
this will change when we add support for the ip utility, but the config format will remain the same.
example:

config alias     test
option interface lan
option ipaddr    192.168.1.1
option netmask   255.255.0.0


git-svn-id: svn://svn.openwrt.org/openwrt/trunk@12241 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
nbd
2008-08-07 15:28:48 +00:00
parent 9c60f181c1
commit 9fb77da451
2 changed files with 85 additions and 38 deletions

View File

@@ -64,4 +64,8 @@ config_get iftype "$cfg" type
# remove the interface's network state
uci_revert_state network "$1"
# revert aliases state as well
config_get aliases "$1" aliases
for config in $aliases; do
uci_revert_state network "$config"
done