mirror of
https://github.com/openwrt/luci.git
synced 2025-12-26 15:36:22 +04:00
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:
@@ -1,6 +1,7 @@
|
||||
#!/bin/sh
|
||||
uci batch <<-EOF
|
||||
set luci.themes.Bootstrap=/luci-static/bootstrap
|
||||
set luci.main.mediaurlbase=/luci-static/bootstrap
|
||||
commit luci
|
||||
EOF
|
||||
exit 0
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
#!/bin/sh
|
||||
uci batch <<-EOF
|
||||
set luci.themes.Freifunk_BNO=/luci-static/freifunk-bno
|
||||
set luci.main.mediaurlbase=/luci-static/freifunk-bno
|
||||
commit luci
|
||||
EOF
|
||||
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
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
|
||||
EOF
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
#!/bin/sh
|
||||
uci batch <<-EOF
|
||||
set luci.themes.OpenWrt=/luci-static/openwrt.org
|
||||
set luci.main.mediaurlbase=/luci-static/openwrt.org
|
||||
commit luci
|
||||
EOF
|
||||
|
||||
|
||||
Reference in New Issue
Block a user