. /etc/functions.sh
[ $# = 0 ] && { echo " $0 <group>"; exit; }
[ "x$1" = "x-a" ] && {
+ [ -e "/tmp/resolv.conf.auto" ] && rm /tmp/resolv.conf.auto
config_cb() {
[ interface != "$1" -o -z "$2" ] || eval "$0 $2"
}
# 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