mirror of
https://github.com/openwrt/luci.git
synced 2025-12-26 11:16:38 +04:00
* Removed support for Haserl
This commit is contained in:
11
libs/sgi-cgi/ipkg/postinst
Executable file
11
libs/sgi-cgi/ipkg/postinst
Executable file
@@ -0,0 +1,11 @@
|
||||
#!/bin/sh
|
||||
[ -f "${IPKG_INSTROOT}/etc/httpd.conf" ] && {
|
||||
PATTERNS='/cgi-bin/luci/admin: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
|
||||
}
|
||||
Reference in New Issue
Block a user