diff options
author | Manuel Munz <freifunk@somakoma.de> | 2013-02-09 16:55:35 +0000 |
---|---|---|
committer | Manuel Munz <freifunk@somakoma.de> | 2013-02-09 16:55:35 +0000 |
commit | b754f09d56fd03ed49367b65801f6b8d5baa709c (patch) | |
tree | d2da2648ac717591d6225053944f6341b8262bf7 /applications/luci-splash | |
parent | e2b8e5efa75adeb7a4141ae1b4697a14b642bf13 (diff) |
applications/luci_splash: Do not try to get parent interfaces for bridges
Diffstat (limited to 'applications/luci-splash')
-rwxr-xr-x | applications/luci-splash/root/etc/init.d/luci_splash | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/applications/luci-splash/root/etc/init.d/luci_splash b/applications/luci-splash/root/etc/init.d/luci_splash index d4d3870ff..0d21bf50b 100755 --- a/applications/luci-splash/root/etc/init.d/luci_splash +++ b/applications/luci-splash/root/etc/init.d/luci_splash @@ -36,10 +36,12 @@ iface_add() { config_get netmask "$net" netmask [ -n "$netmask" ] || return 0 + config_get type "$net" type + parentiface="$(uci -q get network.${net}.ifname)" - parentiface=${parentiface#@} - [ -n "$parentiface" ] && { + [ -n "$parentiface" ] && [ ! "$type" = "bridge" ] && { + parentiface=${parentiface#@} config_get parentproto "$parentiface" proto config_get parentipaddr "$parentiface" ipaddr config_get parentnetmask "$parentiface" netmask |