summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorManuel Munz <freifunk@somakoma.de>2013-01-30 10:13:43 +0000
committerManuel Munz <freifunk@somakoma.de>2013-01-30 10:13:43 +0000
commite2b94c2fde1ce6c1e0491f6ec3b85082d3d04c58 (patch)
tree510dc92a2988000727083e2b11234dd2f617aad1
parentd9d70629c4cb9b6900642b85d83e3030a9d26103 (diff)
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.
-rwxr-xr-xapplications/luci-splash/root/etc/init.d/luci_splash4
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 e4980d968..d4d3870ff 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