diff options
-rwxr-xr-x | applications/luci-splash/root/etc/init.d/luci_splash | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/applications/luci-splash/root/etc/init.d/luci_splash b/applications/luci-splash/root/etc/init.d/luci_splash index e4980d968b..d4d3870ff5 100755 --- a/applications/luci-splash/root/etc/init.d/luci_splash +++ b/applications/luci-splash/root/etc/init.d/luci_splash @@ -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 |