applications/luci-splash: Get parent interface from ifname option. This is for the new syntax where interfaces are used for aliases. The alias notation (config alias in /etc/config/network) is no longer supported by luci-splash.
This commit is contained in:
parent
d9d70629c4
commit
e2b94c2fde
1 changed files with 3 additions and 1 deletions
|
@ -36,7 +36,9 @@ iface_add() {
|
|||
config_get netmask "$net" netmask
|
||||
[ -n "$netmask" ] || return 0
|
||||
|
||||
config_get parentiface "$net" interface
|
||||
parentiface="$(uci -q get network.${net}.ifname)"
|
||||
parentiface=${parentiface#@}
|
||||
|
||||
[ -n "$parentiface" ] && {
|
||||
config_get parentproto "$parentiface" proto
|
||||
config_get parentipaddr "$parentiface" ipaddr
|
||||
|
|
Loading…
Reference in a new issue