luci-themes: luci.main.mediaurlbase not set correctly
Currently by default theme Bootstrap is installed but luci.main.mediaurlbase (it holds the current active theme) still has openwrt.org set. I did not find the mechanism how LuCI starts Bootstrap theme but the installation should set luci.main.mediaurlbase correctly. Signed-off-by: Christian Schoenebeck <christian.schoenebeck@gmail.com>
This commit is contained in:
parent
0d541a4cbd
commit
55ab4e4ce2
4 changed files with 5 additions and 3 deletions
|
@ -1,6 +1,7 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
uci batch <<-EOF
|
uci batch <<-EOF
|
||||||
set luci.themes.Bootstrap=/luci-static/bootstrap
|
set luci.themes.Bootstrap=/luci-static/bootstrap
|
||||||
|
set luci.main.mediaurlbase=/luci-static/bootstrap
|
||||||
commit luci
|
commit luci
|
||||||
EOF
|
EOF
|
||||||
exit 0
|
exit 0
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
uci batch <<-EOF
|
uci batch <<-EOF
|
||||||
set luci.themes.Freifunk_BNO=/luci-static/freifunk-bno
|
set luci.themes.Freifunk_BNO=/luci-static/freifunk-bno
|
||||||
|
set luci.main.mediaurlbase=/luci-static/freifunk-bno
|
||||||
commit luci
|
commit luci
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
uci batch <<-EOF
|
uci batch <<-EOF
|
||||||
set luci.themes.Freifunk_Generic=/luci-static/freifunk-generic
|
set luci.themes.Freifunk_Generic=/luci-static/freifunk-generic
|
||||||
|
set luci.main.mediaurlbase=/luci-static/freifunk-generic
|
||||||
commit luci
|
commit luci
|
||||||
EOF
|
EOF
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
uci batch <<-EOF
|
uci batch <<-EOF
|
||||||
set luci.themes.OpenWrt=/luci-static/openwrt.org
|
set luci.themes.OpenWrt=/luci-static/openwrt.org
|
||||||
|
set luci.main.mediaurlbase=/luci-static/openwrt.org
|
||||||
commit luci
|
commit luci
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue