diff options
author | Steven Barth <steven@midlink.org> | 2008-06-09 07:56:20 +0000 |
---|---|---|
committer | Steven Barth <steven@midlink.org> | 2008-06-09 07:56:20 +0000 |
commit | 64806f32bea453b9a6fc5c4cf4c4b751a749e369 (patch) | |
tree | fa8916e368bebfdbb07451928d8aa119214945fd /libs/sgi-haserl/ipkg | |
parent | 004213483340028437736f5810bd1c2274b7b72c (diff) |
* Made Makefiles attribute aware
Diffstat (limited to 'libs/sgi-haserl/ipkg')
-rwxr-xr-x | libs/sgi-haserl/ipkg/postinst | 9 |
1 files changed, 9 insertions, 0 deletions
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 |