diff options
author | Steven Barth <steven@midlink.org> | 2008-04-27 11:10:09 +0000 |
---|---|---|
committer | Steven Barth <steven@midlink.org> | 2008-04-27 11:10:09 +0000 |
commit | e895253a9b6b165f94af3480de59020617b7117c (patch) | |
tree | dd2438003c28a2b63b1e07d0e6781aac69bc3c03 /contrib/package/ffluci/ipkg | |
parent | ace012a0325a4ad2249b137a0d7c7edcc2a71f54 (diff) |
* Fixed broken commit
Diffstat (limited to 'contrib/package/ffluci/ipkg')
-rw-r--r-- | contrib/package/ffluci/ipkg/conffiles | 2 | ||||
-rwxr-xr-x | contrib/package/ffluci/ipkg/ffluci.postinst | 9 |
2 files changed, 11 insertions, 0 deletions
diff --git a/contrib/package/ffluci/ipkg/conffiles b/contrib/package/ffluci/ipkg/conffiles new file mode 100644 index 0000000000..098dbf9042 --- /dev/null +++ b/contrib/package/ffluci/ipkg/conffiles @@ -0,0 +1,2 @@ +/etc/config/luci +/etc/config/luci_fw
\ No newline at end of file diff --git a/contrib/package/ffluci/ipkg/ffluci.postinst b/contrib/package/ffluci/ipkg/ffluci.postinst new file mode 100755 index 0000000000..b6703dc06e --- /dev/null +++ b/contrib/package/ffluci/ipkg/ffluci.postinst @@ -0,0 +1,9 @@ +#!/bin/sh +PATTERNS='/cgi-bin/ffluci/admin:root:$p$root /cgi-bin/ffluci-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 |