aboutsummaryrefslogtreecommitdiffstats
path: root/package/base-files/default
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2006-10-20 12:56:42 +0000
committerFelix Fietkau <nbd@openwrt.org>2006-10-20 12:56:42 +0000
commitdbd8cee5e7fa98035f2b017f968b7f3090c36617 (patch)
tree1f3f5c37fad79925e721d2913e1822e759669827 /package/base-files/default
parentff9c3172bf5611a7825889398e8450c90efb91ec (diff)
downloadupstream-dbd8cee5e7fa98035f2b017f968b7f3090c36617.tar.gz
upstream-dbd8cee5e7fa98035f2b017f968b7f3090c36617.tar.bz2
upstream-dbd8cee5e7fa98035f2b017f968b7f3090c36617.zip
template.awk fix processing of certain config file formats
SVN-Revision: 5249
Diffstat (limited to 'package/base-files/default')
-rw-r--r--package/base-files/default/lib/config/template.awk6
1 files changed, 3 insertions, 3 deletions
diff --git a/package/base-files/default/lib/config/template.awk b/package/base-files/default/lib/config/template.awk
index 9ce32b74ff..faae8b345c 100644
--- a/package/base-files/default/lib/config/template.awk
+++ b/package/base-files/default/lib/config/template.awk
@@ -27,11 +27,11 @@ $1 == "@else" {
else noprint = 1
}
-($1 !~ /^@[a-zA-Z]/) && (noprint != 1) {
+($1 !~ /^@[a-zA-Z0-9_]/) && (noprint != 1) {
n=split(line "@@", a, /@@/)
for (i=1; i<=n; i++) {
- if ((i % 2) == 1) printf a[i]
- else printf v[a[i]]
+ if ((i % 2) == 1) printf "%s" a[i]
+ else printf "%s" v[a[i]]
}
print ""
}