* luci/statistics: add postinstall for package, fix permissions of luci-ff-hannover.postinst

This commit is contained in:
Jo-Philipp Wich 2008-06-08 22:23:57 +00:00
parent 5f6561bc34
commit 0042134833
3 changed files with 5 additions and 0 deletions

View file

@ -317,6 +317,7 @@ define Package/luci-app-statistics/install
$(call Package/luci/install/template,$(1),applications/luci-statistics)
$(INSTALL_BIN) $(PKG_BUILD_DIR)/applications/luci-statistics/dist/usr/bin/stat-genconfig $(1)/usr/bin
$(INSTALL_BIN) $(PKG_BUILD_DIR)/applications/luci-statistics/dist/etc/init.d/luci_statistics $(1)/etc/init.d
$(CP) -a ./ipkg/luci-statistics.postinst $(1)/CONTROL/postinst
endef

0
contrib/package/luci/ipkg/luci-ff-hannover.postinst Normal file → Executable file
View file

View file

@ -0,0 +1,4 @@
#!/bin/sh
[ -n "${IPKG_INSTROOT}" ] || {
( . /etc/uci-defaults/luci-statistics ) && rm -f /etc/uci-defaults/luci-statistics
}