diff options
author | Jo-Philipp Wich <jow@openwrt.org> | 2008-03-02 21:52:58 +0000 |
---|---|---|
committer | Jo-Philipp Wich <jow@openwrt.org> | 2008-03-02 21:52:58 +0000 |
commit | 3f5de3273c9e103b4909802e339db06fe0b53312 (patch) | |
tree | 793ef66c9456665f7b472e214d79b1078fccebe8 /contrib/package/ffluci/ipkg |
* new project: ff-luci - Freifunk Lua Configuration Interface
Diffstat (limited to 'contrib/package/ffluci/ipkg')
-rwxr-xr-x | contrib/package/ffluci/ipkg/ffluci.postinst | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/contrib/package/ffluci/ipkg/ffluci.postinst b/contrib/package/ffluci/ipkg/ffluci.postinst new file mode 100755 index 0000000000..0dbac00eb7 --- /dev/null +++ b/contrib/package/ffluci/ipkg/ffluci.postinst @@ -0,0 +1,4 @@ +#!/bin/sh +PATTERN='/cgi-bin/ffluci/admin:root:$p$root' +grep $PATTERN ${IPKG_INSTROOT}/etc/httpd.conf >/dev/null 2>/dev/null || echo $PATTERN >> ${IPKG_INSTROOT}/etc/httpd.conf +[ -z ${IPKG_INSTROOT} ] && /etc/init.d/httpd restart |