From: Felix Fietkau Date: Fri, 7 Oct 2005 10:50:39 +0000 (+0000) Subject: open first page when you click on a category X-Git-Tag: whiterussian_rc4~143 X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=5a8b6faeac36929879cdf9177ecf06b108804586;p=openwrt%2Fsvn-archive%2Fopenwrt.git open first page when you click on a category SVN-Revision: 2062 --- diff --git a/openwrt/package/webif/files/usr/lib/webif/webif.sh b/openwrt/package/webif/files/usr/lib/webif/webif.sh index d48f471e39..3eb2735d6a 100644 --- a/openwrt/package/webif/files/usr/lib/webif/webif.sh +++ b/openwrt/package/webif/files/usr/lib/webif/webif.sh @@ -5,17 +5,32 @@ rootdir=/cgi-bin/webif indexpage=index.sh categories() { - grep '##WEBIF:category' $cgidir/.categories $cgidir/*.sh 2>/dev/null | awk -F: ' + grep '##WEBIF:' $cgidir/.categories $cgidir/*.sh 2>/dev/null | awk -F: ' BEGIN { - print "

Categories:

" + print "

Categories:

" }' - }