applications/luci-splash: Use conffiles to store splashtext on sysupgrade
authorManuel Munz <freifunk@somakoma.de>
Wed, 24 Nov 2010 01:07:45 +0000 (01:07 +0000)
committerManuel Munz <freifunk@somakoma.de>
Wed, 24 Nov 2010 01:07:45 +0000 (01:07 +0000)
applications/luci-splash/ipkg/postinst
applications/luci-splash/ipkg/postrm [deleted file]
contrib/package/luci/Makefile

index b35f163..a87729e 100755 (executable)
@@ -2,6 +2,5 @@
 
 [ -n "${IPKG_INSTROOT}" ] || {
        /etc/init.d/luci_splash enabled || /etc/init.d/luci_splash enable
 
 [ -n "${IPKG_INSTROOT}" ] || {
        /etc/init.d/luci_splash enabled || /etc/init.d/luci_splash enable
-       uci set luci.flash_keep.splashtext="/usr/lib/luci-splash/splashtext.html";uci commit
        exit 0
 }
        exit 0
 }
diff --git a/applications/luci-splash/ipkg/postrm b/applications/luci-splash/ipkg/postrm
deleted file mode 100644 (file)
index 4c92415..0000000
+++ /dev/null
@@ -1,2 +0,0 @@
-#!/bin/sh
-uci del luci.flash_keep.splashtext;uci commit
index f65cdfa..786a84a 100644 (file)
@@ -308,6 +308,7 @@ endef
 
 define Package/luci-app-splash/conffiles
 /etc/config/luci_splash
 
 define Package/luci-app-splash/conffiles
 /etc/config/luci_splash
+/usr/lib/luci-splash/splashtext.html
 endef
 
 define Package/luci-app-statistics/conffiles
 endef
 
 define Package/luci-app-statistics/conffiles