From 62e071a5dc6d1a0370c76a8d675953378d234211 Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Tue, 25 Jul 2006 19:07:23 +0000 Subject: [PATCH] add index.asp (symlinked from index.html) to make the transition from other broadcom-based firmware easier (#435) SVN-Revision: 4284 --- openwrt/package/webif/Makefile | 1 + openwrt/package/webif/files/etc/httpd.conf | 1 + openwrt/package/webif/files/usr/lib/webif/webif.sh | 3 ++- 3 files changed, 4 insertions(+), 1 deletion(-) create mode 100644 openwrt/package/webif/files/etc/httpd.conf 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 ;; -- 2.30.2