blob: b9986e3aaa6093c653c55f730b14cc80d9e6ad6c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
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
|