From: Felix Fietkau Date: Tue, 25 Jul 2006 19:07:23 +0000 (+0000) Subject: add index.asp (symlinked from index.html) to make the transition from other broadcom... X-Git-Tag: whiterussian_rc6~188 X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=62e071a5dc6d1a0370c76a8d675953378d234211;p=openwrt%2Fsvn-archive%2Fopenwrt.git add index.asp (symlinked from index.html) to make the transition from other broadcom-based firmware easier (#435) SVN-Revision: 4284 --- diff --git a/openwrt/package/webif/Makefile b/openwrt/package/webif/Makefile index ae4419ab55..a3ae5712c8 100644 --- a/openwrt/package/webif/Makefile +++ b/openwrt/package/webif/Makefile @@ -33,6 +33,7 @@ $(IPKG_WEBIF): install -d $(IDIR_WEBIF)/usr/bin install -m0755 $(PKG_BUILD_DIR)/webif-page $(IDIR_WEBIF)/usr/bin/webif-page install -m0755 $(PKG_BUILD_DIR)/bstrip $(IDIR_WEBIF)/usr/bin/bstrip + ln -sf /www/index.html $(IDIR_WEBIF)/www/index.asp find $(IDIR_WEBIF) -name CVS | xargs rm -rf find $(IDIR_WEBIF) -name .svn | xargs rm -rf $(IPKG_BUILD) $(IDIR_WEBIF) $(PACKAGE_DIR) diff --git a/openwrt/package/webif/files/etc/httpd.conf b/openwrt/package/webif/files/etc/httpd.conf new file mode 100644 index 0000000000..0892ce848b --- /dev/null +++ b/openwrt/package/webif/files/etc/httpd.conf @@ -0,0 +1 @@ +.asp:text/html diff --git a/openwrt/package/webif/files/usr/lib/webif/webif.sh b/openwrt/package/webif/files/usr/lib/webif/webif.sh index a74fcb8015..919dcdfd36 100644 --- a/openwrt/package/webif/files/usr/lib/webif/webif.sh +++ b/openwrt/package/webif/files/usr/lib/webif/webif.sh @@ -195,7 +195,8 @@ EOF apply_passwd() { case ${SERVER_SOFTWARE%% *} in busybox) - echo '/cgi-bin/webif:root:$p$root' > /etc/httpd.conf + echo ".asp:text/html" > /etc/httpd.conf + echo '/cgi-bin/webif:root:$p$root' >> /etc/httpd.conf echo '/cgi-bin/webif:admin:$p$root' >> /etc/httpd.conf killall -HUP httpd ;;