From 5c2a0655974029374537d43193a6ee422a9b6e96 Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Tue, 22 Aug 2006 12:14:42 +0000 Subject: [PATCH] allow numbers in webif scripts (#619) SVN-Revision: 4625 --- openwrt/package/webif/files/usr/lib/webif/webif.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openwrt/package/webif/files/usr/lib/webif/webif.sh b/openwrt/package/webif/files/usr/lib/webif/webif.sh index 919dcdfd36..210bd87057 100644 --- a/openwrt/package/webif/files/usr/lib/webif/webif.sh +++ b/openwrt/package/webif/files/usr/lib/webif/webif.sh @@ -38,7 +38,7 @@ categories() { subcategories() { grep -H "##WEBIF:name:$1:" $cgidir/*.sh 2>/dev/null | \ - sed -e 's,^.*/\([a-zA-Z\.\-]*\):\(.*\)$,\2:\1,' | \ + sed -e 's,^.*/\([a-zA-Z0-9_\.\-]*\):\(.*\)$,\2:\1,' | \ sort -n | \ awk -v "selected=$2" \ -v "rootdir=$rootdir" \ -- 2.30.2