#!/bin/sh
-uci batch <<-EOF
- set luci.themes.Bootstrap=/luci-static/bootstrap
- set luci.main.mediaurlbase=/luci-static/bootstrap
- commit luci
-EOF
+
+if [ "$PKG_UPGRADE" != 1 ]; then
+ uci batch <<-EOF
+ set luci.themes.Bootstrap=/luci-static/bootstrap
+ set luci.main.mediaurlbase=/luci-static/bootstrap
+ commit luci
+ EOF
+fi
+
exit 0
#!/bin/sh
-uci batch <<-EOF
- set luci.themes.Material=/luci-static/material
- set luci.main.mediaurlbase=/luci-static/material
- commit luci
-EOF
+
+if [ "$PKG_UPGRADE" != 1 ]; then
+ uci batch <<-EOF
+ set luci.themes.Material=/luci-static/material
+ set luci.main.mediaurlbase=/luci-static/material
+ commit luci
+ EOF
+fi
+
exit 0
#!/bin/sh
-uci batch <<-EOF
- set luci.themes.OpenWrt=/luci-static/openwrt.org
- set luci.main.mediaurlbase=/luci-static/openwrt.org
- commit luci
-EOF
+
+if [ "$PKG_UPGRADE" != 1 ]; then
+ uci batch <<-EOF
+ set luci.themes.OpenWrt=/luci-static/openwrt.org
+ set luci.main.mediaurlbase=/luci-static/openwrt.org
+ commit luci
+ EOF
+fi
+
+exit 0
#!/bin/sh
-uci batch <<-EOF
- set luci.themes.Rosy=/luci-static/rosy
- set luci.main.mediaurlbase=/luci-static/rosy
- commit luci
-EOF
+
+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