From 64806f32bea453b9a6fc5c4cf4c4b751a749e369 Mon Sep 17 00:00:00 2001 From: Steven Barth Date: Mon, 9 Jun 2008 07:56:20 +0000 Subject: * Made Makefiles attribute aware --- libs/sgi-haserl/ipkg/postinst | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100755 libs/sgi-haserl/ipkg/postinst (limited to 'libs/sgi-haserl/ipkg') diff --git a/libs/sgi-haserl/ipkg/postinst b/libs/sgi-haserl/ipkg/postinst new file mode 100755 index 0000000000..483a0867a4 --- /dev/null +++ b/libs/sgi-haserl/ipkg/postinst @@ -0,0 +1,9 @@ +#!/bin/sh +PATTERNS='/cgi-bin/luci/admin:root:$p$root /cgi-bin/luci-upload:root:$p$root' + +for i in $PATTERNS +do + grep "$i" ${IPKG_INSTROOT}/etc/httpd.conf >/dev/null 2>/dev/null || echo "$i" >> ${IPKG_INSTROOT}/etc/httpd.conf +done + +[ -n ${IPKG_INSTROOT} ] || /etc/init.d/httpd restart -- cgit v1.2.3