X-Git-Url: http://git.rohieb.name/openwrt.git/blobdiff_plain/b73050fb3f1bfd0572b8e0738b3f441cc5da806b..c7c173fcd907ff1b0524625f47a64922f4328e98:/package/base-files/default/lib/config/template.awk?ds=inline diff --git a/package/base-files/default/lib/config/template.awk b/package/base-files/default/lib/config/template.awk index 9ce32b74f..faae8b345 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 "" }