diff options
author | Felix Fietkau <nbd@openwrt.org> | 2008-08-07 15:28:48 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2008-08-07 15:28:48 +0000 |
commit | 72609e482f7e814527d80de0561dfefbfe62b4e9 (patch) | |
tree | a3be394e8414947baa078f3dce89a36bd00ab714 /package/base-files/files/sbin | |
parent | c3011cd5f620a7fe283e752bbadb73ce4d585f8e (diff) | |
download | upstream-72609e482f7e814527d80de0561dfefbfe62b4e9.tar.gz upstream-72609e482f7e814527d80de0561dfefbfe62b4e9.tar.bz2 upstream-72609e482f7e814527d80de0561dfefbfe62b4e9.zip |
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
Diffstat (limited to 'package/base-files/files/sbin')
-rwxr-xr-x | package/base-files/files/sbin/ifdown | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/package/base-files/files/sbin/ifdown b/package/base-files/files/sbin/ifdown index 7cc87deb77..9eadad31e8 100755 --- a/package/base-files/files/sbin/ifdown +++ b/package/base-files/files/sbin/ifdown @@ -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 |