From 004213483340028437736f5810bd1c2274b7b72c Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Sun, 8 Jun 2008 22:23:57 +0000 Subject: [PATCH] * luci/statistics: add postinstall for package, fix permissions of luci-ff-hannover.postinst --- contrib/package/luci/Makefile | 1 + contrib/package/luci/ipkg/luci-ff-hannover.postinst | 0 contrib/package/luci/ipkg/luci-statistics.postint | 4 ++++ 3 files changed, 5 insertions(+) mode change 100644 => 100755 contrib/package/luci/ipkg/luci-ff-hannover.postinst create mode 100755 contrib/package/luci/ipkg/luci-statistics.postint diff --git a/contrib/package/luci/Makefile b/contrib/package/luci/Makefile index f94171523..b438760f5 100644 --- a/contrib/package/luci/Makefile +++ b/contrib/package/luci/Makefile @@ -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 diff --git a/contrib/package/luci/ipkg/luci-ff-hannover.postinst b/contrib/package/luci/ipkg/luci-ff-hannover.postinst old mode 100644 new mode 100755 diff --git a/contrib/package/luci/ipkg/luci-statistics.postint b/contrib/package/luci/ipkg/luci-statistics.postint new file mode 100755 index 000000000..69fe0c016 --- /dev/null +++ b/contrib/package/luci/ipkg/luci-statistics.postint @@ -0,0 +1,4 @@ +#!/bin/sh +[ -n "${IPKG_INSTROOT}" ] || { + ( . /etc/uci-defaults/luci-statistics ) && rm -f /etc/uci-defaults/luci-statistics +} -- 2.25.1