Skip to content

Commit

Permalink
remove theme force default
Browse files Browse the repository at this point in the history
  • Loading branch information
GitHub committed Oct 13, 2022
1 parent 92ad44b commit 0269f61
Show file tree
Hide file tree
Showing 9 changed files with 7 additions and 55 deletions.
@@ -1,8 +1,3 @@
#!/bin/sh
uci batch <<-EOF
set luci.themes.ATMaterial=/luci-static/atmaterial
set luci.themes.ATMaterial_red=/luci-static/atmaterial_red
set luci.themes.ATMaterial_Brown=/luci-static/atmaterial_Brown
commit luci
EOF

exit 0
9 changes: 1 addition & 8 deletions luci-theme-edge/root/etc/uci-defaults/30_luci-theme-edge
@@ -1,10 +1,3 @@
#!/bin/sh
sed -i ":a;$!N;s/tmpl.render.*sysauth_template.*return/local scope = { duser = default_user, fuser = user }\nlocal ok, res = luci.util.copcall\(luci.template.render_string, [[<% include\(\"themes\/\" .. theme .. \"\/sysauth\"\) %>]], scope\)\nif ok then\nreturn res\nend\nreturn luci.template.render\(\"sysauth\", scope\)/;ba" /usr/lib/lua/luci/dispatcher.lua
sed -i ":a;$!N;s/t.render.*sysauth_template.*return/local scope = { duser = h, fuser = a }\nlocal ok, res = luci.util.copcall\(luci.template.render_string, [[<% include\(\"themes\/\" .. theme .. \"\/sysauth\"\) %>]], scope\)\nif ok then\nreturn res\nend\nreturn luci.template.render\(\"sysauth\", scope\)/;ba" /usr/lib/lua/luci/dispatcher.lua
rm -Rf /var/luci-*cache*
uci batch <<-EOF
set luci.themes.Edge=/luci-static/edge
set luci.main.mediaurlbase=/luci-static/edge
commit luci
EOF

exit 0
6 changes: 1 addition & 5 deletions luci-theme-ifit/files/10_luci-theme-ifit
@@ -1,7 +1,3 @@
#!/bin/sh
uci batch <<-EOF
set luci.themes.ifit=/luci-static/ifit
set luci.main.mediaurlbase=/luci-static/ifit
commit luci
EOF

exit 0
@@ -1,7 +1,3 @@
#!/bin/sh
uci batch <<-EOF
set luci.themes.infinityfreedom=/luci-static/infinityfreedom
set luci.main.mediaurlbase=/luci-static/infinityfreedom
commit luci
EOF

exit 0
6 changes: 1 addition & 5 deletions luci-theme-mcat/files/30_luci-theme-mcat
@@ -1,7 +1,3 @@
#!/bin/sh
uci batch <<-EOF
set luci.themes.mcat=/luci-static/mcat
set luci.main.mediaurlbase=/luci-static/mcat
commit luci
EOF

exit 0
@@ -1,8 +1,4 @@
#!/bin/sh
uci batch <<-EOF
set luci.themes.Neobird=/luci-static/neobird
set luci.main.mediaurlbase=/luci-static/neobird
commit luci
EOF

exit 0
# ↑↑↑ DO NOT EDIT THIS LINE
@@ -1,8 +1,4 @@
#!/bin/sh
uci batch <<-EOF
set luci.themes.Netgear=/luci-static/netgear
set luci.main.mediaurlbase=/luci-static/netgear
commit luci
EOF

exit 0
# ↑↑↑ DO NOT EDIT THIS LINE
8 changes: 0 additions & 8 deletions luci-theme-rosy/root/etc/uci-defaults/30_luci-theme-rosy
@@ -1,11 +1,3 @@
#!/bin/sh

if [ "$PKG_UPGRADE" != 1 ]; then
uci batch <<-EOF
set luci.themes.Rosy=/luci-static/rosy
set luci.main.mediaurlbase=/luci-static/rosy
commit luci
EOF
fi

exit 0
8 changes: 0 additions & 8 deletions luci-theme-tomato/root/etc/uci-defaults/30_luci-theme-tomato
@@ -1,11 +1,3 @@
#!/bin/sh

if [ "$PKG_UPGRADE" != 1 ]; then
uci batch <<-EOF
set luci.themes.tomato=/luci-static/tomato
set luci.main.mediaurlbase=/luci-static/tomato
commit luci
EOF
fi

exit 0

0 comments on commit 0269f61

Please sign in to comment.