From 5a8b6faeac36929879cdf9177ecf06b108804586 Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Fri, 7 Oct 2005 10:50:39 +0000 Subject: [PATCH] open first page when you click on a category SVN-Revision: 2062 --- .../webif/files/usr/lib/webif/webif.sh | 29 ++++++++++++++----- 1 file changed, 22 insertions(+), 7 deletions(-) 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:

" }' - } -- 2.30.2