30_luci-theme-openwrt 247 B

123456789101112
  1. #!/bin/sh
  2. if [ "$PKG_UPGRADE" != 1 ]; then
  3. uci get luci.themes.OpenWrt >/dev/null 2>&1 || \
  4. uci batch <<-EOF
  5. set luci.themes.OpenWrt=/luci-static/openwrt.org
  6. set luci.main.mediaurlbase=/luci-static/openwrt.org
  7. commit luci
  8. EOF
  9. fi
  10. exit 0