allow numbers in webif scripts (#619)
authorFelix Fietkau <nbd@openwrt.org>
Tue, 22 Aug 2006 12:14:42 +0000 (12:14 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Tue, 22 Aug 2006 12:14:42 +0000 (12:14 +0000)
SVN-Revision: 4625

openwrt/package/webif/files/usr/lib/webif/webif.sh

index 919dcdfd36faee2d8b08ac05c627f012a8589d83..210bd870571b9e48402d93eb1d6a480e9e5284bb 100644 (file)
@@ -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" \